1 | [package] |
2 | name = "tracing" |
3 | # When releasing to crates.io: |
4 | # - Remove path dependencies |
5 | # - Update html_root_url. |
6 | # - Update doc url |
7 | # - Cargo.toml |
8 | # - README.md |
9 | # - Update CHANGELOG.md. |
10 | # - Create "v0.1.x" git tag |
11 | version = "0.1.40" |
12 | authors = ["Eliza Weisman <eliza@buoyant.io>" , "Tokio Contributors <team@tokio.rs>" ] |
13 | license = "MIT" |
14 | readme = "README.md" |
15 | repository = "https://github.com/tokio-rs/tracing" |
16 | homepage = "https://tokio.rs" |
17 | description = "" " |
18 | Application-level tracing for Rust. |
19 | " "" |
20 | categories = [ |
21 | "development-tools::debugging" , |
22 | "development-tools::profiling" , |
23 | "asynchronous" , |
24 | "no-std" , |
25 | ] |
26 | keywords = ["logging" , "tracing" , "metrics" , "async" ] |
27 | edition = "2018" |
28 | rust-version = "1.56.0" |
29 | |
30 | [dependencies] |
31 | tracing-core = { path = "../tracing-core" , version = "0.1.32" , default-features = false } |
32 | log = { version = "0.4.17" , optional = true } |
33 | tracing-attributes = { path = "../tracing-attributes" , version = "0.1.27" , optional = true } |
34 | pin-project-lite = "0.2.9" |
35 | |
36 | [dev-dependencies] |
37 | criterion = { version = "0.3.6" , default_features = false } |
38 | futures = { version = "0.3.21" , default_features = false } |
39 | log = "0.4.17" |
40 | tracing-mock = { path = "../tracing-mock" } |
41 | |
42 | [target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
43 | wasm-bindgen-test = "^0.3" |
44 | |
45 | [features] |
46 | default = ["std" , "attributes" ] |
47 | |
48 | max_level_off = [] |
49 | max_level_error = [] |
50 | max_level_warn = [] |
51 | max_level_info = [] |
52 | max_level_debug = [] |
53 | max_level_trace = [] |
54 | |
55 | release_max_level_off = [] |
56 | release_max_level_error = [] |
57 | release_max_level_warn = [] |
58 | release_max_level_info = [] |
59 | release_max_level_debug = [] |
60 | release_max_level_trace = [] |
61 | |
62 | # This feature flag is no longer necessary. |
63 | async-await = [] |
64 | |
65 | std = ["tracing-core/std" ] |
66 | log-always = ["log" ] |
67 | attributes = ["tracing-attributes" ] |
68 | valuable = ["tracing-core/valuable" ] |
69 | |
70 | [[bench]] |
71 | name = "baseline" |
72 | harness = false |
73 | |
74 | [[bench]] |
75 | name = "dispatch_get_clone" |
76 | harness = false |
77 | |
78 | [[bench]] |
79 | name = "dispatch_get_ref" |
80 | harness = false |
81 | |
82 | [[bench]] |
83 | name = "empty_span" |
84 | harness = false |
85 | |
86 | [[bench]] |
87 | name = "enter_span" |
88 | harness = false |
89 | |
90 | [[bench]] |
91 | name = "event" |
92 | harness = false |
93 | |
94 | [[bench]] |
95 | name = "span_fields" |
96 | harness = false |
97 | |
98 | [[bench]] |
99 | name = "span_no_fields" |
100 | harness = false |
101 | |
102 | [[bench]] |
103 | name = "span_repeated" |
104 | harness = false |
105 | |
106 | [badges] |
107 | maintenance = { status = "actively-developed" } |
108 | |
109 | [package.metadata.docs.rs] |
110 | all-features = true |
111 | # enable unstable features in the documentation |
112 | rustdoc-args = ["--cfg" , "docsrs" , "--cfg" , "tracing_unstable" ] |
113 | # it's necessary to _also_ pass `--cfg tracing_unstable` to rustc, or else |
114 | # dependencies will not be enabled, and the docs build will fail. |
115 | rustc-args = ["--cfg" , "tracing_unstable" ] |
116 | |