Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cargo's workspace.package and workspace.dependencies #595

Merged
merged 9 commits into from
Dec 16, 2022
134 changes: 134 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,140 @@ members = [
# https://github.com/gfx-rs/wgpu/issues/2356#issuecomment-1005134986
resolver = "2"

[workspace.package]
version = "0.1.3"
edition = "2021"
license = "Apache-2.0/MIT"
rust-version = "1.65"
repository = "https://github.com/n0-computer/iroh"

[workspace.dependencies]
ahash = "0.8"
anyhow = { version = "1", features = ["backtrace"] }
async-broadcast = "0.4.1"
async-channel = "1.7.1"
async-recursion = "1"
async-stream = "0.3.3"
async-trait = "0.1.57"
asynchronous-codec = "0.6"
axum = "0.5.15"
backoff = "0.4"
base64 = "0.13.1"
bincode = "1.3.3"
bytecheck = "0.6.7"
bytes = "1.1"
cid = "0.9"
clap = { version = "4.0.15", features = ["derive"] }
clap_mangen = "0.2.2"
config = "0.13.1"
console = { version = "0.15", default-features = false }
console-subscriber = "0.1.7"
criterion = "0.4"
crossterm = "0.25"
ctrlc = "3.2.2"
deadqueue = "0.2.3"
derivative = "2.2"
derive_more = "0.99.17"
dirs-next = "2"
fastmurmur3 = "0.1.2"
fnv = "1.0.7"
futures = "0.3.24"
futures-util = "0.3.21"
git-version = "0.3.5"
handlebars = "4"
headers = "0.3.7"
hex = "0.4.3"
hex-literal = "0.3.4"
http = "0.2"
http-body = "0.4.5"
http-serde = "1.1"
humansize = "2"
hyper = "0.14.23"
ignore = "0.4.18"
indicatif = "0.17.1"
integer-encoding = { version = "3.0", features = ["tokio_async"] }
iroh = { version = "0.1.3", path = "./iroh" }
iroh-api = { version = "0.1.3", path = "./iroh-api" }
iroh-bitswap = { version = "0.1.3", path = "./iroh-bitswap" }
iroh-car = { version = "0.1.3", path = "./iroh-car" }
iroh-gateway = { version = "0.1.3", path = "./iroh-gateway" }
iroh-localops = { version = "0.1.3", path = "./iroh-localops" }
iroh-metrics = { version = "0.1.3", path = "./iroh-metrics" }
iroh-p2p = { version = "0.1.3", path = "./iroh-p2p" }
iroh-resolver = { version = "0.1.3", path = "./iroh-resolver" }
iroh-rpc-client = { version = "0.1.3", path = "./iroh-rpc-client" }
iroh-rpc-types = { version = "0.1.3", path = "./iroh-rpc-types" }
iroh-store = { version = "0.1.3", path = "./iroh-store" }
iroh-unixfs = { version = "0.1.3", path = "./iroh-unixfs" }
iroh-util = { version = "0.1.3", path = "./iroh-util" }
keyed_priority_queue = "0.4.1"
lazy_static = "1.4"
libipld = "0.15"
libp2p = { version = "0.50", default-features = false }
lru = "0.8"
mime = "0.3"
mime_classifier = "0.0.1"
mime_guess = "2.0.4"
mockall = { version = "0.11.2" }
multibase = "0.9.1"
multihash = "0.17"
names = { version = "0.14.0", default-features = false }
nix = { version = "0.26" }
num_enum = "0.5.7"
once_cell = "1.15"
opentelemetry = { version = "0.18", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.11", features = ["tonic"] }
paste = "1.0.9"
phf = { version = "0.11", features = ["macros"] }
prometheus-client = "0.18"
proptest = "1"
prost = "0.11"
prost-build = "0.11.1"
quic-rpc = { version = "0.2.2", default-features = false }
rand = "0.8.5"
rand_chacha = "0.3.1"
rayon = "1.5.3"
relative-path = "1.7.2"
reqwest = { version = "0.11.10", features = ["rustls-tls"], default-features = false}
rkyv = { version = "0.7.37", features = ["validation"] }
rlimit = "0.8.3"
rocksdb = "0.19"
ruzstd = "0.3"
serde = "1"
serde-error = "0.1.2"
serde_json = "1.0.87"
serde_qs = "0.10.1"
serde_with = "2.1"
sha2 = { version = "0.10", default-features = false }
smallvec = "1.10"
ssh-key = { version = "0.5.1", features = ["ed25519", "std", "rand_core"], default-features = false }
sysinfo = "0.26.5"
temp-env = "0.3.1"
tempfile = "3.3"
testdir = "0.7.0"
thiserror = "1"
time = "0.3.9"
tokio = "1"
tokio-context = "0.1.3"
tokio-stream = "0.1.11"
tokio-util = "0.7"
toml = "0.5.9"
tower = { version = "0.4", features = ["util", "timeout", "load-shed", "limit"] }
tower-http = { version = "0.3", features = ["trace", "compression-full", "cors"] }
tower-layer = { version = "0.3" }
tracing = "0.1.34"
tracing-opentelemetry = "0.18"
tracing-subscriber = "0.3.14"
trust-dns-resolver = { version = "0.22.0", features = ["dns-over-https-rustls", "serde-config", "tokio-runtime"] }
trycmd = "0.14.1"
unsigned-varint = "0.7.1"
url = "2.2.2"
urlencoding = "2.1"
wasm-timer = "0.2.5"
which = "4.3.0"
xtaskops = "0.3"
zeroize = "1.4"

[profile.optimized-release]
inherits = 'release'
lto = true
Expand Down
16 changes: 8 additions & 8 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[package]
name = "iroh-examples"
version = "0.1.3"
edition = "2021"
version.workspace = true
edition.workspace = true
authors = ["dignifiedquire <me@dignifiedquire.com>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/iroh"
license.workspace = true
repository.workspace = true
description = "Examples"
rust-version = "1.65"
rust-version.workspace = true
publish = false

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
bytes = "1.1.0"
bytes.workspace = true
bytesize = "1.1.0"
clap = { version = "4.0.9", features = ["derive"] }
futures = "0.3.21"
clap.workspace = true
futures.workspace = true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i realise this example still needs cleaning up. i'll do this once there's approval in principle. this might also race the iroh-embed pr - so one of them will need fixing up anyway. and examples are touched by that pr

indicatif = "0.17.0"
iroh-car = { version = "0.1.3", path = "../iroh-car" }
iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" }
Expand Down
50 changes: 25 additions & 25 deletions iroh-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
[package]
name = "iroh-api"
version = "0.1.3"
edition = "2021"
license = "Apache-2.0/MIT"
readme = "README.md"
description = "Rust API for Iroh"
rust-version = "1.65"
repository = "https://github.com/n0-computer/iroh"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
repository.workspace = true

[features]
testing = ["dep:mockall"]

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
async-stream = "0.3.3"
bytes = "1.1.0"
cid = "0.9"
config = "0.13.1"
futures = "0.3.21"
iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false }
iroh-resolver = { version = "0.1.3", path = "../iroh-resolver" }
iroh-rpc-client = { version = "0.1.3", path = "../iroh-rpc-client", default-features = false }
iroh-rpc-types = { version = "0.1.3", path = "../iroh-rpc-types", default-features = false }
iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" }
iroh-util = { version = "0.1.3", path = "../iroh-util" }
libp2p = "0.50"
mockall = { version = "0.11.2", optional = true }
relative-path = "1.7.2"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tokio = { version = "1" }
tracing = "0.1.34"
anyhow.workspace = true
async-stream.workspace = true
bytes.workspace = true
cid.workspace = true
config.workspace = true
futures.workspace = true
iroh-metrics.workspace = true
iroh-resolver.workspace = true
iroh-rpc-client.workspace = true
iroh-rpc-types.workspace = true
iroh-unixfs.workspace = true
iroh-util.workspace = true
libp2p.workspace = true
mockall = { workspace = true, optional = true }
relative-path.workspace = true
serde = { workspace = true, features = ["derive"] }
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true

[dev-dependencies]
tempfile = "3.3.0"
tempfile.workspace = true
80 changes: 40 additions & 40 deletions iroh-bitswap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
[package]
name = "iroh-bitswap"
version = "0.1.3"
edition = "2021"
authors = ["dignifiedquire <me@dignifiedquire.com>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/iroh"
description = "Implementation of the bitswap protocol"
rust-version = "1.65"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true

[build-dependencies]
prost-build = "0.11.1"
prost-build.workspace = true

[dependencies]
ahash = "0.8.0"
anyhow = { version = "1", features = ["backtrace"] }
async-broadcast = "0.4.1"
async-channel = "1.7.1"
async-trait = "0.1.57"
asynchronous-codec = "0.6.0"
bytes = "1.1.0"
cid = "0.9"
deadqueue = "0.2.3"
derivative = "2.2.0"
futures = "0.3.21"
iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features = ["bitswap"] }
iroh-util = { version = "0.1.3", path = "../iroh-util" }
keyed_priority_queue = "0.4.1"
libp2p = { version = "0.50", default-features = false, features = ["ping"] }
multihash = "0.17"
names = { version = "0.14.0", default-features = false }
num_enum = "0.5.7"
once_cell = "1.14.0"
prost = "0.11"
rand = "0.8.5"
smallvec = "1.9.0"
thiserror = "1.0.20"
tokio = { version = "1", features = ["sync"] }
tokio-context = "0.1.3"
tokio-stream = "0.1.11"
tracing = "0.1.34"
unsigned-varint = { version = "0.7.0", features = ["asynchronous_codec"] }
wasm-timer = "0.2.5"
ahash.workspace = true
anyhow.workspace = true
async-broadcast.workspace = true
async-channel.workspace = true
async-trait.workspace = true
asynchronous-codec.workspace = true
bytes.workspace = true
cid.workspace = true
deadqueue.workspace = true
derivative.workspace = true
futures.workspace = true
iroh-metrics = { workspace = true, features = ["bitswap"] }
iroh-util.workspace = true
keyed_priority_queue.workspace = true
libp2p = { workspace = true, features = ["ping"] }
multihash.workspace = true
names.workspace = true
num_enum.workspace = true
once_cell.workspace = true
prost.workspace = true
rand.workspace = true
smallvec.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["sync"] }
tokio-context.workspace = true
tokio-stream.workspace = true
tracing.workspace = true
unsigned-varint = { workspace = true, features = ["asynchronous_codec"] }
wasm-timer.workspace = true

[dev-dependencies]
criterion = "0.4.0"
libp2p = { version = "0.50", features = ["yamux", "noise", "tcp", "tokio"], default-features = false }
tokio = { version = "1", features = ["macros", "net", "rt"] }
tokio-util = { version = "0.7", features = ["compat"] }
tracing-subscriber = { version = "0.3.11", features = ["env-filter"] }
criterion.workspace = true
libp2p = { workspace = true, features = ["yamux", "noise", "tcp", "tokio"] }
tokio = { workspace = true, features = ["macros", "net", "rt"] }
tokio-util = { workspace = true, features = ["compat"] }
tracing-subscriber = { workspace = true, features = ["env-filter"] }


[[bench]]
Expand Down
26 changes: 13 additions & 13 deletions iroh-car/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[package]
name = "iroh-car"
version = "0.1.3"
edition = "2021"
authors = ["dignifiedquire <me@dignifiedquire.com>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/iroh"
description = "Implementation the car files for iroh"
rust-version = "1.65"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true

[dependencies]
cid = "0.9"
futures = "0.3.21"
integer-encoding = { version = "3.0", features = ["tokio_async"] }
ipld = { package = "libipld", version = "0.15"}
cid.workspace = true
futures.workspace = true
integer-encoding.workspace = true
ipld = { package = "libipld", version = "0.15" }
ipld-cbor = { package = "libipld-cbor", version = "0.15" }
thiserror = "1.0"
tokio = { version = "1", features = ["io-util"] }
thiserror.workspace = true
tokio = { workspace = true, features = ["io-util"] }

[dev-dependencies]
multihash = "0.17"
tokio = { version = "1", features = ["macros", "sync", "rt", "fs", "io-util"] }
multihash.workspace = true
tokio = { workspace = true, features = ["macros", "sync", "rt", "fs", "io-util"] }

[features]
Loading