Skip to content

Commit

Permalink
tests added, leaking through zenoh-ext fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Nov 27, 2023
1 parent d5c95f9 commit e77acb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ zenoh-link-unixpipe = { version = "0.11.0-dev", path = "io/zenoh-links/zenoh-lin
zenoh-link-serial = { version = "0.11.0-dev", path = "io/zenoh-links/zenoh-link-serial" }
zenoh-link = { version = "0.11.0-dev", path = "io/zenoh-link" }
zenoh-link-commons = { version = "0.11.0-dev", path = "io/zenoh-link-commons" }
zenoh = { version = "0.11.0-dev", path = "zenoh" }
zenoh = { version = "0.11.0-dev", path = "zenoh", default-features = false }

[profile.dev]
debug = true
Expand Down
2 changes: 1 addition & 1 deletion zenoh-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ flume = { workspace = true }
futures = { workspace = true }
log = { workspace = true }
serde = { workspace = true, features = ["default"] }
zenoh = { workspace = true, features = ["unstable"] }
zenoh = { workspace = true, features = ["unstable"], default-features = false }
zenoh-core = { workspace = true }
zenoh-macros = { workspace = true }
zenoh-result = { workspace = true }
Expand Down
8 changes: 8 additions & 0 deletions zenoh-ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ impl From<LivelinessSpace> for KeySpace {
KeySpace::Liveliness
}
}

#[test]
fn test_default_features() {
// make sure that when inporting zenoh-ext with default features, no unwanted features are pulled from zenoh-core
assert_eq!(zenoh::FEATURES, concat!(
" zenoh/unstable",
));
}
2 changes: 1 addition & 1 deletion zenohd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ git-version = { workspace = true }
json5 = { workspace = true }
lazy_static = { workspace = true }
log = { workspace = true }
zenoh = { workspace = true, features = ["unstable"] }
zenoh = { workspace = true, default-features = true, features = ["unstable"] }

[dev-dependencies]
rand = { workspace = true, features = ["default"] }
Expand Down

0 comments on commit e77acb8

Please sign in to comment.