Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ exclude = ["examples"]
resolver = "3"

[workspace.package]
version = "0.1.6"
version = "0.3.6"
edition = "2024"
rust-version = "1.85"
license = "GPL-3.0-only"
repository = "https://github.com/tinyhumansai/tinybus"

[workspace.dependencies]
tinybus = { path = "crates/tinybus", version = "=0.1.6", default-features = false }
tinybus-macros = { path = "crates/tinybus-macros", version = "=0.1.6" }
tinybus-module = { path = "crates/tinybus-module", version = "=0.1.6" }
tinybus = { path = "crates/tinybus", version = "=0.3.6", default-features = false }
tinybus-macros = { path = "crates/tinybus-macros", version = "=0.3.6" }
tinybus-module = { path = "crates/tinybus-module", version = "=0.3.6" }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time"] }

async-trait = "0.1"
Expand Down
9 changes: 8 additions & 1 deletion crates/tinybus/src/module/host_required_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ async fn a_real_required_artifact_is_refused_then_admitted_and_serves_confidenti
let host = ModuleHost::new(broker);
let address = BusName::new("ai.tinyhumans.openhuman.Clock").unwrap();
let path = ObjectPath::new("/ai/tinyhumans/openhuman/Clock").unwrap();
// The fixture module advertises the crate's own version; follow it so a
// version bump does not invalidate the requirement range.
let crate_major: u64 = env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap();
let crate_minor: u64 = env!("CARGO_PKG_VERSION_MINOR").parse().unwrap();
let required_for = |method| {
ModuleRequirements::new(
"tinybus",
Expand All @@ -214,7 +218,10 @@ async fn a_real_required_artifact_is_refused_then_admitted_and_serves_confidenti
vec![
RequiredInterface::new(
InterfaceName::new(address.as_str()).unwrap(),
VersionRange::new(Version::new(0, 1, 0), Some(Version::new(0, 2, 0))),
VersionRange::new(
Version::new(crate_major, crate_minor, 0),
Some(Version::new(crate_major, crate_minor + 1, 0)),
),
vec![MemberName::new(method).unwrap()],
)
.unwrap(),
Expand Down
Loading