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
150 changes: 150 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,156 @@ 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]
# We prefer to place all dependencies for our workspace crates here.
# The should be added here with default features only so that each
# crate explicitly enables the features they need.
#
# There are two execeptions to this:
# - If a crate needs a dependency with `default-features=false` the
# default features must be disabled here.
# - If we really want to uniformely enforce a feature in all crates,
# e.g. anyhow's backtrace feature.

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.6"
backoff = "0.4"
base64 = "0.13.1"
bincode = "1.3.3"
bs58 = "0.4"
bytecheck = "0.6.7"
bytes = "1.1"
bytesize = "1.1"
cid = "0.9"
clap = "4.0.15"
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 = "3.0"
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-embed = { version = "0.1.3", path = "./iroh-embed" }
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-one = { version = "0.1.3", path = "./iroh-one" }
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 = "0.11.2"
multibase = "0.9.1"
multihash = "0.17"
names = { version = "0.14.0", default-features = false }
nix = "0.26"
num_enum = "0.5.7"
once_cell = "1.15"
opentelemetry = "0.18"
opentelemetry-otlp = "0.11"
par-stream = { version = "0.10.2", default-features = false }
paste = "1.0.9"
phf = "0.11"
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", default-features = false}
rkyv = "0.7.37"
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", 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-test = "0.4.2"
tokio-util = "0.7"
toml = "0.5.9"
tower = "0.4"
tower-http = "0.3"
tower-layer = "0.3"
tracing = "0.1.34"
tracing-opentelemetry = "0.18"
tracing-subscriber = "0.3.14"
trust-dns-resolver = "0.22.0"
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
22 changes: 11 additions & 11 deletions examples/embed/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "iroh-example-embed"
publish = false
version = "0.1.3"
edition = "2021"
authors = ["team@n0.computer"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/iroh"
description = "Example of using iroh-embed"
publish = false
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
anyhow = "1"
futures-util = "0.3.21"
iroh-api = { path = "../../iroh-api" }
iroh-embed = { path = "../../iroh-embed" }
testdir = "0.7.0"
tokio = { version = "1", features = ["rt-multi-thread"] }
anyhow.workspace = true
futures-util.workspace = true
iroh-api.workspace = true
iroh-embed.workspace = true
testdir.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread"] }
36 changes: 18 additions & 18 deletions examples/importer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[package]
name = "iroh-example-importer"
publish = false
version = "0.1.3"
edition = "2021"
authors = ["team@n0.computer"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/iroh"
publish = false
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
bytes = "1.1"
bytesize = "1.1.0"
clap = { version = "4.0.9", features = ["derive"] }
futures = "0.3.21"
indicatif = "0.17.1"
iroh-car = { path = "../../iroh-car" }
iroh-unixfs = { path = "../../iroh-unixfs" }
iroh-resolver = { path = "../../iroh-resolver" }
iroh-rpc-client = { path = "../../iroh-rpc-client" }
iroh-util = { path = "../../iroh-util" }
par-stream = { version = "0.10.2", default-features = false, features = ["runtime-tokio"]}
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
anyhow.workspace = true
bytes.workspace = true
bytesize.workspace = true
clap = { workspace = true, features = ["derive"] }
futures.workspace = true
indicatif.workspace = true
iroh-car.workspace = true
iroh-unixfs.workspace = true
iroh-resolver.workspace = true
iroh-rpc-client.workspace = true
iroh-util.workspace = true
par-stream = { workspace = true, features = ["runtime-tokio"]}
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
58 changes: 29 additions & 29 deletions iroh-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
[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"
async-trait = "0.1.53"
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
async-trait.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]
criterion = { version = "0.4.0", features = ["async_tokio"] }
iroh-rpc-types = { version = "0.1.3", path = "../iroh-rpc-types", default-features = false }
iroh-store = { version = "0.1.3", path = "../iroh-store", default-features = false }
tempfile = "3.3.0"
criterion = { workspace = true, features = ["async_tokio"] }
iroh-rpc-types.workspace = true
iroh-store.workspace = true
tempfile.workspace = true

[[bench]]
name = "add"
Expand Down
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
Loading