Skip to content

Commit

Permalink
Move other dependencies into workspace dependencies table
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Feb 16, 2024
1 parent 15020e6 commit a7a0211
Show file tree
Hide file tree
Showing 12 changed files with 114 additions and 69 deletions.
39 changes: 39 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,42 @@ atrium-api = { version = "0.16.0", path = "atrium-api" }
atrium-xrpc = { version = "0.8.0", path = "atrium-xrpc" }
atrium-xrpc-client = { version = "0.2.0", path = "atrium-xrpc-client" }
atrium-xrpc-server = { version = "0.1.0", path = "atrium-xrpc-server" }

# async in traits
# Can be removed once MSRV is at least 1.75.0.
async-trait = "0.1.68"

# DAG-CBOR codec and CAR format
ciborium = "0.2.1"
cid = "0.10.1"
libipld-core = "0.16"
rs-car = "0.4.1"
serde_ipld_dagcbor = "0.3"

# Serde
serde = "1.0.160"
serde_bytes = "0.11.9"
serde_json = "1.0.96"
serde_qs = "0.12"

# Networking
futures = { version = "0.3.28", default-features = false }
http = "0.2.9"
isahc = "1.7.2"
reqwest = { version = "0.11.22", default-features = false }
surf = { version = "2.3.2", default-features = false }
tokio = { version = "1.33", default-features = false }
tokio-tungstenite = "0.21"

# Errors
anyhow = "1.0.71"
thiserror = "1"

# CLI
chrono = "0.4.24"
clap = { version = "4.2.4", features = ["derive"] }
dirs = "5.0.1"

# Testing
http-client = { version = "6.5.3", default-features = false }
mockito = "1.2"
20 changes: 10 additions & 10 deletions atrium-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ keywords.workspace = true

[dependencies]
atrium-xrpc.workspace = true
async-trait = "0.1.68"
http = "0.2.9"
serde = { version = "1.0.160", features = ["derive"] }
serde_bytes = "0.11.9"
tokio = { version = "1.33.0", default-features = false, optional = true }
cid = { version = "0.10.1", optional = true }
libipld-core = { version = "0.16.0", optional = true }
async-trait.workspace = true
http.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_bytes.workspace = true
tokio = { workspace = true, optional = true }
cid = { workspace = true, optional = true }
libipld-core = { workspace = true, optional = true }

[features]
default = ["agent"]
Expand All @@ -28,9 +28,9 @@ dag-cbor = ["cid/serde-codec", "libipld-core/serde-codec"]

[dev-dependencies]
atrium-xrpc-client.workspace = true
futures = "0.3.28"
serde_json = "1.0.107"
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
futures.workspace = true
serde_json.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
serde_ipld_dagcbor = { git = "https://github.com/sugyan/serde_ipld_dagcbor.git", rev = "345b240" }

[package.metadata.docs.rs]
Expand Down
14 changes: 7 additions & 7 deletions atrium-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ edition.workspace = true
rust-version.workspace = true

[dependencies]
async-trait = "0.1.74"
async-trait.workspace = true
atrium-api.workspace = true
atrium-xrpc-client.workspace = true
chrono = "0.4.24"
clap = { version = "4.4.8", features = ["derive"] }
dirs = "5.0.1"
serde = "1.0.160"
serde_json = "1.0"
tokio = { version = "1", features = ["full"] }
chrono.workspace = true
clap.workspace = true
dirs.workspace = true
serde.workspace = true
serde_json.workspace = true
tokio = { workspace = true, features = ["full"] }
33 changes: 11 additions & 22 deletions atrium-xrpc-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,12 @@ license.workspace = true
keywords.workspace = true

[dependencies]
async-trait = "0.1.74"
async-trait.workspace = true
atrium-xrpc.workspace = true
http = "0.2.9"

[dependencies.isahc]
version = "1.7.2"
optional = true

[dependencies.reqwest]
version = "0.11.22"
default-features = false
optional = true

[dependencies.surf]
version = "2.3.2"
default-features = false
optional = true
http.workspace = true
isahc = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true }
surf = { workspace = true, optional = true }

[features]
default = ["reqwest-native"]
Expand All @@ -38,12 +27,12 @@ reqwest-rustls = ["reqwest/rustls-tls"]
surf = ["dep:surf"]

[dev-dependencies]
surf = { version = "2.3.2", default-features = false, features = ["h1-client-rustls"] }
http-client = { version = "6.5.3", default-features = false, features = ["h1_client", "rustls"] }
mockito = "1.2.0"
tokio = { version = "1.33.0", features = ["macros"] }
serde = { version = "1.0.192", features = ["derive"] }
futures = { version = "0.3.29", default-features = false }
surf = { workspace = true, features = ["h1-client-rustls"] }
http-client = { workspace = true, features = ["h1_client", "rustls"] }
mockito.workspace = true
tokio = { workspace = true, features = ["macros"] }
serde = { workspace = true, features = ["derive"] }
futures.workspace = true

[package.metadata.docs.rs]
all-features = true
Expand Down
6 changes: 3 additions & 3 deletions atrium-xrpc-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ rust-version.workspace = true

[dependencies]
atrium-api = "0.15"
anyhow = "1.0.71"
libipld-core = { version = "0.16.0", features = ["serde-codec"] }
serde_ipld_dagcbor = "0.3.0"
anyhow.workspace = true
libipld-core = { workspace = true, features = ["serde-codec"] }
serde_ipld_dagcbor.workspace = true
14 changes: 7 additions & 7 deletions atrium-xrpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ license.workspace = true
keywords.workspace = true

[dependencies]
async-trait = "0.1.68"
http = "0.2.9"
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
serde_qs = "0.12.0"
thiserror = "1.0"
async-trait.workspace = true
http.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
serde_qs.workspace = true
thiserror.workspace = true

[dev-dependencies]
tokio = { version = "1.33.0", features = ["macros", "rt"] }
tokio = { workspace = true, features = ["macros", "rt"] }
6 changes: 3 additions & 3 deletions examples/concurrent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ edition = "2021"
[dependencies]
atrium-api.workspace = true
atrium-xrpc-client.workspace = true
clap = { version = "4.4.7", features = ["derive"] }
futures = "0.3.29"
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
clap = { workspace = true, features = ["derive"] }
futures.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
10 changes: 5 additions & 5 deletions examples/firehose/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition = "2021"
[dependencies]
atrium-xrpc-server.workspace = true
atrium-api = "0.15"
ciborium = "0.2.1"
futures = "0.3.28"
rs-car = "0.4.1"
tokio = { version = "1.28.1", features = ["full"] }
tokio-tungstenite = { version = "0.21.0", features = ["native-tls"] }
ciborium.workspace = true
futures.workspace = true
rs-car.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-tungstenite = { workspace = true, features = ["native-tls"] }
17 changes: 17 additions & 0 deletions lexicon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@ edition = "2021"
# Intra-workspace dependencies
atrium-codegen = { version = "0.1.0", path = "atrium-codegen" }
atrium-lex = { version = "0.1.0", path = "atrium-lex" }

# Serde
serde = "1.0.160"
serde_json = "1.0.96"
serde_repr = "0.1.12"
serde_with = "2.3.2"

# Proc macros
heck = "0.4.1"
itertools = "0.10.5"
prettyplease = "0.2.15"
proc-macro2 = "1.0.56"
quote = "1.0.26"
syn = { version = "2.0.15", features = ["full"] }

# CLI
clap = { version = "4.2.4", features = ["derive"] }
14 changes: 7 additions & 7 deletions lexicon/atrium-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition.workspace = true

[dependencies]
atrium-lex.workspace = true
heck = "0.4.1"
itertools = "0.10.5"
prettyplease = "0.2.15"
proc-macro2 = "1.0.56"
quote = "1.0.26"
serde_json = "1.0"
syn = { version = "2.0.15", features = ["full"] }
heck.workspace = true
itertools.workspace = true
prettyplease.workspace = true
proc-macro2.workspace = true
quote.workspace = true
serde_json.workspace = true
syn.workspace = true
8 changes: 4 additions & 4 deletions lexicon/atrium-lex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ authors = ["sugyan <[email protected]>"]
edition.workspace = true

[dependencies]
serde = { version = "1.0.160", features = ["derive"] }
serde_repr = "0.1.12"
serde_with = "2.3.2"
serde = { workspace = true, features = ["derive"] }
serde_repr.workspace = true
serde_with.workspace = true

[dev-dependencies]
serde_json = "1.0"
serde_json.workspace = true
2 changes: 1 addition & 1 deletion lexicon/lexgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ publish = false

[dependencies]
atrium-codegen.workspace = true
clap = { version = "4.2.4", features = ["derive"] }
clap.workspace = true

0 comments on commit a7a0211

Please sign in to comment.