temporarily use tracing from git

This commit is contained in:
Pat Hickey
2020-06-02 18:25:40 -07:00
parent 1b95b24686
commit dcb774a35e
3 changed files with 41 additions and 13 deletions

44
Cargo.lock generated
View File

@@ -2106,6 +2106,17 @@ dependencies = [
"serde", "serde",
] ]
[[package]]
name = "tracing"
version = "0.1.14"
source = "git+https://github.com/tokio-rs/tracing#180e494c7a13c0a18c09f3c7b465e8734c51f5e2"
dependencies = [
"cfg-if",
"log",
"tracing-attributes 0.1.8 (git+https://github.com/tokio-rs/tracing)",
"tracing-core 0.1.10 (git+https://github.com/tokio-rs/tracing)",
]
[[package]] [[package]]
name = "tracing" name = "tracing"
version = "0.1.14" version = "0.1.14"
@@ -2113,9 +2124,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7c6b59d116d218cb2d990eb06b77b64043e0268ef7323aae63d8b30ae462923" checksum = "a7c6b59d116d218cb2d990eb06b77b64043e0268ef7323aae63d8b30ae462923"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"log", "tracing-attributes 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
"tracing-attributes", "tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
"tracing-core", ]
[[package]]
name = "tracing-attributes"
version = "0.1.8"
source = "git+https://github.com/tokio-rs/tracing#180e494c7a13c0a18c09f3c7b465e8734c51f5e2"
dependencies = [
"proc-macro2",
"quote",
"syn",
] ]
[[package]] [[package]]
@@ -2129,6 +2149,14 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "tracing-core"
version = "0.1.10"
source = "git+https://github.com/tokio-rs/tracing#180e494c7a13c0a18c09f3c7b465e8734c51f5e2"
dependencies = [
"lazy_static",
]
[[package]] [[package]]
name = "tracing-core" name = "tracing-core"
version = "0.1.10" version = "0.1.10"
@@ -2146,7 +2174,7 @@ checksum = "5e0f8c7178e13481ff6765bd169b33e8d554c5d2bbede5e32c356194be02b9b9"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",
"tracing-core", "tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
@@ -2156,7 +2184,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6ccba2f8f16e0ed268fc765d9b7ff22e965e7185d32f8f1ec8294fe17d86e79" checksum = "b6ccba2f8f16e0ed268fc765d9b7ff22e965e7185d32f8f1ec8294fe17d86e79"
dependencies = [ dependencies = [
"serde", "serde",
"tracing-core", "tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]] [[package]]
@@ -2174,7 +2202,7 @@ dependencies = [
"serde_json", "serde_json",
"sharded-slab", "sharded-slab",
"smallvec", "smallvec",
"tracing-core", "tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
"tracing-log", "tracing-log",
"tracing-serde", "tracing-serde",
] ]
@@ -2624,7 +2652,7 @@ version = "0.17.0"
dependencies = [ dependencies = [
"proptest", "proptest",
"thiserror", "thiserror",
"tracing", "tracing 0.1.14 (git+https://github.com/tokio-rs/tracing)",
"wiggle-macro", "wiggle-macro",
"wiggle-test", "wiggle-test",
"witx", "witx",
@@ -2660,7 +2688,7 @@ dependencies = [
"env_logger 0.7.1", "env_logger 0.7.1",
"proptest", "proptest",
"thiserror", "thiserror",
"tracing", "tracing 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)",
"tracing-subscriber", "tracing-subscriber",
"wiggle", "wiggle",
] ]

View File

@@ -41,10 +41,10 @@ maintenance = { status = "actively-developed" }
[features] [features]
default = ["trace_log"] default = ["trace_log"]
# This feature enables `log::trace` calls in syscalls shims, in effect # This feature enables the `tracing` logs in the calls to target the `log`
# emulating something like `strace`. This feature is an opt-out and hence # ecosystem of backends (e.g. `env_logger`. Disable this if you want to use
# enabled by default. # `tracing-subscriber`.
trace_log = [] trace_log = [ "wiggle/tracing_log" ]
# Need to make the wiggle_metadata feature available to consumers of this # Need to make the wiggle_metadata feature available to consumers of this
# crate if they want the snapshots to have metadata available. # crate if they want the snapshots to have metadata available.
wiggle_metadata = ["wiggle/wiggle_metadata"] wiggle_metadata = ["wiggle/wiggle_metadata"]

View File

@@ -14,7 +14,7 @@ include = ["src/**/*", "LICENSE"]
thiserror = "1" thiserror = "1"
witx = { path = "../wasi-common/WASI/tools/witx", version = "0.8.5", optional = true } witx = { path = "../wasi-common/WASI/tools/witx", version = "0.8.5", optional = true }
wiggle-macro = { path = "macro", version = "0.17.0" } wiggle-macro = { path = "macro", version = "0.17.0" }
tracing = { version = "0.1.14" } tracing = { git = "https://github.com/tokio-rs/tracing" }
[badges] [badges]
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }