Skip to content

Commit

Permalink
Update ZenohId representation (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets authored Mar 25, 2024
1 parent 402010e commit ccc3ca6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ tokio-rustls = "0.25.0"
# tokio-vsock = see: io/zenoh-links/zenoh-link-vsock/Cargo.toml (workspaces does not support platform dependent dependencies)
console-subscriber = "0.2"
typenum = "1.16.0"
uhlc = { version = "0.6.0", default-features = false } # Default features are disabled due to usage in no_std crates
uhlc = { version = "0.7.0", default-features = false } # Default features are disabled due to usage in no_std crates
unzip-n = "0.1.2"
url = "2.3.1"
urlencoding = "2.1.2"
Expand Down
5 changes: 4 additions & 1 deletion zenoh/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ pub struct SourceInfo {
#[test]
#[cfg(feature = "unstable")]
fn source_info_stack_size() {
assert_eq!(std::mem::size_of::<SourceInfo>(), 16 * 2);
assert_eq!(std::mem::size_of::<ZenohId>(), 16);
assert_eq!(std::mem::size_of::<Option<ZenohId>>(), 17);
assert_eq!(std::mem::size_of::<Option<SourceSn>>(), 16);
assert_eq!(std::mem::size_of::<SourceInfo>(), 17 + 16 + 7);
}

#[zenoh_macros::unstable]
Expand Down

0 comments on commit ccc3ca6

Please sign in to comment.