diff --git a/Cargo.toml b/Cargo.toml index 4b70541205..3b8a0f15df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/examples/embed/Cargo.toml b/examples/embed/Cargo.toml index 7a8f80231e..d3ec8245b9 100644 --- a/examples/embed/Cargo.toml +++ b/examples/embed/Cargo.toml @@ -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"] } diff --git a/examples/importer/Cargo.toml b/examples/importer/Cargo.toml index 2f2d2bc71c..99a0c4945e 100644 --- a/examples/importer/Cargo.toml +++ b/examples/importer/Cargo.toml @@ -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"] } diff --git a/iroh-api/Cargo.toml b/iroh-api/Cargo.toml index accfdc5169..4db2ae0ebe 100644 --- a/iroh-api/Cargo.toml +++ b/iroh-api/Cargo.toml @@ -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" diff --git a/iroh-bitswap/Cargo.toml b/iroh-bitswap/Cargo.toml index 5966e07ff6..15d5f16899 100644 --- a/iroh-bitswap/Cargo.toml +++ b/iroh-bitswap/Cargo.toml @@ -1,53 +1,53 @@ [package] name = "iroh-bitswap" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -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]] diff --git a/iroh-car/Cargo.toml b/iroh-car/Cargo.toml index a20a1d34bd..4a4be28fe6 100644 --- a/iroh-car/Cargo.toml +++ b/iroh-car/Cargo.toml @@ -1,24 +1,24 @@ [package] name = "iroh-car" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -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, features = ["tokio_async"] } +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] diff --git a/iroh-embed/Cargo.toml b/iroh-embed/Cargo.toml index 9fcebfcaa9..7738d75d67 100644 --- a/iroh-embed/Cargo.toml +++ b/iroh-embed/Cargo.toml @@ -1,29 +1,29 @@ [package] name = "iroh-embed" -version = "0.1.3" -edition = "2021" authors = ["Floris Bruynooghe "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Embedable iroh library" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -futures = "0.3.21" -iroh-api = { version = "0.1.3", path = "../iroh-api" } -iroh-gateway = { version = "0.1.3", path = "../iroh-gateway" } -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" } -reqwest = { version = "0.11", features = ["rustls-tls", "json"], default-features = false } -tokio = "1" +anyhow.workspace = true +futures.workspace = true +iroh-api.workspace = true +iroh-gateway.workspace = true +iroh-metrics.workspace = true +iroh-one.workspace = true +iroh-p2p.workspace = true +iroh-resolver.workspace = true +iroh-rpc-client.workspace = true +iroh-rpc-types.workspace = true +iroh-store.workspace = true +iroh-unixfs.workspace = true +reqwest = { workspace = true, features = ["rustls-tls", "json"] } +tokio.workspace = true [dev-dependencies] -testdir = "0.7.0" -tokio-test = "0.4.2" +testdir.workspace = true +tokio-test.workspace = true diff --git a/iroh-gateway/Cargo.toml b/iroh-gateway/Cargo.toml index cd24f5767e..f3e29595d1 100644 --- a/iroh-gateway/Cargo.toml +++ b/iroh-gateway/Cargo.toml @@ -1,66 +1,66 @@ [package] name = "iroh-gateway" -version = "0.1.3" -edition = "2021" -license = "Apache-2.0/MIT" readme = "README.md" description = "IPFS gateway" -repository = "https://github.com/n0-computer/iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -async-recursion = "1.0.0" -async-trait = "0.1.56" -axum = "0.6" -bytes = "1.1.0" -cid = "0.9" -clap = { version = "4.0.9", features = ["derive"] } -config = "0.13.1" -futures = "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.0" -hyper = "0.14.19" -iroh-car = { version = "0.1.3", path = "../iroh-car" } -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features = ["gateway"] } -iroh-resolver = { version = "0.1.3", path = "../iroh-resolver" } -iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } -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-util = { version = "0.1.3", path = "../iroh-util" } -libp2p = { version = "0.50", default-features = false } -mime = "0.3" -mime_classifier = "0.0.1" -mime_guess = "2.0.4" -names = { version = "0.14.0", default-features = false } -once_cell = "1.15.0" -opentelemetry = { version = "0.18.0", features = ["rt-tokio"] } -phf = { version = "0.11", features = ["macros"] } -rand = "0.8.5" -reqwest = { version = "0.11.10", features = ["rustls-tls"], default-features = false} -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.78" -serde_qs = "0.10.1" -sha2 = { version = "0.10", default-features = false } -time = "0.3.9" -tokio = { version = "1", features = ["macros", "rt-multi-thread", "process", "fs", "io-util"] } -tokio-util = { version = "0.7", features = ["io"] } -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.33" -tracing-opentelemetry = "0.18" -tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } -url = "2.2.2" -urlencoding = "2.1.0" +anyhow.workspace = true +async-recursion.workspace = true +async-trait.workspace = true +axum.workspace = true +bytes.workspace = true +cid.workspace = true +clap = { workspace = true, features = ["derive"] } +config.workspace = true +futures.workspace = true +git-version.workspace = true +handlebars.workspace = true +headers.workspace = true +hex-literal.workspace = true +hex.workspace = true +http-body.workspace = true +http-serde.workspace = true +http.workspace = true +hyper.workspace = true +iroh-car.workspace = true +iroh-metrics = { workspace = true, features = ["gateway"] } +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 +mime.workspace = true +mime_classifier.workspace = true +mime_guess.workspace = true +names.workspace = true +once_cell.workspace = true +opentelemetry = { workspace = true, features = ["rt-tokio"] } +phf = { workspace = true, features = ["macros"] } +rand.workspace = true +reqwest = { workspace = true, features = ["rustls-tls"] } +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true +serde_qs.workspace = true +sha2.workspace = true +time.workspace = true +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "process", "fs", "io-util"] } +tokio-util = { workspace = true, features = ["io"] } +toml.workspace = true +tower = { workspace = true, features = ["util", "timeout", "load-shed", "limit"] } +tower-http = { workspace = true, features = ["trace", "compression-full", "cors"] } +tower-layer.workspace = true +tracing-opentelemetry.workspace = true +tracing-subscriber = { workspace = true, features = ["env-filter"] } +tracing.workspace = true +url.workspace = true +urlencoding.workspace = true [dev-dependencies] -iroh-store = { version = "0.1.3", path = "../iroh-store" } -tempfile = "3.3.0" +iroh-store.workspace = true +tempfile.workspace = true diff --git a/iroh-localops/Cargo.toml b/iroh-localops/Cargo.toml index 917c76d6ca..da51584a33 100644 --- a/iroh-localops/Cargo.toml +++ b/iroh-localops/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "iroh-localops" -version = "0.1.3" -edition = "2021" -rust-version = "1.65" authors = ["dignifiedquire ", "b5 "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Iroh specific process management." +version.workspace = true +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } +anyhow.workspace = true [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", features = ["signal", "process"]} +nix = { workspace = true, features = ["signal", "process"] } diff --git a/iroh-metrics/Cargo.toml b/iroh-metrics/Cargo.toml index 97474e9f1e..53a7fe5f8c 100644 --- a/iroh-metrics/Cargo.toml +++ b/iroh-metrics/Cargo.toml @@ -1,34 +1,33 @@ [package] name = "iroh-metrics" -version = "0.1.3" -edition = "2021" -license = "Apache-2.0/MIT" +version.workspace = true +edition.workspace = true +license.workspace = true readme = "README.md" description = "Iroh metrics" -repository = "https://github.com/n0-computer/iroh" -rust-version = "1.65" +repository.workspace = true +rust-version.workspace = true [dependencies] -async-trait = "0.1.57" -config = "0.13.1" -console-subscriber = { version = "0.1.7", optional = true } -iroh-util = { version = "0.1.3", path = "../iroh-util" } -lazy_static = "1.4.0" -names = { version = "0.14.0", default-features = false } -opentelemetry = { version = "0.18.0", features = ["rt-tokio"] } -opentelemetry-otlp = { version = "0.11.0", features = ["tonic"] } -paste = "1.0.9" -prometheus-client = "0.18.0" -reqwest = { version = "0.11.10", features = ["rustls-tls"], default-features = false} -serde = { version = "1.0", features = ["derive"] } -tokio = { version = "1", features = ["macros", "rt-multi-thread", "process"] } -tracing = "0.1.33" -tracing-opentelemetry = "0.18" -tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } +async-trait.workspace = true +config.workspace = true +console-subscriber = { workspace = true, optional = true } +iroh-util.workspace = true +lazy_static.workspace = true +names.workspace = true +opentelemetry = { workspace = true, features = ["rt-tokio"] } +opentelemetry-otlp = { workspace = true, features = ["tonic"] } +paste.workspace = true +prometheus-client.workspace = true +reqwest = { workspace = true, features = ["rustls-tls"] } +serde = { workspace = true, features = ["derive"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "process"] } +tracing.workspace = true +tracing-opentelemetry.workspace = true +tracing-subscriber = { workspace = true, features = ["env-filter"] } [dependencies.libp2p] -version = "0.50" -default-features = false +workspace = true features = [ "gossipsub", "kad", diff --git a/iroh-one/Cargo.toml b/iroh-one/Cargo.toml index 0e2cbae0e0..d2869f35d6 100644 --- a/iroh-one/Cargo.toml +++ b/iroh-one/Cargo.toml @@ -1,42 +1,42 @@ [package] -description = "all of iroh in a single binary" -edition = "2021" -license = "Apache-2.0/MIT" name = "iroh-one" readme = "README.md" -repository = "https://github.com/n0-computer/iroh" -version = "0.1.3" -rust-version = "1.65" +description = "all of iroh in a single binary" +edition.workspace = true +license.workspace = true +repository.workspace = true +version.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -async-trait = "0.1.56" -axum = "0.6" -bytes = "1.1" -cid = "0.9" -clap = {version = "4.0.9", features = ["derive"]} -config = "0.13.1" -futures = "0.3.21" -headers = "0.3.7" -http-serde = "1.1.0" -hyper = "0.14.19" -iroh-gateway = { version = "0.1.3", path = "../iroh-gateway" } -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false } -iroh-p2p = { version = "0.1.3", path = "../iroh-p2p", default-features = false } -iroh-resolver = { version = "0.1.3", path = "../iroh-resolver" } -iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } -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-store = { version = "0.1.3", path = "../iroh-store", default-features = false } -iroh-util = { version = "0.1.3", path = "../iroh-util" } -reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false } -serde = { version = "1.0", features = ["derive"] } -tempfile = { version = "3.3.0", optional = true } -tokio = { version = "1", features = ["macros", "rt-multi-thread", "process"] } -tracing = "0.1.33" +anyhow.workspace = true +async-trait.workspace = true +axum.workspace = true +bytes.workspace = true +cid.workspace = true +clap = { workspace = true, features = ["derive"] } +config.workspace = true +futures.workspace = true +headers.workspace = true +http-serde.workspace = true +hyper.workspace = true +iroh-gateway.workspace = true +iroh-metrics.workspace = true +iroh-p2p.workspace = true +iroh-resolver.workspace = true +iroh-unixfs.workspace = true +iroh-rpc-client.workspace = true +iroh-rpc-types.workspace = true +iroh-store.workspace = true +iroh-util.workspace = true +reqwest = { workspace = true, features = ["rustls-tls"] } +serde = { workspace = true, features = ["derive"] } +tempfile = { workspace = true, optional = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "process"] } +tracing.workspace = true [dev-dependencies] -http = "0.2" +http.workspace = true [features] http-uds-gateway = ["tempfile"] diff --git a/iroh-p2p/Cargo.toml b/iroh-p2p/Cargo.toml index 4fb6787045..29e5e4ff0a 100644 --- a/iroh-p2p/Cargo.toml +++ b/iroh-p2p/Cargo.toml @@ -1,49 +1,48 @@ [package] name = "iroh-p2p" -version = "0.1.3" -edition = "2021" +version.workspace = true +edition.workspace = true authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" +license.workspace = true +repository.workspace = true description = "Implementation of the p2p part of iroh" -rust-version = "1.65" +rust-version.workspace = true [dependencies] -ahash = "0.8.0" -anyhow = { version = "1", features = ["backtrace"] } -async-stream = "0.3.3" -async-trait = "0.1.56" -asynchronous-codec = "0.6.0" -bytes = "1.1.0" -cid = "0.9" -clap = { version = "4.0.9", features = ["derive"] } -config = "0.13.1" -futures = "0.3.21" -futures-util = "0.3.21" -git-version = "0.3.5" -iroh-bitswap = { version = "0.1.3", path = "../iroh-bitswap" } -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features = ["bitswap", "p2p"] } -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-util = { version = "0.1.3", path = "../iroh-util" } -lazy_static = "1.4" -lru = "0.8" -names = { version = "0.14.0", default-features = false } -rand = "0.8.5" -serde = { version = "1.0", features = ["derive"] } -smallvec = "1.1.0" -ssh-key = { version = "0.5.1", features = ["ed25519", "std", "rand_core"], default-features = false } -tempfile = "3.3.0" -tokio = { version = "1", features = ["fs", "time", "sync", "macros"] } -tokio-stream = "0.1" -toml = "0.5.9" -tracing = "0.1.34" -tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } -zeroize = "1.4" +ahash.workspace = true +anyhow.workspace = true +async-stream.workspace = true +async-trait.workspace = true +asynchronous-codec.workspace = true +bytes.workspace = true +cid.workspace = true +clap = { workspace = true, features = ["derive"] } +config.workspace = true +futures.workspace = true +futures-util.workspace = true +git-version.workspace = true +iroh-bitswap.workspace = true +iroh-metrics = { workspace = true, features = ["bitswap", "p2p"] } +iroh-rpc-client.workspace = true +iroh-rpc-types.workspace = true +iroh-util.workspace = true +lazy_static.workspace = true +lru.workspace = true +names.workspace = true +rand.workspace = true +serde = { workspace = true, features = ["derive"] } +smallvec.workspace = true +ssh-key = { workspace = true, features = ["ed25519", "std", "rand_core"] } +tempfile.workspace = true +tokio = { workspace = true, features = ["fs", "time", "sync", "macros"] } +tokio-stream.workspace = true +toml.workspace = true +tracing.workspace = true +tracing-subscriber = { workspace = true, features = ["env-filter"] } +zeroize.workspace = true [dependencies.libp2p] -version = "0.50" -default-features = false +workspace = true features = [ "gossipsub", "kad", @@ -69,8 +68,8 @@ features = [ ] [dev-dependencies] -criterion = "0.4" -rand_chacha = "0.3.1" +criterion.workspace = true +rand_chacha.workspace = true [[bench]] name = "lru_cache" diff --git a/iroh-resolver/Cargo.toml b/iroh-resolver/Cargo.toml index 4c1f5b5e48..5c57e761c3 100644 --- a/iroh-resolver/Cargo.toml +++ b/iroh-resolver/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "iroh-resolver" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Implementation of path resolution for iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true exclude = [ "tests/**", @@ -14,33 +14,33 @@ exclude = [ ] [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -async-channel = "1.7.1" -async-stream = "0.3.3" -async-trait = "0.1.53" -bs58 = "0.4.0" -bytes = "1.1.0" -cid = "0.9" -futures = "0.3.21" -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features = ["resolver", "gateway"] } -iroh-rpc-client = { version = "0.1.3", path = "../iroh-rpc-client", default-features = false } -iroh-util = { version = "0.1.3", path = "../iroh-util", default-features = false } -iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } -libipld = "0.15.0" -libp2p = "0.50" -serde = { version = "1", features = ["derive"] } -tokio = { version = "1", features = ["fs"] } -tracing = "0.1.34" -trust-dns-resolver = { version = "0.22.0", features = ["dns-over-https-rustls", "serde-config", "tokio-runtime"] } -fnv = "1.0.7" +anyhow.workspace = true +async-channel.workspace = true +async-stream.workspace = true +async-trait.workspace = true +bs58.workspace = true +bytes.workspace = true +cid.workspace = true +futures.workspace = true +iroh-metrics = { workspace = true, features = ["resolver", "gateway"] } +iroh-rpc-client.workspace = true +iroh-util.workspace = true +iroh-unixfs.workspace = true +libipld.workspace = true +libp2p.workspace = true +serde = { workspace = true, features = ["derive"] } +tokio = { workspace = true, features = ["fs"] } +tracing.workspace = true +trust-dns-resolver = { workspace = true, features = ["dns-over-https-rustls", "serde-config", "tokio-runtime"] } +fnv.workspace = true [dev-dependencies] -iroh-car = { version = "0.1.3", path = "../iroh-car" } -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 } -proptest = "1.0.0" -rand = "0.8.5" -async-recursion = "1.0.0" -rand_chacha = "0.3.1" -tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread", "fs"] } -ruzstd = "0.3" +iroh-car.workspace = true +iroh-rpc-types.workspace = true +iroh-store.workspace = true +proptest.workspace = true +rand.workspace = true +async-recursion.workspace = true +rand_chacha.workspace = true +tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread", "fs"] } +ruzstd.workspace = true diff --git a/iroh-rpc-client/Cargo.toml b/iroh-rpc-client/Cargo.toml index 48cdefb295..bdd896e0d1 100644 --- a/iroh-rpc-client/Cargo.toml +++ b/iroh-rpc-client/Cargo.toml @@ -1,31 +1,30 @@ [package] name = "iroh-rpc-client" -version = "0.1.3" -edition = "2021" authors = ["Friedel Ziegelmayer ", "ramfox"] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "RPC type client for iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] - -anyhow = { version = "1", features = ["backtrace"] } -async-stream = "0.3.3" -bytes = "1.1.0" -cid = "0.9.0" -config = "0.13.1" -futures = "0.3.21" -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false } -iroh-util = { version = "0.1.3", path = "../iroh-util" } -libp2p = { version = "0.50", default-features = false, features = ["gossipsub"] } -quic-rpc = { version = "0.2.2", features = ["http2"], default-features = false } -serde = { version = "1.0", features = ["derive"] } -tokio = { version = "1", features = ["sync"] } -toml = "0.5.9" -tracing = "0.1.34" -iroh-rpc-types = { version = "0.1.3", path = "../iroh-rpc-types" } -hyper = "0.14.23" +anyhow.workspace = true +async-stream.workspace = true +bytes.workspace = true +cid.workspace = true +config.workspace = true +futures.workspace = true +hyper.workspace = true +iroh-metrics.workspace = true +iroh-rpc-types.workspace = true +iroh-util.workspace = true +libp2p = { workspace = true, features = ["gossipsub"] } +quic-rpc = { workspace = true, features = ["http2"] } +serde = { workspace = true, features = ["derive"] } +tokio = { workspace = true, features = ["sync"] } +toml.workspace = true +tracing.workspace = true [dev-dependencies] -tokio-stream = { version = "0.1.9", features = ["net"] } +tokio-stream = { workspace = true, features = ["net"] } diff --git a/iroh-rpc-types/Cargo.toml b/iroh-rpc-types/Cargo.toml index 24f25c5199..b29dffe8fd 100644 --- a/iroh-rpc-types/Cargo.toml +++ b/iroh-rpc-types/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "iroh-rpc-types" -version = "0.1.3" -edition = "2021" authors = ["Friedel Ziegelmayer ", "ramfox"] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "RPC type definitions for iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -bytes = { version = "1.3.0", features = ["serde"] } -cid = { version = "0.9", features = ["serde-codec"] } -derive_more = "0.99.17" -futures = "0.3.24" -libp2p = { version = "0.50", default-features = false, features = ["serde"] } -quic-rpc = { version = "0.2.2", default-features = false } -serde = { version = "1" } -serde-error = "0.1.2" -serde_with = "2.1.0" -tokio = { version = "1", default-features = false } +anyhow.workspace = true +bytes = { workspace = true, features = ["serde"] } +cid = { workspace = true, features = ["serde-codec"] } +derive_more.workspace = true +futures.workspace = true +libp2p = { workspace = true, features = ["serde"] } +quic-rpc.workspace = true +serde.workspace = true +serde-error.workspace = true +serde_with.workspace = true +tokio = { workspace = true, default-features = false } diff --git a/iroh-share/Cargo.toml b/iroh-share/Cargo.toml index 9c2bc4a798..cc5b41c8f2 100644 --- a/iroh-share/Cargo.toml +++ b/iroh-share/Cargo.toml @@ -1,38 +1,38 @@ [package] name = "iroh-share" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Sharing files with iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -async-trait = "0.1.56" -bincode = "1.3.3" -bytes = "1.1.0" -cid = { version = "0.9", features = ["serde-codec"] } -clap = { version = "4.0.9", features = ["derive"] } -futures = "0.3.21" -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false } -iroh-p2p = { version = "0.1.3", path = "../iroh-p2p", default-features = false } -iroh-resolver = { version = "0.1.3", path = "../iroh-resolver", default-features = false } -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-store = { version = "0.1.3", path = "../iroh-store", default-features = false } -iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } -iroh-util = { version = "0.1.3", path = "../iroh-util" } -libp2p = { version = "0.50", default-features = false, features = ["gossipsub"] } -multibase = "0.9.1" -rand = "0.8.5" -serde = { version = "1", features = ["derive"] } -tempfile = "3.3.0" -tokio = { version = "1" } -tokio-stream = "0.1.9" -tracing = "0.1.34" -tracing-subscriber = "0.3.14" +anyhow.workspace = true +async-trait.workspace = true +bincode.workspace = true +bytes.workspace = true +cid = { workspace = true, features = ["serde-codec"] } +clap = { workspace = true, features = ["derive"] } +futures.workspace = true +iroh-metrics.workspace = true +iroh-p2p.workspace = true +iroh-resolver.workspace = true +iroh-rpc-client.workspace = true +iroh-rpc-types.workspace = true +iroh-store.workspace = true +iroh-unixfs.workspace = true +iroh-util.workspace = true +libp2p = { workspace = true, features = ["gossipsub"] } +multibase.workspace = true +rand.workspace = true +serde = { workspace = true, features = ["derive"] } +tempfile.workspace = true +tokio.workspace = true +tokio-stream.workspace = true +tracing.workspace = true +tracing-subscriber.workspace = true [dev-dependencies] -tokio = { version = "1", features = ["full"] } +tokio = { workspace = true, features = ["full"] } diff --git a/iroh-store/Cargo.toml b/iroh-store/Cargo.toml index 92cf348454..ab2b33f76d 100644 --- a/iroh-store/Cargo.toml +++ b/iroh-store/Cargo.toml @@ -1,47 +1,47 @@ [package] name = "iroh-store" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Implementation of the storage part of iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -ahash = "0.8.0" -async-trait = "0.1.56" -bytecheck = "0.6.7" -bytes = "1.1.0" -cid = "0.9" -clap = { version = "4.0.9", features = ["derive"] } -config = "0.13.1" -ctrlc = "3.2.2" -futures = "0.3.21" -git-version = "0.3.5" -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features=["store"] } -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-util = { version = "0.1.3", path = "../iroh-util" } -multihash = "0.17" -names = { version = "0.14.0", default-features = false } -opentelemetry = { version = "0.18", features = ["rt-tokio"] } -rkyv = { version = "0.7.37", features = ["validation"] } -rocksdb = "0.19.0" -serde = { version = "1.0", features = ["derive"] } -smallvec = { version = "1.10.0", features = ["write"] } -tokio = { version = "1", features = ["rt"] } -tracing = "0.1.34" -tracing-opentelemetry = "0.18" -tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } +anyhow.workspace = true +ahash.workspace = true +async-trait.workspace = true +bytecheck.workspace = true +bytes.workspace = true +cid.workspace = true +clap = { workspace = true, features = ["derive"] } +config.workspace = true +ctrlc.workspace = true +futures.workspace = true +git-version.workspace = true +iroh-metrics = { workspace = true, features = ["store"] } +iroh-rpc-client.workspace = true +iroh-rpc-types.workspace = true +iroh-util.workspace = true +multihash.workspace = true +names.workspace = true +opentelemetry = { workspace = true, features = ["rt-tokio"] } +rkyv = { workspace = true, features = ["validation"] } +rocksdb.workspace = true +serde = { workspace = true, features = ["derive"] } +smallvec = { workspace = true, features = ["write"] } +tokio = { workspace = true, features = ["rt"] } +tracing.workspace = true +tracing-opentelemetry.workspace = true +tracing-subscriber = { workspace = true, features = ["env-filter"] } [dev-dependencies] -criterion = { version = "0.4.0", features = ["async_tokio"] } -libipld = "0.15.0" -rayon = "1.5.3" -tempfile = "3.3.0" -tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] } +criterion = { workspace = true, features = ["async_tokio"] } +libipld.workspace = true +rayon.workspace = true +tempfile.workspace = true +tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread"] } [[bench]] name = "store" diff --git a/iroh-unixfs/Cargo.toml b/iroh-unixfs/Cargo.toml index 69e69858f3..34c3b26e3a 100644 --- a/iroh-unixfs/Cargo.toml +++ b/iroh-unixfs/Cargo.toml @@ -1,51 +1,50 @@ [package] name = "iroh-unixfs" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Implementation of unixfs for iroh" -rust-version = "1.63" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = "1" -async-channel = "1.7.1" -async-recursion = "1.0.0" -async-stream = "0.3.3" -async-trait = "0.1.53" -base64 = "0.13.1" -bytes = "1.1.0" -cid = "0.9" -config = "0.13.1" -fastmurmur3 = "0.1.2" -futures = "0.3.21" -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false, features = ["resolver", "gateway"] } -iroh-rpc-client = { version = "0.1.3", path = "../iroh-rpc-client", default-features = false } -iroh-util = { version = "0.1.3", path = "../iroh-util", default-features = false } -libipld = "0.15.0" -libp2p = { version = "0.50", default-features = false, features = ["serde"] } -multihash = "0.16.3" -num_enum = "0.5.7" -once_cell = "1.13.0" -prost = "0.11" -rand = "0.8.5" -reqwest = { version = "0.11", features = ["rustls-tls", "json"], default-features = false } -serde = { version = "1", features = ["derive"] } -serde_json = "1.0.87" -tokio = { version = "1", features = ["fs"] } -tokio-util = { version = "0.7", features = ["io"] } -tracing = "0.1.34" -unsigned-varint = "0.7.1" +anyhow.workspace = true +async-channel.workspace = true +async-recursion.workspace = true +async-stream.workspace = true +async-trait.workspace = true +base64.workspace = true +bytes.workspace = true +cid.workspace = true +config.workspace = true +fastmurmur3.workspace = true +futures.workspace = true +iroh-metrics = { workspace = true, features = ["resolver", "gateway"] } +iroh-rpc-client.workspace = true +iroh-util.workspace = true +libipld.workspace = true +libp2p = { workspace = true, features = ["serde"] } +multihash.workspace = true +num_enum.workspace = true +once_cell.workspace = true +prost.workspace = true +rand.workspace = true +reqwest = { workspace = true, features = ["rustls-tls", "json"] } +serde = { workspace = true, features = ["derive"] } +serde_json.workspace = true +tokio = { workspace = true, features = ["fs"] } +tokio-util = { workspace = true, features = ["io"] } +tracing.workspace = true +unsigned-varint.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 } -proptest = "1.0.0" -rand = "0.8.5" -tempfile = "3.3.0" -tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread", "fs"] } +criterion = { workspace = true, features = ["async_tokio"] } +iroh-rpc-types.workspace = true +iroh-store.workspace = true +proptest.workspace = true +tempfile.workspace = true +tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread", "fs"] } [build-dependencies] -prost-build = "0.11.1" +prost-build.workspace = true diff --git a/iroh-util/Cargo.toml b/iroh-util/Cargo.toml index 39d272446f..7fefedf3a7 100644 --- a/iroh-util/Cargo.toml +++ b/iroh-util/Cargo.toml @@ -1,31 +1,31 @@ [package] name = "iroh-util" -version = "0.1.3" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Utilities for iroh" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -cid = "0.9" -config = "0.13.1" -ctrlc = "3.2.2" -dirs-next = "2.0.0" -futures = "0.3.21" -humansize = "2.0.0" -rlimit = "0.8.3" -serde = { version = "1.0", features = ["derive"] } -sysinfo = "0.26.5" -thiserror = "1.0" -toml = "0.5.9" -tracing = "0.1.34" +anyhow.workspace = true +cid.workspace = true +config.workspace = true +ctrlc.workspace = true +dirs-next.workspace = true +futures.workspace = true +humansize.workspace = true +rlimit.workspace = true +serde = { workspace = true, features = ["derive"] } +sysinfo.workspace = true +thiserror.workspace = true +toml.workspace = true +tracing.workspace = true [dev-dependencies] -temp-env = "0.3.1" -testdir = "0.7.0" +temp-env.workspace = true +testdir.workspace = true [target.'cfg(unix)'.dev-dependencies] -nix = "0.26" +nix.workspace = true diff --git a/iroh/Cargo.toml b/iroh/Cargo.toml index edab91f2b3..b1f3e4882d 100644 --- a/iroh/Cargo.toml +++ b/iroh/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "iroh" -version = "0.1.3" -edition = "2021" authors = ["Kasey Huizinga ", "Martijn Faassen "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Command line interface for interacting with iroh." -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true exclude = [ "tests/**", @@ -17,26 +17,26 @@ exclude = [ testing = ["dep:relative-path"] [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -async-stream = "0.3.3" -clap = { version = "4.0.15", features = ["derive"] } -config = "0.13.1" -console = { version = "0.15", default-features = false } -crossterm = "0.25" -futures = "0.3.21" -git-version = "0.3.5" -indicatif = "0.17.1" -iroh-api = { version = "0.1.3", path = "../iroh-api"} -iroh-localops = { version = "0.1.3", path = "../iroh-localops" } -iroh-metrics = { version = "0.1.3", path = "../iroh-metrics", default-features = false } -iroh-util = { version = "0.1.3", path = "../iroh-util"} -iroh-unixfs = { version = "0.1.3", path = "../iroh-unixfs" } -relative-path = { version = "1.7.2", optional = true } -serde = { version = "1.0", features = ["derive"] } -sysinfo = "0.26.4" -tokio = { version = "1", features = ["fs", "io-util"] } -tracing = "0.1.34" -which = "4.3.0" +anyhow.workspace = true +async-stream.workspace = true +clap = { workspace = true, features = ["derive"] } +config.workspace = true +console.workspace = true +crossterm.workspace = true +futures.workspace = true +git-version.workspace = true +indicatif.workspace = true +iroh-api.workspace = true +iroh-localops.workspace = true +iroh-metrics.workspace = true +iroh-util.workspace = true +iroh-unixfs.workspace = true +relative-path = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"] } +sysinfo.workspace = true +tokio = { workspace = true, features = ["fs", "io-util"] } +tracing.workspace = true +which.workspace = true [dev-dependencies] # We want to compile `iroh` in test mode, but we can't specify that yet: @@ -47,6 +47,6 @@ which = "4.3.0" # mode. trycmd needs to have an actual binary to invoke. # Unfortunately this also turns on the feature during development, which may be # confusing. See the comments in `run.rs` surrounding this. -iroh = { path = ".", features = ["testing"] } -iroh-api = { version = "0.1.3", path = "../iroh-api", features = ["testing"] } -trycmd = "0.14.1" +iroh = { workspace = true, features = ["testing"] } +iroh-api = { workspace = true, features = ["testing"] } +trycmd.workspace = true diff --git a/stores/flatfs/Cargo.toml b/stores/flatfs/Cargo.toml index f0ca0d9390..6972a99f66 100644 --- a/stores/flatfs/Cargo.toml +++ b/stores/flatfs/Cargo.toml @@ -1,18 +1,18 @@ [package] name = "flatfs-store" -version = "0.1.2" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Implementation of FlatFS" -rust-version = "1.65" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true publish = false [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -backoff = "0.4.0" -ignore = "0.4.18" +anyhow.workspace = true +backoff.workspace = true +ignore.workspace = true [dev-dependencies] -tempfile = "3.3.0" +tempfile.workspace = true diff --git a/stores/rocks/Cargo.toml b/stores/rocks/Cargo.toml index ad2e4472a4..b4b6cfc575 100644 --- a/stores/rocks/Cargo.toml +++ b/stores/rocks/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "rocks-store" version = "0.1.2" -edition = "2021" authors = ["dignifiedquire "] -license = "Apache-2.0/MIT" -repository = "https://github.com/n0-computer/iroh" description = "Implementation of RocksDB based Store" -rust-version = "1.65" publish = false +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } +anyhow.workspace = true flatfs-store = { path = "../flatfs", optional = true } -rocksdb = "0.19.0" +rocksdb.workspace = true [dev-dependencies] flatfs-store = { path = "../flatfs" } -tempfile = "3.3.0" +tempfile.workspace = true [features] importer = ["flatfs-store"] diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 3fa8cc8a99..9cf341c166 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "xtask" -version = "0.1.3" -edition = "2021" +version.workspace = true +edition.workspace = true publish = false -rust-version = "1.65" +rust-version.workspace = true [dependencies] -anyhow = { version = "1", features = ["backtrace"] } -clap = { version = "4.0.9", features = ["derive"] } -clap_mangen = "0.2.2" -dirs-next = "2.0.0" -xtaskops = "0.3.0" -iroh = { version = "0.1.3", path = "../iroh" } +anyhow.workspace = true +clap = { workspace = true, features = ["derive"] } +clap_mangen.workspace = true +dirs-next.workspace = true +xtaskops.workspace = true +iroh.workspace = true