Skip to content

Commit

Permalink
build: Move common dependencies to workspace.dependencies (#2455)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer authored Sep 1, 2023
1 parent c09a01e commit a0c3d71
Show file tree
Hide file tree
Showing 73 changed files with 7,123 additions and 5,269 deletions.
17 changes: 10 additions & 7 deletions Cargo.lock

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

24 changes: 24 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,27 @@ debug = false
# In release, however, we do want full debug information to report
# panic and error stack traces to Sentry.
debug = true

[workspace.dependencies]
anyhow = "1.0.66"
chrono = { version = "0.4.24", default-features = false, features = [
"std",
"serde",
] }
clap = { version = "4.1.4" }
criterion = "0.5"
futures = { version = "0.3", default-features = false }
insta = { version = "1.31.0", features = ["json", "redactions", "ron"] }
itertools = "0.10.5"
once_cell = "1.13.1"
regex = "1.9.1"
serde = { version = "1.0.159", features = ["derive"] }
serde_json = "1.0.93"
serde_yaml = "0.9.17"
schemars = { version = "=0.8.10", features = ["uuid1", "chrono"] }
similar-asserts = "1.4.2"
smallvec = { version = "1.10.0", features = ["serde"] }
thiserror = "1.0.38"
tokio = { version = "1.28.0", features = ["macros", "sync", "tracing"] }
url = "2.1.1"
uuid = { version = "1.3.0", features = ["serde", "v4"] }
11 changes: 6 additions & 5 deletions relay-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ publish = false
build = "build.rs"

[dependencies]
chrono = { version = "0.4.24", default-features = false, features = ["std", "serde"] }
chrono = { workspace = true }
data-encoding = "2.3.3"
ed25519-dalek = { version = "2.0.0", features = ["rand_core"] }
thiserror = "1.0.38"
hmac = "0.12.1"
rand = "0.8.5"
relay-common = { path = "../relay-common" }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = "0.10.6"
data-encoding = "2.3.3"
thiserror = { workspace = true }
uuid = { workspace = true }
2 changes: 1 addition & 1 deletion relay-auth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ use hmac::{Hmac, Mac};
use rand::rngs::OsRng;
use rand::{thread_rng, RngCore};
use relay_common::time::UnixTimestamp;
use relay_common::uuid::Uuid;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
use sha2::Sha512;
use uuid::Uuid;

include!(concat!(env!("OUT_DIR"), "/constants.gen.rs"));

Expand Down
6 changes: 3 additions & 3 deletions relay-aws-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ publish = false
relay-log = { path = "../relay-log" }
relay-system = { path = "../relay-system" }
reqwest = { version = "0.11.1", features = ["json"] }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
tokio = { version = "1.28.0" }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
7 changes: 2 additions & 5 deletions relay-base-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ publish = false
[dependencies]
relay-common = { path = "../relay-common" }
relay-protocol = { path = "../relay-protocol" }
schemars = { version = "0.8.0", features = [
"uuid1",
"chrono",
], optional = true }
serde = { version = "1.0.114", features = ["derive"] }
schemars = { workspace = true, optional = true }
serde = { workspace = true }

[features]
default = []
Expand Down
13 changes: 7 additions & 6 deletions relay-cabi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
anyhow = { version = "1.0.66", features = ["backtrace"] }
chrono = { version = "0.4.24", default-features = false, features = ["std"] }
anyhow = { workspace = true, features = ["backtrace"] }
chrono = { workspace = true }
json-forensics = { version = "0.1.1" }
lru = "0.9.0"
once_cell = "1.13.1"
regex = "1.9.1"
once_cell = { workspace = true }
regex = { workspace = true }
relay-auth = { path = "../relay-auth" }
relay-base-schema = { path = "../relay-base-schema" }
relay-common = { path = "../relay-common" }
Expand All @@ -30,5 +30,6 @@ relay-pii = { path = "../relay-pii" }
relay-protocol = { path = "../relay-protocol" }
relay-sampling = { path = "../relay-sampling" }
sentry-release-parser = { version = "1.3.2", features = ["serde"] }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
serde = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
2 changes: 1 addition & 1 deletion relay-cabi/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::ffi::CStr;
use std::os::raw::c_char;
use std::{mem, ptr, slice, str};

use relay_common::uuid::Uuid;
use uuid::Uuid;

/// A length-prefixed UTF-8 string.
///
Expand Down
9 changes: 4 additions & 5 deletions relay-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ license-file = "../LICENSE"
publish = false

[dependencies]
chrono = { version = "0.4.24", default-features = false, features = ["std"] }
chrono = { workspace = true }
globset = "0.4.5"
lru = "0.9.0"
once_cell = "1.13.1"
once_cell = { workspace = true }
parking_lot = "0.12.1"
regex = "1.9.1"
regex = { workspace = true }
sentry-types = "0.31.3"
serde = { version = "1.0.114", features = ["derive"] }
uuid = { version = "1.3.0", features = ["serde", "v4", "v5"] }
serde = { workspace = true }

[dev-dependencies]
serde_test = "1.0.125"
3 changes: 0 additions & 3 deletions relay-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ pub mod glob3;
pub mod time;

pub use sentry_types::{Auth, Dsn, ParseAuthError, ParseDsnError, Scheme};

#[doc(inline)]
pub use uuid;
13 changes: 7 additions & 6 deletions relay-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ default = []
processing = []

[dependencies]
anyhow = "1.0.66"
anyhow = { workspace = true }
human-size = "0.4.1"
num_cpus = "1.13.0"
relay-auth = { path = "../relay-auth" }
Expand All @@ -23,8 +23,9 @@ relay-kafka = { path = "../relay-kafka" }
relay-log = { path = "../relay-log", features = ["init"] }
relay-metrics = { path = "../relay-metrics" }
relay-redis = { path = "../relay-redis" }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
serde_yaml = "0.9.17"
thiserror = "1.0.38"
url = "2.1.1"
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
thiserror = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }
2 changes: 1 addition & 1 deletion relay-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use std::{env, fmt, fs, io};

use anyhow::Context;
use relay_auth::{generate_key_pair, generate_relay_id, PublicKey, RelayId, SecretKey};
use relay_common::uuid::Uuid;
use relay_common::Dsn;
use relay_kafka::{
ConfigError as KafkaConfigError, KafkaConfig, KafkaConfigParam, KafkaTopic, TopicAssignments,
Expand All @@ -19,6 +18,7 @@ use relay_metrics::{AggregatorConfig, Condition, Field, MetricNamespace, ScopedA
use relay_redis::RedisConfig;
use serde::de::{DeserializeOwned, Unexpected, Visitor};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use uuid::Uuid;

use crate::byte_size::ByteSize;
use crate::upstream::UpstreamDescriptor;
Expand Down
12 changes: 6 additions & 6 deletions relay-dynamic-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = false
default = []

[dependencies]
anyhow = "1.0.66"
anyhow = { workspace = true }
assert-json-diff = "2.0.2"
relay-auth = { path = "../relay-auth" }
relay-base-schema = { path = "../relay-base-schema" }
Expand All @@ -23,10 +23,10 @@ relay-event-normalization = { path = "../relay-event-normalization" }
relay-pii = { path = "../relay-pii" }
relay-quotas = { path = "../relay-quotas" }
relay-sampling = { path = "../relay-sampling" }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
smallvec = "1.10.0"
serde = { workspace = true }
serde_json = { workspace = true }
smallvec = { workspace = true }

[dev-dependencies]
insta = "1.31.0"
similar-asserts = "1.4.2"
insta = { workspace = true }
similar-asserts = { workspace = true }
27 changes: 12 additions & 15 deletions relay-event-normalization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,33 @@ publish = false

[dependencies]
bytecount = "0.6.0"
chrono = { version = "0.4.24", default-features = false, features = [
"clock",
"std",
"serde",
] }
chrono = { workspace = true, features = ["clock"] }
dynfmt = { version = "0.1.4", features = ["python", "curly"] }
itertools = "0.10.5"
itertools = { workspace = true }
maxminddb = "0.23.0"
md5 = "0.7.0"
once_cell = "1.13.1"
regex = "1.9.1"
once_cell = { workspace = true }
regex = { workspace = true }
relay-base-schema = { path = "../relay-base-schema" }
relay-common = { path = "../relay-common" }
relay-event-schema = { path = "../relay-event-schema" }
relay-log = { path = "../relay-log" }
relay-protocol = { path = "../relay-protocol" }
relay-ua = { path = "../relay-ua" }
sentry-release-parser = "1.3.2"
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
serde = { workspace = true }
serde_json = { workspace = true }
serde_urlencoded = "0.7.1"
smallvec = { version = "1.4.0", features = ["serde"] }
smallvec = { workspace = true }
sqlparser = { version = "0.37.0", features = ["visitor"] }
thiserror = "1.0.38"
url = "2.1.1"
thiserror = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }

[dev-dependencies]
insta = { version = "1.31.0", features = ["json", "redactions", "ron", "yaml"] }
insta = { workspace = true }
relay-protocol = { path = "../relay-protocol", features = ["test"] }
similar-asserts = "1.4.2"
similar-asserts = { workspace = true }

[features]
default = ["mmap"]
Expand Down
Loading

0 comments on commit a0c3d71

Please sign in to comment.