-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fully rework logging initialization
Tests are now using `test-log` library. See detailed `zenoh_util::init_logging` documentation.
- Loading branch information
Showing
57 changed files
with
2,734 additions
and
2,751 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -745,6 +745,7 @@ impl ZBuf { | |
} | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn zbuf_eq() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ version = { workspace = true } | |
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
authors = [ | ||
"kydos <[email protected]>", | ||
"Luca Cominardi <[email protected]>", | ||
"Pierre Avital <[email protected]>", | ||
"kydos <[email protected]>", | ||
"Luca Cominardi <[email protected]>", | ||
"Pierre Avital <[email protected]>", | ||
] | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
|
@@ -31,20 +31,20 @@ description = "Internal crate for zenoh." | |
[features] | ||
default = ["std"] | ||
std = [ | ||
"tracing", | ||
"serde/std", | ||
"uhlc/std", | ||
"zenoh-protocol/std" | ||
"tracing", | ||
"serde/std", | ||
"uhlc/std", | ||
"zenoh-protocol/std" | ||
] | ||
shared-memory = [ | ||
"std", | ||
"zenoh-shm", | ||
"zenoh-protocol/shared-memory", | ||
"zenoh-buffers/shared-memory" | ||
"std", | ||
"zenoh-shm", | ||
"zenoh-protocol/shared-memory", | ||
"zenoh-buffers/shared-memory" | ||
] | ||
|
||
[dependencies] | ||
tracing = {workspace = true, optional = true } | ||
tracing = { workspace = true, optional = true } | ||
serde = { workspace = true, features = ["alloc"] } | ||
uhlc = { workspace = true } | ||
zenoh-buffers = { workspace = true, default-features = false } | ||
|
@@ -54,10 +54,10 @@ zenoh-shm = { workspace = true, optional = true } | |
# INFO: May cause problems when testing no_std stuff. Check this tool: https://docs.rs/crate/cargo-no-dev-deps/0.1.0 | ||
[dev-dependencies] | ||
criterion = { workspace = true } | ||
test-log = { workspace = true } | ||
|
||
rand = { workspace = true, features = ["default"] } | ||
zenoh-protocol = { workspace = true, features = ["test"] } | ||
zenoh-util = {workspace = true } | ||
|
||
[[bench]] | ||
name = "codec" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -320,6 +320,7 @@ zint_impl!(usize); | |
// } | ||
// } | ||
|
||
// #[cfg(test)] | ||
// mod tests { | ||
// #[test] | ||
// fn u64_overhead() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ impl BlockCipher { | |
} | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn cipher() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,9 @@ version = { workspace = true } | |
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
authors = [ | ||
"kydos <[email protected]>", | ||
"Luca Cominardi <[email protected]>", | ||
"Pierre Avital <[email protected]>", | ||
"kydos <[email protected]>", | ||
"Luca Cominardi <[email protected]>", | ||
"Pierre Avital <[email protected]>", | ||
] | ||
edition = { workspace = true } | ||
license = { workspace = true } | ||
|
@@ -35,7 +35,7 @@ test = ["num_cpus"] | |
async-trait = { workspace = true } | ||
bincode = { workspace = true } | ||
crc = { workspace = true } | ||
tracing = {workspace = true} | ||
tracing = { workspace = true } | ||
serde = { workspace = true, features = ["default"] } | ||
shared_memory = { workspace = true } | ||
tokio = { workspace = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.