diff --git a/Cargo.toml b/Cargo.toml index b7d7f609cd..9cb1ec1246 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,3 +32,36 @@ resolver = "2" # See function names in profiling reports. # 2/true is too much, 0 is not enough, 1 is just right for back traces debug = 1 + +[workspace.dependencies] +async-std = "1.10" +async-trait = "0.1" +bytes = "1" +env_logger = "0.10" +futures-core = "0.3" +futures-executor = "0.3" +futures-util = "0.3" +grpcio = "0.12" +hyper = "0.14" +http = "0.2" +isahc = "1.4" +log = "0.4" +one_cell = "1.13" +ordered-float = "4.0" +pin-project = "0.2" +pin-project-lite = "0.2" +prost = "0.11" +rand = "0.8" +reqwest = "0.11" +serde = "1.0" +serde_json = "1.0" +surf = "2.0" +temp-env = "0.3.6" +thiserror = "1" +tonic = "0.9" +tokio = "1" +tokio-stream = "0.1.1" +tracing = "0.1" +tracing-core = "0.1" +tracing-subscriber = "0.3" +url = "2.2" diff --git a/examples/logs-basic/Cargo.toml b/examples/logs-basic/Cargo.toml index 292b3daed8..58f64e08ab 100644 --- a/examples/logs-basic/Cargo.toml +++ b/examples/logs-basic/Cargo.toml @@ -10,5 +10,5 @@ opentelemetry = { path = "../../opentelemetry", features = ["logs"] } opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["logs"] } opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["logs"]} opentelemetry-appender-log = { path = "../../opentelemetry-appender-log", default-features = false} -log = {version = "0.4.17"} -serde_json = {version = "1.0"} \ No newline at end of file +log = { workspace = true } +serde_json = { workspace = true } diff --git a/examples/metrics-advanced/Cargo.toml b/examples/metrics-advanced/Cargo.toml index d8b64d00c5..a5a8a7c489 100644 --- a/examples/metrics-advanced/Cargo.toml +++ b/examples/metrics-advanced/Cargo.toml @@ -9,5 +9,5 @@ publish = false opentelemetry = { path = "../../opentelemetry", features = ["metrics"] } opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["metrics", "rt-tokio"] } opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["metrics"]} -tokio = { version = "1.0", features = ["full"] } -serde_json = {version = "1.0"} \ No newline at end of file +tokio = { workspace = true, features = ["full"] } +serde_json = { workspace = true } diff --git a/examples/metrics-basic/Cargo.toml b/examples/metrics-basic/Cargo.toml index d505b8cbd5..37b79da140 100644 --- a/examples/metrics-basic/Cargo.toml +++ b/examples/metrics-basic/Cargo.toml @@ -9,8 +9,8 @@ publish = false opentelemetry = { path = "../../opentelemetry", features = ["metrics", "otel_unstable"] } opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["metrics", "rt-tokio"] } opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["metrics"]} -tokio = { version = "1.0", features = ["full"] } -serde_json = {version = "1.0"} +tokio = { workspace = true, features = ["full"] } +serde_json = { workspace = true } [features] default = ["otel_unstable"] diff --git a/examples/tracing-grpc/Cargo.toml b/examples/tracing-grpc/Cargo.toml index 6875b64db6..400a8f4e69 100644 --- a/examples/tracing-grpc/Cargo.toml +++ b/examples/tracing-grpc/Cargo.toml @@ -17,9 +17,9 @@ path = "src/client.rs" opentelemetry = { path = "../../opentelemetry" } opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["rt-tokio"]} opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["trace"] } -prost = "0.11" -tokio = { version = "1.28", features = ["full"] } -tonic = "0.9.2" +prost = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tonic = { workspace = true } [build-dependencies] tonic-build = "0.9.2" diff --git a/examples/tracing-http-propagator/Cargo.toml b/examples/tracing-http-propagator/Cargo.toml index 3c369d1b04..0c019e14e9 100644 --- a/examples/tracing-http-propagator/Cargo.toml +++ b/examples/tracing-http-propagator/Cargo.toml @@ -16,10 +16,10 @@ path = "src/client.rs" doc = false [dependencies] -hyper = { version = "0.14", features = ["full"] } -tokio = { version = "1.0", features = ["full"] } +hyper = { workspace = true, features = ["full"] } +tokio = { workspace = true, features = ["full"] } opentelemetry = { path = "../../opentelemetry" } opentelemetry_sdk = { path = "../../opentelemetry-sdk" } opentelemetry-http = { path = "../../opentelemetry-http" } opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["trace"] } -opentelemetry-semantic-conventions = { path = "../../opentelemetry-semantic-conventions" } \ No newline at end of file +opentelemetry-semantic-conventions = { path = "../../opentelemetry-semantic-conventions" } diff --git a/examples/tracing-jaeger/Cargo.toml b/examples/tracing-jaeger/Cargo.toml index a346b5b8af..6257f0ebf0 100644 --- a/examples/tracing-jaeger/Cargo.toml +++ b/examples/tracing-jaeger/Cargo.toml @@ -9,4 +9,4 @@ publish = false opentelemetry = { path = "../../opentelemetry" } opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["rt-tokio"] } opentelemetry-otlp = { path = "../../opentelemetry-otlp", features = ["tonic"] } -tokio = { version = "1.0", features = ["full"] } +tokio = { workspace = true, features = ["full"] } diff --git a/opentelemetry-appender-log/Cargo.toml b/opentelemetry-appender-log/Cargo.toml index 339b5bcc02..2719da5f10 100644 --- a/opentelemetry-appender-log/Cargo.toml +++ b/opentelemetry-appender-log/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" [dependencies] opentelemetry = { version = "0.21", path = "../opentelemetry", features = ["logs"]} -log = {version = "0.4.17", features = ["kv_unstable", "std"]} +log = { workspace = true, features = ["kv_unstable", "std"]} [features] logs_level_enabled = ["opentelemetry/logs_level_enabled"] @@ -20,4 +20,4 @@ default = ["logs_level_enabled"] [dev-dependencies] opentelemetry_sdk = { path = "../opentelemetry-sdk", features = [ "testing", "logs_level_enabled" ] } -tokio = "1.32.0" +tokio = { workspace = true } diff --git a/opentelemetry-appender-tracing/Cargo.toml b/opentelemetry-appender-tracing/Cargo.toml index fa3d45819e..b6b7cbee9a 100644 --- a/opentelemetry-appender-tracing/Cargo.toml +++ b/opentelemetry-appender-tracing/Cargo.toml @@ -11,17 +11,17 @@ license = "Apache-2.0" rust-version = "1.65" [dependencies] -log = { version = "0.4", optional = true } +log = { workspace = true, optional = true } opentelemetry = { version = "0.21", path = "../opentelemetry", features = ["logs"] } opentelemetry_sdk = { version = "0.21", path = "../opentelemetry-sdk", features = ["logs"] } -tracing = {version = "0.1", default-features = false, features = ["std"]} -tracing-core = "0.1" +tracing = { workspace = true, default-features = false, features = ["std"]} +tracing-core = { workspace = true } tracing-log = { version = "0.2", optional = true } -tracing-subscriber = { version = "0.3", default-features = false, features = ["registry", "std"] } +tracing-subscriber = { workspace = true, default-features = false, features = ["registry", "std"] } once_cell = "1.13.0" [dev-dependencies] -log = "0.4" +log = { workspace = true } opentelemetry-stdout = { path = "../opentelemetry-stdout", features = ["logs"] } opentelemetry_sdk = { path = "../opentelemetry-sdk", features = ["logs", "testing"] } tracing-log = "0.2" diff --git a/opentelemetry-http/Cargo.toml b/opentelemetry-http/Cargo.toml index e669456669..f9b8ee96c9 100644 --- a/opentelemetry-http/Cargo.toml +++ b/opentelemetry-http/Cargo.toml @@ -10,12 +10,12 @@ edition = "2021" rust-version = "1.65" [dependencies] -async-trait = "0.1" -bytes = "1" -http = "0.2" -hyper = { version = "0.14", default-features = false, features = ["http2", "client", "tcp"], optional = true } -isahc = { version = "1.4", default-features = false, optional = true } +async-trait = { workspace = true } +bytes = { workspace = true } +http = { workspace = true } +hyper = { workspace = true, default-features = false, features = ["http2", "client", "tcp"], optional = true } +isahc = { workspace = true, default-features = false, optional = true } opentelemetry = { version = "0.21", path = "../opentelemetry", features = ["trace"] } -reqwest = { version = "0.11", default-features = false, features = ["blocking"], optional = true } -surf = { version = "2.0", default-features = false, optional = true } -tokio = { version = "1.0", default-features = false, features = ["time"], optional = true } +reqwest = { workspace = true, default-features = false, features = ["blocking"], optional = true } +surf = { workspace = true, default-features = false, optional = true } +tokio = { workspace = true, default-features = false, features = ["time"], optional = true } diff --git a/opentelemetry-jaeger/Cargo.toml b/opentelemetry-jaeger/Cargo.toml index 0cc3aac4db..805cf9df6c 100644 --- a/opentelemetry-jaeger/Cargo.toml +++ b/opentelemetry-jaeger/Cargo.toml @@ -20,40 +20,40 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -async-std = { version = "1.10.0", optional = true } -async-trait = "0.1" +async-std = { workspace = true, optional = true } +async-trait = { workspace = true } base64 = { version = "0.21.0", optional = true } headers = { version = "0.3.2", optional = true } -http = { version = "0.2", optional = true } -hyper = { version = "0.14", default-features = false, features = ["client"], optional = true } +http = { workspace = true, optional = true } +hyper = { workspace = true, default-features = false, features = ["client"], optional = true } hyper-tls = { version = "0.5.0", default-features = false, optional = true } -isahc = { version = "1.4", default-features = false, optional = true } +isahc = { workspace = true, default-features = false, optional = true } js-sys = { version = "0.3", optional = true } opentelemetry = { version = "0.21", default-features = false, features = ["trace"], path = "../opentelemetry" } opentelemetry_sdk = { version = "0.21", default-features = false, features = ["trace"], path = "../opentelemetry-sdk" } opentelemetry-http = { version = "0.10", path = "../opentelemetry-http", optional = true } opentelemetry-semantic-conventions = { version = "0.13", path = "../opentelemetry-semantic-conventions" } -pin-project-lite = { version = "0.2", optional = true } -reqwest = { version = "0.11", default-features = false, optional = true } -surf = { version = "2.0", optional = true } +pin-project-lite = { workspace = true, optional = true } +reqwest = { workspace = true, default-features = false, optional = true } +surf = { workspace = true, optional = true } thrift = "0.17.0" -tokio = { version = "1.0", features = ["net", "sync"], optional = true } +tokio = { workspace = true, features = ["net", "sync"], optional = true } wasm-bindgen = { version = "0.2", optional = true } wasm-bindgen-futures = { version = "0.4.18", optional = true } -tonic = { version = "0.9.0", optional = true } +tonic = { workspace = true, optional = true } prost = { version = "0.11.6", optional = true } prost-types = { version = "0.11.6", optional = true } # Futures -futures-executor = { version = "0.3", default-features = false, features = ["std"], optional = true } -futures-core = "0.3" -futures-util = { version = "0.3", default-features = false, features = ["std", "alloc"]} +futures-executor = { workspace = true, default-features = false, features = ["std"], optional = true } +futures-core = { workspace = true } +futures-util = { workspace = true, default-features = false, features = ["std", "alloc"]} [dev-dependencies] -tokio = { version = "1.0", features = ["net", "sync"] } -bytes = "1" -futures-executor = "0.3" +tokio = { workspace = true, features = ["net", "sync"] } +bytes = { workspace = true } +futures-executor = { workspace = true } opentelemetry_sdk = { features = ["trace", "testing", "rt-tokio"], path = "../opentelemetry-sdk" } [dependencies.web-sys] diff --git a/opentelemetry-jaeger/examples/remote-sampler/Cargo.toml b/opentelemetry-jaeger/examples/remote-sampler/Cargo.toml index 10b438710a..170fca5f3d 100644 --- a/opentelemetry-jaeger/examples/remote-sampler/Cargo.toml +++ b/opentelemetry-jaeger/examples/remote-sampler/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" opentelemetry = { path = "../../../opentelemetry" } opentelemetry_sdk = { path = "../../../opentelemetry-sdk", features = ["rt-tokio", "jaeger_remote_sampler"] } opentelemetry-stdout = { path = "../../../opentelemetry-stdout", features = ["trace"] } -reqwest = "0.11.10" -tokio = { version = "1.18", features = ["macros", "rt-multi-thread"] } +reqwest = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } diff --git a/opentelemetry-otlp/Cargo.toml b/opentelemetry-otlp/Cargo.toml index 8ef2a54f28..375a6e3cc1 100644 --- a/opentelemetry-otlp/Cargo.toml +++ b/opentelemetry-otlp/Cargo.toml @@ -26,33 +26,33 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -async-trait = "0.1" -futures-core = "0.3" -grpcio = { version = "0.12", optional = true } +async-trait = { workspace = true } +futures-core = { workspace = true } +grpcio = { workspace = true, optional = true } opentelemetry = { version = "0.21", default-features = false, path = "../opentelemetry" } opentelemetry_sdk = { version = "0.21", default-features = false, path = "../opentelemetry-sdk" } opentelemetry-http = { version = "0.10", path = "../opentelemetry-http", optional = true } opentelemetry-proto = { version = "0.4", path = "../opentelemetry-proto", default-features = false } opentelemetry-semantic-conventions = { version = "0.13", path = "../opentelemetry-semantic-conventions" } -prost = { version = "0.11.0", optional = true } -tonic = { version = "0.9.0", optional = true } -tokio = { version = "1.0", features = ["sync", "rt"], optional = true } +prost = { workspace = true, optional = true } +tonic = { workspace = true, optional = true } +tokio = { workspace = true, features = ["sync", "rt"], optional = true } -reqwest = { version = "0.11", optional = true, default-features = false } -surf = { version = "2.0", optional = true, default-features = false } -http = { version = "0.2", optional = true } -serde = { version = "1.0", features = ["derive"], optional = true } -thiserror = "1.0" +reqwest = { workspace = true, optional = true, default-features = false } +surf = { workspace = true, optional = true, default-features = false } +http = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } +thiserror = { workspace = true } [dev-dependencies] -tokio-stream = { version = "0.1", features = ["net"] } +tokio-stream = { workspace = true, features = ["net"] } # need tokio runtime to run smoke tests. opentelemetry_sdk = { features = ["trace", "rt-tokio", "testing"], path = "../opentelemetry-sdk" } time = { version = "0.3", features = ["macros"] } -tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } -futures-util = { version = "0.3", default-features = false } -temp-env = "0.3.6" +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +futures-util = { workspace = true, default-features = false } +temp-env = { workspace = true } [features] # telemetry pillars and functions diff --git a/opentelemetry-otlp/examples/basic-otlp-http/Cargo.toml b/opentelemetry-otlp/examples/basic-otlp-http/Cargo.toml index 50f84549b3..2a8a6731df 100644 --- a/opentelemetry-otlp/examples/basic-otlp-http/Cargo.toml +++ b/opentelemetry-otlp/examples/basic-otlp-http/Cargo.toml @@ -13,7 +13,7 @@ opentelemetry-otlp = { path = "../..", features = ["http-proto", "reqwest-client opentelemetry-appender-tracing = { path = "../../../opentelemetry-appender-tracing", default-features = false} opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" } -tokio = { version = "1.0", features = ["full"] } -tracing-subscriber = { version = "0.3.0", default-features = false, features = ["registry", "std"] } -tracing = { version = "0.1.37", default-features = false, features = ["std"] } -tracing-core = "0.1.31" +tokio = { workspace = true, features = ["full"] } +tracing-subscriber = { workspace = true, default-features = false, features = ["registry", "std"] } +tracing = { workspace = true, default-features = false, features = ["std"] } +tracing-core = { workspace = true } diff --git a/opentelemetry-otlp/examples/basic-otlp/Cargo.toml b/opentelemetry-otlp/examples/basic-otlp/Cargo.toml index e215628005..c89e24749e 100644 --- a/opentelemetry-otlp/examples/basic-otlp/Cargo.toml +++ b/opentelemetry-otlp/examples/basic-otlp/Cargo.toml @@ -13,4 +13,4 @@ opentelemetry-otlp = { path = "../../../opentelemetry-otlp", features = ["tonic" opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" } tokio = { version = "1.0", features = ["full"] } opentelemetry-appender-log = { path = "../../../opentelemetry-appender-log", default-features = false} -log = {version = "0.4.17"} \ No newline at end of file +log = { workspace = true } diff --git a/opentelemetry-otlp/examples/external-otlp-grpcio-async-std/Cargo.toml b/opentelemetry-otlp/examples/external-otlp-grpcio-async-std/Cargo.toml index d16bf6f04f..3483884a51 100644 --- a/opentelemetry-otlp/examples/external-otlp-grpcio-async-std/Cargo.toml +++ b/opentelemetry-otlp/examples/external-otlp-grpcio-async-std/Cargo.toml @@ -7,7 +7,7 @@ publish = false [dependencies] async-std = { version = "= 1.10.0", features = ["attributes"] } -env_logger = "0.10.0" +env_logger = { workspace = true } opentelemetry = { path = "../../../opentelemetry" } opentelemetry_sdk = { path = "../../../opentelemetry-sdk", features = ["rt-async-std"] } opentelemetry-otlp = { path = "../../../opentelemetry-otlp", features = [ @@ -15,4 +15,4 @@ opentelemetry-otlp = { path = "../../../opentelemetry-otlp", features = [ "trace", "openssl-vendored" ], default-features = false } -url = "2.2.0" +url = { workspace = true } diff --git a/opentelemetry-prometheus/Cargo.toml b/opentelemetry-prometheus/Cargo.toml index 260b306cc8..6b108bfe5d 100644 --- a/opentelemetry-prometheus/Cargo.toml +++ b/opentelemetry-prometheus/Cargo.toml @@ -28,8 +28,8 @@ protobuf = "2.14" [dev-dependencies] opentelemetry-semantic-conventions = { path = "../opentelemetry-semantic-conventions" } -hyper = { version = "0.14", features = ["full"] } -tokio = { version = "1", features = ["full"] } +hyper = { workspace = true, features = ["full"] } +tokio = { workspace = true, features = ["full"] } [features] prometheus-encoding = [] diff --git a/opentelemetry-proto/Cargo.toml b/opentelemetry-proto/Cargo.toml index cb87d6177e..d9192982ce 100644 --- a/opentelemetry-proto/Cargo.toml +++ b/opentelemetry-proto/Cargo.toml @@ -45,13 +45,13 @@ with-schemars = ["schemars"] with-serde = ["serde"] [dependencies] -grpcio = { version = "0.12", optional = true, features = ["prost-codec"] } -tonic = { version = "0.9.0", default-features = false, optional = true, features = ["codegen", "prost"] } -prost = { version = "0.11.0", optional = true } +grpcio = { workspace = true, optional = true, features = ["prost-codec"] } +tonic = { workspace = true, default-features = false, optional = true, features = ["codegen", "prost"] } +prost = { workspace = true, optional = true } opentelemetry = { version = "0.21", default-features = false, path = "../opentelemetry" } opentelemetry_sdk = { version = "0.21", default-features = false, path = "../opentelemetry-sdk" } schemars = { version = "0.8", optional = true } -serde = { version = "1.0", optional = true, features = ["serde_derive"] } +serde = { workspace = true, optional = true, features = ["serde_derive"] } [dev-dependencies] grpcio-compiler = { version = "0.12.1", default-features = false, features = ["prost-codec"] } diff --git a/opentelemetry-sdk/Cargo.toml b/opentelemetry-sdk/Cargo.toml index ddc2baf851..cb968c8df0 100644 --- a/opentelemetry-sdk/Cargo.toml +++ b/opentelemetry-sdk/Cargo.toml @@ -12,24 +12,24 @@ rust-version = "1.65" [dependencies] opentelemetry = { version = "0.21", path = "../opentelemetry/" } opentelemetry-http = { version = "0.10", path = "../opentelemetry-http", optional = true } -async-std = { version = "1.6", features = ["unstable"], optional = true } -async-trait = { version = "0.1", optional = true } +async-std = { workspace = true, features = ["unstable"], optional = true } +async-trait = { workspace = true, optional = true } crossbeam-channel = { version = "0.5", optional = true } futures-channel = "0.3" -futures-executor = "0.3" -futures-util = { version = "0.3.17", default-features = false, features = ["std", "sink", "async-await-macro"] } +futures-executor = { workspace = true } +futures-util = { workspace = true, default-features = false, features = ["std", "sink", "async-await-macro"] } once_cell = "1.10" -ordered-float = "4.0" +ordered-float = { workspace = true } percent-encoding = { version = "2.0", optional = true } -rand = { version = "0.8", default-features = false, features = ["std", "std_rng","small_rng"], optional = true } -glob = {version = "0.3.1", optional =true} -serde = { version = "1.0", features = ["derive", "rc"], optional = true } -serde_json = { version = "1", optional = true } -thiserror = "1" -url = { version = "2.2", optional = true } -tokio = { version = "1.0", default-features = false, features = ["rt", "time"], optional = true } -tokio-stream = { version = "0.1.1", optional = true } -http = { version = "0.2", optional = true } +rand = { workspace = true, default-features = false, features = ["std", "std_rng","small_rng"], optional = true } +glob = { version = "0.3.1", optional =true} +serde = { workspace = true, features = ["derive", "rc"], optional = true } +serde_json = { workspace = true, optional = true } +thiserror = { workspace = true } +url = { workspace = true, optional = true } +tokio = { workspace = true, default-features = false, features = ["rt", "time"], optional = true } +tokio-stream = { workspace = true, optional = true } +http = { workspace = true, optional = true } [package.metadata.docs.rs] all-features = true @@ -38,7 +38,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dev-dependencies] indexmap = "2.0" criterion = { version = "0.5", features = ["html_reports"] } -temp-env = "0.3.6" +temp-env = { workspace = true } [target.'cfg(not(target_os = "windows"))'.dev-dependencies] pprof = { version = "0.13", features = ["flamegraph", "criterion"] } diff --git a/opentelemetry-stdout/Cargo.toml b/opentelemetry-stdout/Cargo.toml index 35ab1f5e2f..c3e9a25198 100644 --- a/opentelemetry-stdout/Cargo.toml +++ b/opentelemetry-stdout/Cargo.toml @@ -21,17 +21,17 @@ metrics = ["async-trait", "opentelemetry/metrics", "opentelemetry_sdk/metrics"] logs = ["opentelemetry/logs", "opentelemetry_sdk/logs", "async-trait", "thiserror"] [dependencies] -async-trait = { version = "0.1", optional = true } +async-trait = { workspace = true, optional = true } chrono = { version = "0.4.22", default-features = false, features = ["clock"] } -thiserror = { version = "1", optional = true } -futures-util = { version = "0.3", optional = true, default-features = false } +thiserror = { workspace = true, optional = true } +futures-util = { workspace = true, optional = true, default-features = false } opentelemetry = { version = "0.21", path = "../opentelemetry", default_features = false } opentelemetry_sdk = { version = "0.21", path = "../opentelemetry-sdk", default_features = false } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -ordered-float = "4.0" +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +ordered-float = { workspace = true } [dev-dependencies] opentelemetry = { path = "../opentelemetry", features = ["metrics"] } opentelemetry_sdk = { path = "../opentelemetry-sdk", features = ["rt-tokio", "metrics"] } -tokio = { version = "1.27", features = ["full"] } +tokio = { workspace = true, features = ["full"] } diff --git a/opentelemetry-zipkin/Cargo.toml b/opentelemetry-zipkin/Cargo.toml index 34fc2a24ec..d87a84b089 100644 --- a/opentelemetry-zipkin/Cargo.toml +++ b/opentelemetry-zipkin/Cargo.toml @@ -27,24 +27,24 @@ reqwest-rustls = ["reqwest", "reqwest/rustls-tls-native-roots"] surf-client = ["surf", "opentelemetry-http/surf"] [dependencies] -async-trait = "0.1" +async-trait = { workspace = true } opentelemetry = { version = "0.21", path = "../opentelemetry" } opentelemetry_sdk = { version = "0.21", path = "../opentelemetry-sdk", features = ["trace"] } opentelemetry-http = { version = "0.10", path = "../opentelemetry-http" } opentelemetry-semantic-conventions = { version = "0.13", path = "../opentelemetry-semantic-conventions" } -serde_json = "1.0" -serde = { version = "1.0", features = ["derive"] } +serde_json = { workspace = true } +serde = { workspace = true, features = ["derive"] } typed-builder = "0.12" once_cell = "1.12" -http = "0.2" -reqwest = { version = "0.11", optional = true, default-features = false } -surf = { version = "2.0", optional = true, default-features = false } -thiserror = { version = "1.0"} -futures-core = "0.3" +http = { workspace = true } +reqwest = { workspace = true, optional = true, default-features = false } +surf = { workspace = true, optional = true, default-features = false } +thiserror = { workspace = true } +futures-core = { workspace = true } [dev-dependencies] -bytes = "1" -futures-util = { version = "0.3", features = ["io"] } -hyper = "0.14" +bytes = { workspace = true } +futures-util = { workspace = true, features = ["io"] } +hyper = { workspace = true } opentelemetry_sdk = { default-features = false, features = ["trace", "testing"], path = "../opentelemetry-sdk" } -temp-env = "0.3.6" +temp-env = { workspace = true } diff --git a/opentelemetry/Cargo.toml b/opentelemetry/Cargo.toml index 2c6726db4c..388cc24cce 100644 --- a/opentelemetry/Cargo.toml +++ b/opentelemetry/Cargo.toml @@ -21,11 +21,11 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -futures-core = "0.3" +futures-core = { workspace = true } futures-sink = "0.3" -once_cell = "1.12.0" -pin-project-lite = { version = "0.2", optional = true } -thiserror = "1.0.7" +once_cell = "1.13.0" +pin-project-lite = { workspace = true, optional = true } +thiserror = { workspace = true } urlencoding = "2.1.2" [target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies] diff --git a/stress/Cargo.toml b/stress/Cargo.toml index b3b6211b04..bd9c2911cd 100644 --- a/stress/Cargo.toml +++ b/stress/Cargo.toml @@ -28,7 +28,7 @@ opentelemetry_sdk = { path = "../opentelemetry-sdk", features = ["metrics", "log opentelemetry-appender-tracing = { path = "../opentelemetry-appender-tracing"} opentelemetry-stdout = { path = "../opentelemetry-stdout", features = ["logs"]} rand = { version = "0.8.4", features = ["small_rng"] } -tracing = {version = "0.1.37", default-features = false, features = ["std"]} -tracing-core = "0.1.31" -tracing-subscriber = { version = "0.3.0", default-features = false, features = ["registry", "std"] } +tracing = { workspace = true, default-features = false, features = ["std"]} +tracing-core = { workspace = true } +tracing-subscriber = { workspace = true, default-features = false, features = ["registry", "std"] } num-format = "0.4.4"