diff --git a/.cargo-deny.toml b/.cargo-deny.toml index 94407c1c5..43b553555 100644 --- a/.cargo-deny.toml +++ b/.cargo-deny.toml @@ -28,7 +28,6 @@ allow = [ "BSL-1.0", "BlueOak-1.0.0", "CC0-1.0", - "CDLA-Permissive-2.0", "ISC", "MIT", "MPL-2.0", @@ -41,7 +40,7 @@ unused-allowed-license = "deny" [[licenses.clarify]] expression = "MIT AND ISC" -license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] +license-files = [{ hash = 0xbd0eed23, path = "LICENSE" }] name = "ring" [sources] diff --git a/.github/rust_update_issue_template.md b/.github/rust_update_issue_template.md index 0c339f24f..a4f6359ef 100644 --- a/.github/rust_update_issue_template.md +++ b/.github/rust_update_issue_template.md @@ -2,4 +2,4 @@ title: "[CI GENERATED] Update Rust to version {{ env.RUST_VERSION }}" labels: "ci-actions" --- -Update Rust to version {{ env.RUST_VERSION }}. \ No newline at end of file +Update Rust to version {{ env.RUST_VERSION }}. Also, please check the output of the feature manager job to see if we can avoid importing unnecessary features. \ No newline at end of file diff --git a/.github/workflows/rust-latest-version-check.yml b/.github/workflows/rust-latest-version-check.yml index 67b3d21c8..07ec3f6fc 100644 --- a/.github/workflows/rust-latest-version-check.yml +++ b/.github/workflows/rust-latest-version-check.yml @@ -1,8 +1,9 @@ -name: Check for a new Rust version +name: Check for a new Rust version and run `cargo-features-manager` on: schedule: - cron: "0 3 * * *" + workflow_dispatch: jobs: check-latest-version: @@ -52,4 +53,15 @@ jobs: assignees: danielSanchezQ, ntn-x2 filename: ./.github/rust_update_issue_template.md update_existing: false - search_existing: all \ No newline at end of file + search_existing: all + check-features: + name: Check features + needs: notify-new-version + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # Version 4.2.2 + - name: Install cargo-features-manager + run: cargo install cargo-features-manager@0.10.0 + - name: Run cargo-features-manager + run: cargo features prune --dry-run \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 07a4e18fb..56ee12d1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,76 +57,76 @@ resolver = "2" [workspace.dependencies] # Internal -bundler = { path = "./nomos-bundler" } -cfgsync = { path = "./testnet/cfgsync" } -chain-service = { path = "./nomos-services/chain-service" } -circuits-prover = { path = "./zk/circuits/prover" } -circuits-utils = { path = "./zk/circuits/utils" } -circuits-verifier = { path = "./zk/circuits/verifier" } -common-http-client = { path = "./nodes/nomos-node/http-client" } -cryptarchia-engine = { path = "./consensus/cryptarchia-engine" } -cryptarchia-sync = { path = "./consensus/cryptarchia-sync" } -executor-http-client = { path = "./nodes/nomos-executor/http-client" } -groth16 = { path = "./zk/groth16" } -key-management-system = { path = "./nomos-services/key-management-system" } -kzgrs = { path = "./nomos-da/kzgrs" } -kzgrs-backend = { path = "./nomos-da/kzgrs-backend" } -mmr = { path = "./mmr" } -nomos-api = { path = "./nomos-services/api" } -nomos-blend-message = { path = "./nomos-blend/message" } -nomos-blend-network = { path = "./nomos-blend/network" } -nomos-blend-scheduling = { path = "./nomos-blend/scheduling" } -nomos-blend-service = { path = "./nomos-services/blend" } -nomos-cli = { path = "./nomos-cli" } -nomos-core = { path = "./nomos-core/chain-defs" } -nomos-da-dispersal = { path = "./nomos-services/data-availability/dispersal" } -nomos-da-messages = { path = "./nomos-da/network/messages" } -nomos-da-network-core = { path = "./nomos-da/network/core" } -nomos-da-network-service = { path = "./nomos-services/data-availability/network" } -nomos-da-sampling = { path = "./nomos-services/data-availability/sampling" } -nomos-da-verifier = { path = "./nomos-services/data-availability/verifier" } -nomos-executor = { path = "./nodes/nomos-executor/executor", default-features = false } -nomos-http-api-common = { path = "./nodes/api-common" } -nomos-ledger = { path = "./ledger/nomos-ledger" } -nomos-libp2p = { path = "./nomos-libp2p" } -nomos-mantle-core = { path = "./nomos-mantle" } -nomos-membership = { path = "./nomos-services/membership" } -nomos-mempool = { path = "./nomos-services/mempool" } -nomos-network = { path = "./nomos-services/network" } -nomos-node = { path = "./nodes/nomos-node/node", default-features = false } -nomos-sdp = { path = "./nomos-services/sdp" } -nomos-storage = { path = "./nomos-services/storage" } -nomos-system-sig = { path = "./nomos-services/system-sig" } -nomos-time = { path = "./nomos-services/time" } -nomos-tracing = { path = "./nomos-tracing" } -nomos-tracing-service = { path = "./nomos-services/tracing" } -nomos-utils = { path = "./nomos-utils" } -nomos_proof_statements = { path = "./nomos-core/proof_statements" } -pol-witness-generator = { path = "./zk/circuits/witness_generators/pol" } -poseidon2 = { path = "./zk/poseidon2" } -services-utils = { path = "./nomos-services/utils" } -subnetworks-assignations = { path = "./nomos-da/network/subnetworks-assignations" } -tests = { path = "./tests" } -utxotree = { path = "./utxotree" } -witness-generator-core = { path = "./zk/circuits/witness_generators/core" } +bundler = { default-features = false, path = "./nomos-bundler" } +cfgsync = { default-features = false, path = "./testnet/cfgsync" } +chain-service = { default-features = false, path = "./nomos-services/chain-service" } +circuits-prover = { default-features = false, path = "./zk/circuits/prover" } +circuits-utils = { default-features = false, path = "./zk/circuits/utils" } +circuits-verifier = { default-features = false, path = "./zk/circuits/verifier" } +common-http-client = { default-features = false, path = "./nodes/nomos-node/http-client" } +cryptarchia-engine = { default-features = false, path = "./consensus/cryptarchia-engine" } +cryptarchia-sync = { default-features = false, path = "./consensus/cryptarchia-sync" } +executor-http-client = { default-features = false, path = "./nodes/nomos-executor/http-client" } +groth16 = { default-features = false, path = "./zk/groth16" } +key-management-system = { default-features = false, path = "./nomos-services/key-management-system" } +kzgrs = { default-features = false, path = "./nomos-da/kzgrs" } +kzgrs-backend = { default-features = false, path = "./nomos-da/kzgrs-backend" } +mmr = { default-features = false, path = "./mmr" } +nomos-api = { default-features = false, path = "./nomos-services/api" } +nomos-blend-message = { default-features = false, path = "./nomos-blend/message" } +nomos-blend-network = { default-features = false, path = "./nomos-blend/network" } +nomos-blend-scheduling = { default-features = false, path = "./nomos-blend/scheduling" } +nomos-blend-service = { default-features = false, path = "./nomos-services/blend" } +nomos-cli = { default-features = false, path = "./nomos-cli" } +nomos-core = { default-features = false, path = "./nomos-core/chain-defs" } +nomos-da-dispersal = { default-features = false, path = "./nomos-services/data-availability/dispersal" } +nomos-da-messages = { default-features = false, path = "./nomos-da/network/messages" } +nomos-da-network-core = { default-features = false, path = "./nomos-da/network/core" } +nomos-da-network-service = { default-features = false, path = "./nomos-services/data-availability/network" } +nomos-da-sampling = { default-features = false, path = "./nomos-services/data-availability/sampling" } +nomos-da-verifier = { default-features = false, path = "./nomos-services/data-availability/verifier" } +nomos-executor = { default-features = false, path = "./nodes/nomos-executor/executor" } +nomos-http-api-common = { default-features = false, path = "./nodes/api-common" } +nomos-ledger = { default-features = false, path = "./ledger/nomos-ledger" } +nomos-libp2p = { default-features = false, path = "./nomos-libp2p" } +nomos-mantle-core = { default-features = false, path = "./nomos-mantle" } +nomos-membership = { default-features = false, path = "./nomos-services/membership" } +nomos-mempool = { default-features = false, path = "./nomos-services/mempool" } +nomos-network = { default-features = false, path = "./nomos-services/network" } +nomos-node = { default-features = false, path = "./nodes/nomos-node/node" } +nomos-sdp = { default-features = false, path = "./nomos-services/sdp" } +nomos-storage = { default-features = false, path = "./nomos-services/storage" } +nomos-system-sig = { default-features = false, path = "./nomos-services/system-sig" } +nomos-time = { default-features = false, path = "./nomos-services/time" } +nomos-tracing = { default-features = false, path = "./nomos-tracing" } +nomos-tracing-service = { default-features = false, path = "./nomos-services/tracing" } +nomos-utils = { default-features = false, path = "./nomos-utils" } +nomos_proof_statements = { default-features = false, path = "./nomos-core/proof_statements" } +pol-witness-generator = { default-features = false, path = "./zk/circuits/witness_generators/pol" } +poseidon2 = { default-features = false, path = "./zk/poseidon2" } +services-utils = { default-features = false, path = "./nomos-services/utils" } +subnetworks-assignations = { default-features = false, path = "./nomos-da/network/subnetworks-assignations" } +tests = { default-features = false, path = "./tests" } +utxotree = { default-features = false, path = "./utxotree" } +witness-generator-core = { default-features = false, path = "./zk/circuits/witness_generators/core" } # External -blake2 = "0.10" -bytes = "1.3" -cached = { version = "0.55.1", default-features = false } -fork_stream = "0.1.0" -libp2p = "0.55" -libp2p-stream = "0.3.0-alpha" -overwatch = { git = "https://github.com/logos-co/Overwatch", rev = "f5a9902" } -overwatch-derive = { git = "https://github.com/logos-co/Overwatch", rev = "f5a9902" } -rand = "0.8" -reqwest = "0.12" -risc0-zkvm = "2.3.2" -serde_with = "3.12.0" -tempfile = "3" -tracing = "0.1" -utoipa = { version = "4.0" } -utoipa-swagger-ui = { version = "4.0" } +blake2 = { default-features = false, version = "0.10" } +bytes = { default-features = false, version = "1.3" } +cached = { default-features = false, version = "0.55.1" } +fork_stream = { default-features = false, version = "0.1.0" } +libp2p = { default-features = false, version = "0.55" } +libp2p-stream = { default-features = false, version = "0.3.0-alpha" } +overwatch = { default-features = false, git = "https://github.com/logos-co/Overwatch", rev = "f5a9902" } +overwatch-derive = { default-features = false, git = "https://github.com/logos-co/Overwatch", rev = "f5a9902" } +rand = { default-features = false, version = "0.8" } +reqwest = { default-features = false, version = "0.12" } +risc0-zkvm = { default-features = false, version = "2.3.2" } +serde_with = { default-features = false, version = "3.12.0" } +tempfile = { default-features = false, version = "3" } +tracing = { default-features = false, version = "0.1" } +utoipa = { default-features = false, version = "4.0" } +utoipa-swagger-ui = { default-features = false, version = "4.0" } [workspace.lints.clippy] diff --git a/consensus/cryptarchia-engine/Cargo.toml b/consensus/cryptarchia-engine/Cargo.toml index 0d1b7a77d..21d517706 100644 --- a/consensus/cryptarchia-engine/Cargo.toml +++ b/consensus/cryptarchia-engine/Cargo.toml @@ -12,13 +12,13 @@ ignored = ["nomos-utils"] workspace = true [dependencies] -cfg_eval = { version = "0.1", optional = true } -nomos-utils = { workspace = true, features = ["time"], optional = true } -serde = { version = "1.0", features = ["derive"], optional = true } -serde_with = { workspace = true, optional = true } +cfg_eval = { optional = true, version = "0.1" } +nomos-utils = { features = ["time"], optional = true, workspace = true } +serde = { default-features = false, optional = true, version = "1.0" } +serde_with = { features = ["macros"], optional = true, workspace = true } thiserror = "1" -time = { version = "0.3", features = ["serde"] } -tokio = { version = "1", optional = true, features = ["time"] } +time = { default-features = false, version = "0.3" } +tokio = { default-features = false, features = ["time"], optional = true, version = "1" } tracing = { workspace = true } [features] diff --git a/consensus/cryptarchia-sync/Cargo.toml b/consensus/cryptarchia-sync/Cargo.toml index cb9ab4e25..847e29318 100644 --- a/consensus/cryptarchia-sync/Cargo.toml +++ b/consensus/cryptarchia-sync/Cargo.toml @@ -7,19 +7,20 @@ version = "0.1.0" [dependencies] bytes = { workspace = true } cryptarchia-engine = { workspace = true } -futures = "0.3" -libp2p = { workspace = true, features = ["quic", "tokio", "yamux"], optional = true } -libp2p-stream = { workspace = true, optional = true } +futures = { default-features = false, version = "0.3" } +libp2p = { optional = true, workspace = true } +libp2p-stream = { optional = true, workspace = true } nomos-core = { workspace = true } rand = { workspace = true } -serde = { version = "1", features = ["derive"] } +serde = { default-features = false, version = "1" } serde_with = { workspace = true } thiserror = "1" -tokio = { version = "1", features = ["macros", "rt", "sync"] } -tracing = "0.1" +tokio = { default-features = false, version = "1" } +tracing = { default-features = false, version = "0.1" } [dev-dependencies] -libp2p-swarm-test = { version = "0.5", features = ["tokio"] } +libp2p = { features = ["dns", "quic", "tokio"], workspace = true } +libp2p-swarm-test = { default-features = false, version = "0.5" } [features] default = [] diff --git a/ledger/nomos-ledger/Cargo.toml b/ledger/nomos-ledger/Cargo.toml index a404ce667..fa7769af0 100644 --- a/ledger/nomos-ledger/Cargo.toml +++ b/ledger/nomos-ledger/Cargo.toml @@ -10,20 +10,21 @@ workspace = true [dependencies] cryptarchia-engine = { workspace = true } crypto-bigint = "0.5" -ed25519 = "2.2.3" +ed25519 = { default-features = false, version = "2.2.3" } groth16 = { workspace = true } nomos-core = { workspace = true } -nomos-utils = { workspace = true, optional = true, features = ["serde"] } +nomos-utils = { features = ["serde"], optional = true, workspace = true } nomos_proof_statements = { workspace = true } -num-bigint = "0.4" +num-bigint = { version = "0.4", default-features = false } rand = { workspace = true } -rpds = "1.1.1" -serde = { version = "1.0", features = ["derive"], optional = true } +rpds = { default-features = false, version = "1.1.1" } +serde = { default-features = false, features = ["derive"], optional = true, version = "1.0" } thiserror = "1" utxotree = { workspace = true } [dev-dependencies] -ed25519-dalek = "2.0.0" +ed25519-dalek = { default-features = false, version = "2.0.0" } +rand = { features = ["std", "std_rng"], workspace = true } [features] serde = ["cryptarchia-engine/serde", "dep:nomos-utils", "dep:serde", "utxotree/serde"] diff --git a/mmr/Cargo.toml b/mmr/Cargo.toml index e738153fb..95d2935d6 100644 --- a/mmr/Cargo.toml +++ b/mmr/Cargo.toml @@ -5,13 +5,13 @@ name = "mmr" version = "0.1.0" [dependencies] -digest = "0.10.7" -rpds = "1.1.1" -serde = { features = ["derive"], optional = true, version = "1" } +digest = { default-features = false, version = "0.10.7" } +rpds = { default-features = false, version = "1.1.1" } +serde = { default-features = false, features = ["derive"], optional = true, version = "1" } [dev-dependencies] -blake2 = "0.10.5" -proptest = "1.0" +blake2 = { default-features = false, version = "0.10.5" } +proptest = { default-features = false, features = ["std"], version = "1.0" } proptest-macro = "0.2" [lints] diff --git a/nodes/api-common/Cargo.toml b/nodes/api-common/Cargo.toml index 1f3b3c395..b97fa5757 100644 --- a/nodes/api-common/Cargo.toml +++ b/nodes/api-common/Cargo.toml @@ -8,4 +8,4 @@ version = "0.1.0" workspace = true [dependencies] -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, features = ["alloc", "derive"], version = "1.0" } diff --git a/nodes/nomos-executor/executor/Cargo.toml b/nodes/nomos-executor/executor/Cargo.toml index 19f6d1e95..b40f3a26f 100644 --- a/nodes/nomos-executor/executor/Cargo.toml +++ b/nodes/nomos-executor/executor/Cargo.toml @@ -20,35 +20,35 @@ workspace = true [dependencies] async-trait = "0.1" -axum = { version = "0.6" } -clap = { version = "4.5.13", features = ["derive"] } -color-eyre = "0.6.0" -futures = "0.3" -hyper = { version = "0.14", features = ["full"] } +axum = { default-features = false, version = "0.6" } +clap = { default-features = false, features = ["derive"], version = "4.5.13" } +color-eyre = { default-features = false, version = "0.6.0" } +futures = { default-features = false, version = "0.3" } +hyper = { default-features = false, version = "0.14" } kzgrs-backend = { workspace = true } nomos-api = { workspace = true } -nomos-blend-service = { workspace = true, features = ["libp2p"] } +nomos-blend-service = { workspace = true } nomos-core = { workspace = true } nomos-da-dispersal = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } -nomos-da-sampling = { workspace = true, features = ["rocksdb-backend"] } -nomos-da-verifier = { workspace = true, features = ["libp2p", "rocksdb-backend"] } +nomos-da-sampling = { workspace = true } +nomos-da-verifier = { workspace = true } nomos-http-api-common = { workspace = true } nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } -nomos-mempool = { workspace = true, features = ["libp2p", "mock"] } -nomos-network = { workspace = true, features = ["libp2p"] } +nomos-mempool = { workspace = true } +nomos-network = { workspace = true } nomos-node = { workspace = true } -nomos-storage = { workspace = true, features = ["rocksdb-backend"] } +nomos-storage = { workspace = true } nomos-time = { workspace = true } overwatch = { workspace = true } -serde = { version = "1", features = ["derive"] } +serde = { default-features = false, version = "1" } serde_yaml = "0.9" services-utils = { workspace = true } subnetworks-assignations = { workspace = true } tokio = "1" -tower-http = { version = "0.4", features = ["cors", "trace"] } +tower-http = { default-features = false, version = "0.4" } tracing = { workspace = true } utoipa = { workspace = true } utoipa-swagger-ui = { workspace = true } diff --git a/nodes/nomos-executor/http-client/Cargo.toml b/nodes/nomos-executor/http-client/Cargo.toml index 251ae5e3b..df1fe17ff 100644 --- a/nodes/nomos-executor/http-client/Cargo.toml +++ b/nodes/nomos-executor/http-client/Cargo.toml @@ -9,8 +9,8 @@ workspace = true [dependencies] common-http-client = { workspace = true } -futures = "0.3.31" +futures = { default-features = false, version = "0.3.31" } nomos-core = { workspace = true } nomos-http-api-common = { workspace = true } reqwest = { workspace = true } -serde = "1.0" +serde = { default-features = false, version = "1.0" } diff --git a/nodes/nomos-node/http-client/Cargo.toml b/nodes/nomos-node/http-client/Cargo.toml index 4f4a45d56..51f41eb04 100644 --- a/nodes/nomos-node/http-client/Cargo.toml +++ b/nodes/nomos-node/http-client/Cargo.toml @@ -8,12 +8,12 @@ version = "0.1.0" workspace = true [dependencies] -futures = "0.3.31" +futures = { default-features = false, version = "0.3.31" } nomos-core = { workspace = true } nomos-da-messages = { workspace = true } nomos-http-api-common = { workspace = true } -reqwest = { workspace = true } -serde = "1.0" -serde_json = "1.0.140" +reqwest = { features = ["json", "stream"], workspace = true } +serde = { default-features = false, version = "1.0" } +serde_json = { default-features = false, version = "1.0.140" } thiserror = "1.0" -url = "2.5.4" +url = { default-features = false, version = "2.5.4" } diff --git a/nodes/nomos-node/node/Cargo.toml b/nodes/nomos-node/node/Cargo.toml index f932401f2..2e1f1a286 100644 --- a/nodes/nomos-node/node/Cargo.toml +++ b/nodes/nomos-node/node/Cargo.toml @@ -19,35 +19,35 @@ workspace = true [dependencies] async-trait = "0.1" bytes = { workspace = true } -chain-service = { workspace = true, features = ["libp2p"] } -clap = { version = "4", features = ["derive", "env"] } -color-eyre = "0.6.0" -futures = "0.3" -hex = "0.4.3" +chain-service = { workspace = true } +clap = { default-features = false, features = ["derive", "env", "std"], version = "4" } +color-eyre = { default-features = false, version = "0.6.0" } +futures = { default-features = false, version = "0.3" } +hex = { default-features = false, version = "0.4.3" } http = "0.2.9" kzgrs-backend = { workspace = true } nomos-api = { workspace = true } -nomos-blend-service = { workspace = true, features = ["libp2p"] } +nomos-blend-service = { workspace = true } nomos-core = { workspace = true } nomos-da-messages = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } -nomos-da-sampling = { workspace = true, features = ["rocksdb-backend"] } -nomos-da-verifier = { workspace = true, features = ["libp2p", "rocksdb-backend"] } +nomos-da-sampling = { features = ["libp2p", "rocksdb-backend"], workspace = true } +nomos-da-verifier = { features = ["libp2p"], workspace = true } nomos-http-api-common = { workspace = true } nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } -nomos-mempool = { workspace = true, features = ["libp2p", "mock"] } -nomos-network = { workspace = true, features = ["libp2p"] } +nomos-mempool = { workspace = true } +nomos-network = { workspace = true } nomos-sdp = { workspace = true } -nomos-storage = { workspace = true, features = ["rocksdb-backend"] } +nomos-storage = { workspace = true } nomos-system-sig = { workspace = true } -nomos-time = { workspace = true, features = ["ntp", "serde"] } +nomos-time = { features = ["ntp", "serde"], workspace = true } nomos-tracing = { workspace = true } nomos-tracing-service = { workspace = true } -num-bigint = "0.4" +num-bigint = { version = "0.4", default-features = false } overwatch = { workspace = true } -serde = "1" +serde = { default-features = false, version = "1" } serde_yaml = "0.9" services-utils = { workspace = true } subnetworks-assignations = { workspace = true } @@ -56,13 +56,13 @@ tracing = { workspace = true } # openapi related dependencies utoipa = { workspace = true } -utoipa-swagger-ui = { workspace = true } +utoipa-swagger-ui = { features = ["axum"], workspace = true } # axum related dependencies -axum = { version = "0.6" } -hyper = { version = "0.14", features = ["full"] } -time = "0.3" -tower-http = { version = "0.4", features = ["cors", "trace"] } +axum = { default-features = false, features = ["json", "query", "tokio"], version = "0.6" } +hyper = { default-features = false, version = "0.14" } +time = { default-features = false, version = "0.3" } +tower-http = { default-features = false, features = ["cors", "trace"], version = "0.4" } [features] default = ["tracing"] diff --git a/nomos-blend/message/Cargo.toml b/nomos-blend/message/Cargo.toml index 5f93cce80..a702bcab7 100644 --- a/nomos-blend/message/Cargo.toml +++ b/nomos-blend/message/Cargo.toml @@ -9,15 +9,15 @@ workspace = true [dependencies] blake2 = { workspace = true } -ed25519-dalek = { version = "2", features = ["rand_core", "serde"] } -itertools = "0.14" +ed25519-dalek = { default-features = false, features = ["rand_core"], version = "2" } +itertools = { default-features = false, version = "0.14" } nomos-core = { workspace = true } -nomos-utils = { workspace = true, features = ["rng"] } -serde = { version = "1", features = ["derive"] } +nomos-utils = { features = ["rng"], workspace = true } +serde = { default-features = false, version = "1" } serde-big-array = "0.5" -serde_with = "3" +serde_with = { default-features = false, features = ["alloc"], version = "3" } thiserror = "1" -x25519-dalek = { version = "2", features = ["serde", "static_secrets"] } +x25519-dalek = { default-features = false, features = ["serde", "static_secrets"], version = "2" } [features] unsafe-test-functions = [] diff --git a/nomos-blend/network/Cargo.toml b/nomos-blend/network/Cargo.toml index 5408e88e7..ccf69e998 100644 --- a/nomos-blend/network/Cargo.toml +++ b/nomos-blend/network/Cargo.toml @@ -8,8 +8,8 @@ version = "0.1.0" workspace = true [dependencies] -either = "1.15.0" -futures = "0.3.30" +either = { default-features = false, version = "1.15.0" } +futures = { default-features = false, version = "0.3.30" } futures-timer = { version = "3.0.3" } libp2p = { workspace = true } nomos-blend-message = { workspace = true } @@ -19,13 +19,13 @@ tracing = { workspace = true } [dev-dependencies] async-trait = { version = "0.1" } -libp2p = { workspace = true, features = ["ed25519", "tokio"] } +libp2p = { default-features = false, workspace = true } libp2p-stream = { workspace = true } -libp2p-swarm-test = { version = "0.5.0", features = ["tokio"] } -nomos-blend-message = { workspace = true, features = ["unsafe-test-functions"] } -test-log = { version = "0.2.18", features = ["trace"] } -tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] } -tokio-stream = "0.1" +libp2p-swarm-test = { default-features = false, features = ["tokio"], version = "0.5.0" } +nomos-blend-message = { features = ["unsafe-test-functions"], workspace = true } +test-log = { default-features = false, version = "0.2.18" } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } [features] unsafe-test-functions = [] diff --git a/nomos-blend/scheduling/Cargo.toml b/nomos-blend/scheduling/Cargo.toml index b84e07815..04077dd30 100644 --- a/nomos-blend/scheduling/Cargo.toml +++ b/nomos-blend/scheduling/Cargo.toml @@ -10,17 +10,18 @@ workspace = true [dependencies] derivative = "2" fork_stream = { workspace = true } -futures = "0.3" -hex = "0.4" -multiaddr = "0.18" +futures = { default-features = false, version = "0.3" } +hex = { default-features = false, version = "0.4" } +multiaddr = { default-features = false, version = "0.18" } nomos-blend-message = { workspace = true } nomos-core = { workspace = true } -rand = { workspace = true } -serde = { version = "1.0", features = ["derive"] } -tokio = { version = "1", features = ["macros", "sync", "time"] } -tokio-stream = { version = "0.1", features = ["sync"] } +rand = { features = ["alloc"], workspace = true } +serde = { default-features = false, version = "1.0" } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } [dev-dependencies] -nomos-utils = { workspace = true, features = ["rng"] } -tokio = { version = "1", features = ["rt-multi-thread", "time"] } +nomos-utils = { workspace = true } +rand = { features = ["getrandom"], workspace = true } +tokio = { default-features = false, version = "1" } diff --git a/nomos-bundler/Cargo.toml b/nomos-bundler/Cargo.toml index 5b860498f..16696e71d 100644 --- a/nomos-bundler/Cargo.toml +++ b/nomos-bundler/Cargo.toml @@ -8,11 +8,11 @@ version = "0.1.0" workspace = true [dependencies] -clap = { version = "4.5.27", features = ["derive"] } -env_logger = "0.11.6" +clap = { default-features = false, version = "4.5.27", features = ["derive", "std"] } +env_logger = { default-features = false, version = "0.11.6" } log = "0.4.22" -serde_json = "1.0.135" -tauri-bundler = "2.4.0" +serde_json = { default-features = false, version = "1.0.135" } +tauri-bundler = { default-features = false, version = "2.4.0" } tauri-utils = "2.1.1" [[bin]] diff --git a/nomos-cli/Cargo.toml b/nomos-cli/Cargo.toml index 172aeeb0d..0fee22e78 100644 --- a/nomos-cli/Cargo.toml +++ b/nomos-cli/Cargo.toml @@ -10,14 +10,14 @@ version = "0.1.0" workspace = true [dependencies] -clap = { version = "4", features = ["derive"] } +clap = { default-features = false, features = ["derive", "std"], version = "4" } executor-http-client = { workspace = true } -hex = "0.4.3" +hex = { default-features = false, version = "0.4.3" } kzgrs-backend = { workspace = true } nomos-core = { workspace = true } nomos-tracing = { workspace = true } -reqwest = { workspace = true, features = ["json"] } -serde_json = "1" -tokio = { version = "1", features = ["sync"] } +reqwest = { workspace = true } +serde_json = { default-features = false, version = "1" } +tokio = { default-features = false, version = "1" } tracing = { workspace = true } -tracing-subscriber = "0.3" +tracing-subscriber = { default-features = false, version = "0.3" } diff --git a/nomos-core/chain-defs/Cargo.toml b/nomos-core/chain-defs/Cargo.toml index e249c0ac2..f25fd6b6f 100644 --- a/nomos-core/chain-defs/Cargo.toml +++ b/nomos-core/chain-defs/Cargo.toml @@ -9,30 +9,29 @@ version = "0.1.0" workspace = true [dependencies] -anyhow = "1.0" +anyhow = { default-features = false, version = "1.0" } async-trait = { version = "0.1" } bincode = "1.3" -blake2 = { version = "0.10" } +blake2 = { default-features = false, version = "0.10" } bytes = { workspace = true } -const-hex = "1" -cryptarchia-engine = { workspace = true, features = ["serde"] } -ed25519 = { version = "2.2", features = ["serde"] } -ed25519-dalek = { version = "2.2.0", features = ["serde"] } +const-hex = { default-features = false, features = ["alloc"], version = "1" } +cryptarchia-engine = { features = ["serde"], workspace = true } +ed25519 = { default-features = false, version = "2.2" } +ed25519-dalek = { default-features = false, features = ["serde"], version = "2.2.0" } groth16 = { workspace = true, features = ["deser"] } -multiaddr = "0.18" +multiaddr = { default-features = false, version = "0.18" } nomos_proof_statements = { workspace = true } nomos_risc0_proofs = { path = "../risc0_proofs" } -num-bigint = "0.4" +num-bigint = { version = "0.4", default-features = false } poseidon2 = { workspace = true } -risc0-zkvm = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +risc0-zkvm = { features = ["client"], workspace = true } +serde = { default-features = false, version = "1.0" } thiserror = "1.0" tracing = { workspace = true } [dev-dependencies] rand = { workspace = true } -risc0-zkvm = { workspace = true } -serde_json = "1.0" +serde_json = { default-features = false, features = ["alloc"], version = "1.0" } [features] default = [] diff --git a/nomos-core/proof_statements/Cargo.toml b/nomos-core/proof_statements/Cargo.toml index 548398244..98755d43f 100644 --- a/nomos-core/proof_statements/Cargo.toml +++ b/nomos-core/proof_statements/Cargo.toml @@ -5,11 +5,11 @@ name = "nomos_proof_statements" version = "0.1.0" [dependencies] -crypto-bigint = { version = "0.5.5", features = ["serde"] } -groth16 = { path = "../../zk/groth16", features = ["deser"] } -num-bigint = "0.4" -poseidon2 = { path = "../../zk/poseidon2" } -serde = { version = "1.0", features = ["derive"] } +crypto-bigint = { features = ["serde"], version = "0.5.5" } +groth16 = { path = "../../zk/groth16", default-features = false, features = ["deser"] } +num-bigint = { version = "0.4", default-features = false } +poseidon2 = { path = "../../zk/poseidon2", default-features = false } +serde = { features = ["derive"], version = "1.0" } [lints.clippy] diff --git a/nomos-core/risc0_proofs/proof_of_leadership/Cargo.toml b/nomos-core/risc0_proofs/proof_of_leadership/Cargo.toml index 83a29ca89..14e099b97 100644 --- a/nomos-core/risc0_proofs/proof_of_leadership/Cargo.toml +++ b/nomos-core/risc0_proofs/proof_of_leadership/Cargo.toml @@ -8,7 +8,7 @@ version = "0.1.0" [dependencies] nomos_proof_statements = { path = "../../proof_statements" } -risc0-zkvm = { version = "2.3.2", default-features = false, features = ['std'] } +risc0-zkvm = { default-features = false, features = ['std'], version = "2.3.2" } [patch.crates-io] # add RISC Zero accelerator support for all downstream usages of the following crates. diff --git a/nomos-da/kzgrs-backend/Cargo.toml b/nomos-da/kzgrs-backend/Cargo.toml index 30632f83f..610f6110d 100644 --- a/nomos-da/kzgrs-backend/Cargo.toml +++ b/nomos-da/kzgrs-backend/Cargo.toml @@ -11,18 +11,17 @@ workspace = true ark-ff = "0.4" ark-poly = "0.4.2" ark-serialize = "0.4.2" -blake2 = "0.10" -itertools = "0.12" +blake2 = { default-features = false, version = "0.10" } +itertools = { default-features = false, version = "0.12" } kzgrs = { workspace = true } nomos-core = { workspace = true } -rand = { version = "0.8" } -rayon = { version = "1.10.0", optional = true } -serde = { version = "1.0", features = ["derive"] } +rand = { default-features = false, features = ["std"], workspace = true } +rayon = { optional = true, version = "1.10.0" } +serde = { default-features = false, version = "1.0" } [dev-dependencies] -ark-bls12-381 = "0.4.0" -divan = "0.1" -rand = { workspace = true } +ark-bls12-381 = { default-features = false, version = "0.4.0" } +divan = { default-features = false, version = "0.1" } [features] default = [] diff --git a/nomos-da/kzgrs/Cargo.toml b/nomos-da/kzgrs/Cargo.toml index ed7073b84..478a3e49e 100644 --- a/nomos-da/kzgrs/Cargo.toml +++ b/nomos-da/kzgrs/Cargo.toml @@ -8,22 +8,23 @@ version = "0.1.0" workspace = true [dependencies] -ark-bls12-381 = { version = "0.4.0" } +ark-bls12-381 = { default-features = false, features = ["curve", "scalar_field"], version = "0.4.0" } ark-ec = "0.4.2" ark-ff = { version = "0.4.2" } ark-poly = { version = "0.4.2" } -ark-poly-commit = { version = "0.4.0" } +ark-poly-commit = { default-features = false, features = ["std"], version = "0.4.0" } ark-serialize = { version = "0.4" } -blake2 = "0.10" +blake2 = { default-features = false, version = "0.10" } blst = "0.3.11" -num-bigint = "0.4.4" -num-traits = "0.2.18" -rand = "0.8.5" -rayon = { version = "1.10", optional = true } +num-bigint = { default-features = false, version = "0.4.4" } +num-traits = { default-features = false, version = "0.2.18" } +rand = { default-features = false, version = "0.8.5" } +rayon = { optional = true, version = "1.10" } thiserror = "1.0.58" [dev-dependencies] -divan = "0.1" +divan = { default-features = false, version = "0.1" } +rand = { default-features = false, features = ["std"], version = "0.8.5" } rayon = "1.10" [[bench]] diff --git a/nomos-da/network/core/Cargo.toml b/nomos-da/network/core/Cargo.toml index b538422e1..8954bef3f 100644 --- a/nomos-da/network/core/Cargo.toml +++ b/nomos-da/network/core/Cargo.toml @@ -9,33 +9,33 @@ workspace = true [dependencies] cached = { workspace = true } -either = "1.13.0" -fixed = { version = "1", features = ["serde-str"] } -futures = "0.3" -indexmap = "2.2" +either = { default-features = false, version = "1.13.0" } +fixed = { default-features = false, features = ["serde-str"], version = "1" } +futures = { default-features = false, version = "0.3" } +indexmap = { default-features = false, version = "2.2" } kzgrs-backend = { workspace = true } -libp2p = { workspace = true, features = ["macros", "quic", "tokio"] } +libp2p = { features = ["macros", "quic", "tokio"], workspace = true } libp2p-stream = "0.3.0-alpha" log = "0.4" nomos-core = { workspace = true } nomos-da-messages = { workspace = true } -nomos-utils = { workspace = true, features = ["time"] } -rand = "0.8" -serde = "1.0" +nomos-utils = { workspace = true } +rand = { default-features = false, version = "0.8" } +serde = { default-features = false, version = "1.0" } serde_with = { workspace = true } subnetworks-assignations = { workspace = true } thiserror = "1.0" tokio = { version = "1" } -tokio-stream = "0.1" +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } -tracing-subscriber = "0.3.18" +tracing-subscriber = { default-features = false, version = "0.3.18" } [dev-dependencies] bincode = "1.3" kzgrs = { workspace = true } -kzgrs-backend = { workspace = true, features = ["testutils"] } -libp2p = { workspace = true, features = ["ed25519", "macros", "noise", "ping", "plaintext", "quic", "tcp", "yamux"] } -libp2p-swarm-test = { version = "0.5.0", features = ["tokio"] } -rstest = "0.25" -tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +kzgrs-backend = { features = ["testutils"], workspace = true } +libp2p = { features = ["plaintext", "yamux"], workspace = true } +libp2p-swarm-test = { default-features = false, features = ["tokio"], version = "0.5.0" } +rstest = { default-features = false, version = "0.25" } +tokio = { default-features = false, version = "1" } +tracing-subscriber = { default-features = false, features = ["env-filter", "fmt", "std"], version = "0.3" } diff --git a/nomos-da/network/messages/Cargo.toml b/nomos-da/network/messages/Cargo.toml index f4c012dce..35db55f9d 100644 --- a/nomos-da/network/messages/Cargo.toml +++ b/nomos-da/network/messages/Cargo.toml @@ -9,12 +9,12 @@ workspace = true [dependencies] blake2 = "0.10" -futures = "0.3.31" +futures = { default-features = false, version = "0.3.31" } kzgrs-backend = { workspace = true } nomos-core = { workspace = true } -serde = { version = "1.0.215", features = ["derive"] } +serde = { default-features = false, version = "1.0.215" } tokio = "1" [dev-dependencies] -kzgrs-backend = { workspace = true, features = ["testutils"] } -tokio = { version = "1", features = ["macros"] } +kzgrs-backend = { features = ["testutils"], workspace = true } +tokio = { default-features = false, version = "1" } diff --git a/nomos-da/network/subnetworks-assignations/Cargo.toml b/nomos-da/network/subnetworks-assignations/Cargo.toml index c81cec616..5d6144c9e 100644 --- a/nomos-da/network/subnetworks-assignations/Cargo.toml +++ b/nomos-da/network/subnetworks-assignations/Cargo.toml @@ -9,15 +9,16 @@ workspace = true [dependencies] counter = "0.6" -libp2p-identity = { version = "0.2", features = ["peerid", "serde"] } +libp2p-identity = { default-features = false, features = ["peerid", "serde"], version = "0.2" } nomos-utils = { workspace = true } -rand = { workspace = true, features = ["small_rng"] } -serde = "1" +rand = { default-features = false, features = ["std_rng"], workspace = true } +serde = { default-features = false, version = "1" } [dev-dependencies] -divan = "0.1" -libp2p-identity = { version = "0.2", features = ["rand"] } -nomos-utils = { workspace = true, features = ["rng"] } +divan = { default-features = false, version = "0.1" } +libp2p-identity = { default-features = false, features = ["peerid", "rand"], version = "0.2" } +nomos-utils = { features = ["rng"], workspace = true } +rand = { default-features = false, features = ["small_rng", "std"], workspace = true } [[bench]] harness = false diff --git a/nomos-libp2p/Cargo.toml b/nomos-libp2p/Cargo.toml index 24da2b62f..737bdbaf9 100644 --- a/nomos-libp2p/Cargo.toml +++ b/nomos-libp2p/Cargo.toml @@ -8,25 +8,16 @@ version = "0.1.0" workspace = true [dependencies] -blake2 = { version = "0.10" } -cryptarchia-sync = { workspace = true, features = ["libp2p"] } -futures = "0.3" -hex = "0.4.3" -libp2p = { workspace = true, features = [ - "dns", - "gossipsub", - "identify", - "kad", - "macros", - "quic", - "secp256k1", - "tokio", -] } -multiaddr = "0.18" -serde = { version = "1.0.166", features = ["derive"] } -thiserror = "1.0.40" -tokio = "1" -tracing = { workspace = true } +blake2 = { default-features = false, version = "0.10" } +cryptarchia-sync = { features = ["libp2p"], workspace = true } +futures = { default-features = false, version = "0.3" } +hex = { default-features = false, version = "0.4.3" } +libp2p = { features = ["dns", "gossipsub", "identify", "kad", "macros", "quic", "tokio"], workspace = true } +multiaddr = { default-features = false, version = "0.18" } +serde = { default-features = false, version = "1.0.166" } +thiserror = "1.0.40" +tokio = "1" +tracing = { workspace = true } [dev-dependencies] -serde_json = "1.0.99" +serde_json = { default-features = false, version = "1.0.99" } diff --git a/nomos-services/api/Cargo.toml b/nomos-services/api/Cargo.toml index 348cb036b..cfd55f331 100644 --- a/nomos-services/api/Cargo.toml +++ b/nomos-services/api/Cargo.toml @@ -15,43 +15,42 @@ instrumentation = [] [dependencies] async-trait = "0.1" bytes = { workspace = true } -chain-service = { workspace = true, features = ["libp2p"] } -futures = "0.3.31" +chain-service = { features = ["libp2p"], workspace = true } +futures = { default-features = false, version = "0.3.31" } kzgrs-backend = { workspace = true } -nomos-blend-service = { workspace = true, features = ["libp2p"] } +nomos-blend-service = { workspace = true } nomos-core = { workspace = true } nomos-da-dispersal = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } -nomos-da-sampling = { workspace = true, features = ["rocksdb-backend"] } -nomos-da-verifier = { workspace = true, features = ["libp2p", "rocksdb-backend"] } +nomos-da-sampling = { workspace = true } +nomos-da-verifier = { features = ["rocksdb-backend"], workspace = true } nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } -nomos-mempool = { workspace = true, features = ["libp2p", "mock", "openapi"] } +nomos-mempool = { features = ["libp2p", "mock", "openapi"], workspace = true } nomos-network = { workspace = true } nomos-sdp = { workspace = true } -nomos-storage = { workspace = true, features = ["rocksdb-backend"] } +nomos-storage = { features = ["rocksdb-backend"], workspace = true } nomos-time = { workspace = true } overwatch = { workspace = true } -serde = { version = "1", features = ["derive"] } -serde_json = "1.0.140" +serde = { default-features = false, version = "1" } +serde_json = { default-features = false, version = "1.0.140" } subnetworks-assignations = { workspace = true } -tokio = { version = "1", default-features = false, features = ["sync"] } -tracing = "0.1" +tokio = { default-features = false, version = "1" } +tracing = { default-features = false, version = "0.1" } # axum related dependencies -axum = { version = "0.6", optional = true } -hyper = { version = "0.14", features = ["full"], optional = true } +axum = { default-features = false, optional = true, version = "0.6" } +hyper = { default-features = false, optional = true, version = "0.14" } # openapi related dependencies utoipa = { workspace = true } utoipa-swagger-ui = { workspace = true } [dev-dependencies] -axum = "0.6" -hyper = { version = "0.14", features = ["full"] } -reqwest = { workspace = true, features = ["blocking", "json"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" +axum = { default-features = false, features = ["tokio"], version = "0.6" } +hyper = { default-features = false, version = "0.14" } +reqwest = { default-features = false, workspace = true } +serde = { default-features = false, version = "1" } tracing = { workspace = true } -utoipa-swagger-ui = { workspace = true, features = ["axum"] } +utoipa-swagger-ui = { default-features = false, features = ["axum"], workspace = true } diff --git a/nomos-services/blend/Cargo.toml b/nomos-services/blend/Cargo.toml index 115e5d413..f295fb7e7 100644 --- a/nomos-services/blend/Cargo.toml +++ b/nomos-services/blend/Cargo.toml @@ -9,33 +9,33 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" -libp2p = { workspace = true, features = ["ed25519"], optional = true } -libp2p-stream = { workspace = true, optional = true } +futures = { default-features = false, version = "0.3" } +libp2p = { optional = true, workspace = true } +libp2p-stream = { optional = true, workspace = true } nomos-blend-message = { workspace = true } nomos-blend-network = { workspace = true } nomos-blend-scheduling = { workspace = true } nomos-core = { workspace = true } -nomos-libp2p = { workspace = true, optional = true } +nomos-libp2p = { optional = true, workspace = true } nomos-membership = { workspace = true } nomos-network = { workspace = true } -nomos-utils = { workspace = true, features = ["time"] } +nomos-utils = { features = ["serde"], workspace = true } overwatch = { workspace = true } rand = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } serde_with = { workspace = true } services-utils = { workspace = true } -thiserror = "1" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" +thiserror = { default-features = false, version = "1" } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } [dev-dependencies] -libp2p = { workspace = true, features = ["plaintext", "tcp", "tokio", "yamux"] } -libp2p-swarm-test = { version = "0.5.0", features = ["tokio"] } -nomos-blend-message = { workspace = true, features = ["unsafe-test-functions"] } -nomos-blend-network = { workspace = true, features = ["unsafe-test-functions"] } -test-log = { version = "0.2.18", features = ["trace"] } +libp2p = { default-features = false, features = ["plaintext", "tcp", "yamux"], workspace = true } +libp2p-swarm-test = { default-features = false, version = "0.5.0" } +nomos-blend-message = { workspace = true } +nomos-blend-network = { features = ["unsafe-test-functions"], workspace = true } +test-log = { default-features = false, version = "0.2.18" } [features] default = [] diff --git a/nomos-services/chain-service/Cargo.toml b/nomos-services/chain-service/Cargo.toml index 0a5268fd1..48a336405 100644 --- a/nomos-services/chain-service/Cargo.toml +++ b/nomos-services/chain-service/Cargo.toml @@ -10,37 +10,39 @@ workspace = true [dependencies] async-trait = "0.1" bytes = { workspace = true } -cryptarchia-engine = { workspace = true, features = ["serde"] } +cryptarchia-engine = { workspace = true } cryptarchia-sync = { workspace = true } -futures = "0.3" +futures = { default-features = false, version = "0.3" } groth16 = { workspace = true } nomos-blend-service = { workspace = true } nomos-core = { workspace = true } nomos-da-sampling = { workspace = true } -nomos-ledger = { workspace = true, features = ["serde"] } +nomos-ledger = { features = ["serde"], workspace = true } nomos-mempool = { workspace = true } nomos-network = { workspace = true } nomos-storage = { workspace = true } nomos-time = { workspace = true } nomos-utils = { workspace = true } nomos_proof_statements = { workspace = true } -num-bigint = "0.4" +num-bigint = { version = "0.4", default-features = false } overwatch = { workspace = true } -rand = "0.8" +rand = { default-features = false, version = "0.8" } risc0-zkvm = { workspace = true } -serde = { version = "1", features = ["derive"] } +serde = { default-features = false, version = "1" } serde_with = { workspace = true } services-utils = { workspace = true } thiserror = "1.0" -tokio = { version = "1", features = ["sync"] } -tokio-stream = "0.1" +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } -tracing-futures = "0.2" -utoipa = { workspace = true, optional = true } +tracing-futures = { default-features = false, version = "0.2" } +utoipa = { optional = true, workspace = true } [dev-dependencies] kzgrs-backend = { workspace = true } -tempfile = "3" +nomos-network = { features = ["mock"], workspace = true } +nomos-storage = { features = ["rocksdb-backend"], workspace = true } +tempfile = { default-features = false, version = "3" } [features] default = [] diff --git a/nomos-services/data-availability/dispersal/Cargo.toml b/nomos-services/data-availability/dispersal/Cargo.toml index f29307d5a..b28300c4e 100644 --- a/nomos-services/data-availability/dispersal/Cargo.toml +++ b/nomos-services/data-availability/dispersal/Cargo.toml @@ -9,18 +9,18 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { default-features = false, version = "0.3" } kzgrs-backend = { workspace = true } nomos-core = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } nomos-tracing = { workspace = true } -nomos-utils = { workspace = true, features = ["time"] } +nomos-utils = { workspace = true } overwatch = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } serde_with = { workspace = true } services-utils = { workspace = true } subnetworks-assignations = { workspace = true } tokio = "1" -tokio-stream = "0.1.15" +tokio-stream = { default-features = false, version = "0.1.15" } tracing = { workspace = true } diff --git a/nomos-services/data-availability/network/Cargo.toml b/nomos-services/data-availability/network/Cargo.toml index 3c941e260..649c80525 100644 --- a/nomos-services/data-availability/network/Cargo.toml +++ b/nomos-services/data-availability/network/Cargo.toml @@ -12,12 +12,12 @@ arc-swap = "1" async-trait = "0.1" blake2 = { workspace = true } common-http-client = { workspace = true } -futures = "0.3" +futures = { default-features = false, version = "0.3" } kzgrs-backend = { workspace = true } -libp2p = { workspace = true, features = ["ed25519"] } +libp2p = { features = ["ed25519"], workspace = true } libp2p-identity = { version = "0.2" } log = "0.4.22" -multiaddr = "0.18" +multiaddr = { default-features = false, version = "0.18" } nomos-core = { workspace = true } nomos-da-messages = { workspace = true } nomos-da-network-core = { workspace = true } @@ -25,14 +25,14 @@ nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } nomos-storage = { workspace = true } nomos-tracing = { workspace = true } -nomos-utils = { workspace = true, features = ["rng"] } +nomos-utils = { features = ["rng"], workspace = true } overwatch = { workspace = true } rand = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, features = ["derive"], version = "1.0" } services-utils = { workspace = true } subnetworks-assignations = { workspace = true } thiserror = "1" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" +tokio = { default-features = false, features = ["macros", "sync"], version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } -url = "2.5.4" +url = { default-features = false, version = "2.5.4" } diff --git a/nomos-services/data-availability/sampling/Cargo.toml b/nomos-services/data-availability/sampling/Cargo.toml index e2c13ca39..a1fd548d6 100644 --- a/nomos-services/data-availability/sampling/Cargo.toml +++ b/nomos-services/data-availability/sampling/Cargo.toml @@ -10,8 +10,8 @@ workspace = true [dependencies] async-trait = "0.1" bytes = { workspace = true } -futures = "0.3" -hex = "0.4.3" +futures = { default-features = false, version = "0.3" } +hex = { default-features = false, version = "0.4.3" } kzgrs-backend = { workspace = true } libp2p-identity = { version = "0.2" } nomos-core = { workspace = true } @@ -21,11 +21,11 @@ nomos-storage = { workspace = true } nomos-tracing = { workspace = true } overwatch = { workspace = true } rand = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } services-utils = { workspace = true } subnetworks-assignations = { workspace = true } -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1.15" +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1.15" } tracing = { workspace = true } [dev-dependencies] diff --git a/nomos-services/data-availability/verifier/Cargo.toml b/nomos-services/data-availability/verifier/Cargo.toml index dd1bff437..d30c6907b 100644 --- a/nomos-services/data-availability/verifier/Cargo.toml +++ b/nomos-services/data-availability/verifier/Cargo.toml @@ -9,26 +9,26 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { default-features = false, version = "0.3" } kzgrs-backend = { workspace = true } -libp2p = { workspace = true, features = ["ed25519"] } +libp2p = { workspace = true } nomos-core = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } nomos-da-sampling = { workspace = true } -nomos-mempool = { workspace = true, features = ["libp2p", "mock"] } +nomos-mempool = { workspace = true } nomos-storage = { workspace = true } nomos-tracing = { workspace = true } -nomos-utils = { workspace = true, features = ["time"] } +nomos-utils = { workspace = true, features = ["serde"] } overwatch = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } serde_with = { workspace = true } services-utils = { workspace = true } subnetworks-assignations = { workspace = true } thiserror = "1.0" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1.15" -tracing = { workspace = true, features = ["attributes"] } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1.15" } +tracing = { workspace = true } [features] libp2p = [] diff --git a/nomos-services/key-management-system/Cargo.toml b/nomos-services/key-management-system/Cargo.toml index b14366779..0b350f81c 100644 --- a/nomos-services/key-management-system/Cargo.toml +++ b/nomos-services/key-management-system/Cargo.toml @@ -10,18 +10,19 @@ workspace = true [dependencies] async-trait = "0.1" bytes = { workspace = true } -ed25519-dalek = { version = "2", features = ["serde", "zeroize"] } +ed25519-dalek = { default-features = false, features = ["serde", "zeroize"], version = "2" } log = "0.4.22" overwatch = { workspace = true } -serde = { version = "1", features = ["derive"] } -thiserror = "2" -tokio = { version = "1", features = ["macros"] } -tracing = "0.1" -zeroize = { version = "1", features = ["zeroize_derive"] } +serde = { default-features = false, features = ["derive"], version = "1" } +thiserror = { default-features = false, version = "2" } +tokio = { default-features = false, version = "1" } +tracing = { default-features = false, version = "0.1" } +zeroize = { default-features = false, features = ["zeroize_derive"], version = "1" } [dev-dependencies] -ed25519-dalek = { version = "2", features = ["rand_core"] } -rand = { workspace = true } +ed25519-dalek = { default-features = false, features = ["rand_core"], version = "2" } +rand = { features = ["getrandom"], workspace = true } +serde = { default-features = false, features = ["std"], version = "1" } [features] default = ["preload"] diff --git a/nomos-services/membership/Cargo.toml b/nomos-services/membership/Cargo.toml index 858db2acf..1d5121e8e 100644 --- a/nomos-services/membership/Cargo.toml +++ b/nomos-services/membership/Cargo.toml @@ -9,16 +9,16 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { default-features = false, version = "0.3" } nomos-core = { workspace = true } nomos-sdp = { workspace = true } overwatch = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } services-utils = { workspace = true } thiserror = "1" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" -tracing = { workspace = true, features = ["attributes"] } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } +tracing = { workspace = true } [dev-dependencies] -multiaddr = "0.18" +multiaddr = { default-features = false, version = "0.18" } diff --git a/nomos-services/mempool/Cargo.toml b/nomos-services/mempool/Cargo.toml index 3cfc56b32..9ef446ba9 100644 --- a/nomos-services/mempool/Cargo.toml +++ b/nomos-services/mempool/Cargo.toml @@ -16,30 +16,30 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { default-features = false, version = "0.3" } kzgrs-backend = { workspace = true } -linked-hash-map = { version = "0.5.6", optional = true, features = ["serde_impl"] } +linked-hash-map = { default-features = false, optional = true, version = "0.5.6" } nomos-core = { workspace = true } nomos-da-network-core = { workspace = true } -nomos-da-sampling = { workspace = true, features = ["rocksdb-backend"] } +nomos-da-sampling = { workspace = true } nomos-network = { workspace = true } overwatch = { workspace = true } rand = { workspace = true } -serde = { version = "1.0", features = ["derive"] } -serde_json = { version = "1", optional = true } +serde = { default-features = false, version = "1.0" } +serde_json = { default-features = false, optional = true, version = "1" } services-utils = { workspace = true } thiserror = "1.0" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } -utoipa = { workspace = true, optional = true } +utoipa = { optional = true, workspace = true } [dev-dependencies] -nomos-mempool = { path = ".", features = ["mock"] } +nomos-mempool = { features = ["mock"], path = "." } nomos-tracing-service = { workspace = true } nomos-utils = { workspace = true } overwatch-derive = { workspace = true } -tokio = { version = "1", features = ["full"] } +tokio = { default-features = false, version = "1" } [features] default = [] diff --git a/nomos-services/network/Cargo.toml b/nomos-services/network/Cargo.toml index 9508ba9a6..d8bd18a46 100644 --- a/nomos-services/network/Cargo.toml +++ b/nomos-services/network/Cargo.toml @@ -9,25 +9,25 @@ workspace = true [dependencies] async-trait = "0.1" -chrono = { version = "0.4", optional = true } cryptarchia-sync = { workspace = true } -futures = "0.3" +futures = { default-features = false, version = "0.3" } nomos-core = { workspace = true } -nomos-libp2p = { workspace = true, optional = true } +nomos-libp2p = { optional = true, workspace = true } overwatch = { workspace = true } -rand = { workspace = true, optional = true } -serde = { version = "1.0", features = ["derive"] } -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" +rand = { features = ["std"], optional = true, workspace = true } +serde = { default-features = false, version = "1.0" } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } tracing = { workspace = true } -utoipa = { workspace = true, optional = true } +utoipa = { optional = true, workspace = true } [dev-dependencies] -tokio = { version = "1", features = ["full"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +chrono = { default-features = false, features = ["now"], version = "0.4" } +tokio = { default-features = false, version = "1" } +tracing-subscriber = { default-features = false, features = ["env-filter", "fmt", "std"], version = "0.3" } [features] default = [] libp2p = ["cryptarchia-sync/libp2p", "dep:nomos-libp2p", "dep:rand"] -mock = ["dep:chrono", "dep:rand"] +mock = ["dep:rand"] openapi = ["dep:utoipa"] diff --git a/nomos-services/sdp/Cargo.toml b/nomos-services/sdp/Cargo.toml index c22441f65..9a17267fb 100644 --- a/nomos-services/sdp/Cargo.toml +++ b/nomos-services/sdp/Cargo.toml @@ -9,10 +9,10 @@ workspace = true [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { default-features = false, version = "0.3" } nomos-core = { workspace = true } overwatch = { workspace = true } thiserror = "1" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" -tracing = { workspace = true, features = ["attributes"] } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } +tracing = { workspace = true } diff --git a/nomos-services/storage/Cargo.toml b/nomos-services/storage/Cargo.toml index e9ac323ed..bef3f246f 100644 --- a/nomos-services/storage/Cargo.toml +++ b/nomos-services/storage/Cargo.toml @@ -11,19 +11,19 @@ workspace = true async-trait = "0.1" bytes = { workspace = true } cryptarchia-engine = { workspace = true } -libp2p-identity = { version = "0.2", features = ["peerid", "serde"] } -multiaddr = "0.18" +libp2p-identity = { default-features = false, features = ["serde"], version = "0.2" } +multiaddr = { default-features = false, version = "0.18" } nomos-core = { workspace = true } overwatch = { workspace = true } -rocksdb = { version = "0.24", optional = true } -serde = { version = "1.0", features = ["derive"] } +rocksdb = { default-features = false, features = ["bindgen-runtime"], optional = true, version = "0.24" } +serde = { default-features = false, version = "1.0" } thiserror = "1.0" -tokio = { version = "1", features = ["macros", "sync"] } +tokio = { default-features = false, version = "1" } tracing = { workspace = true } [dev-dependencies] tempfile = { workspace = true } -tokio = { version = "1", features = ["macros", "sync", "time"] } +tokio = { default-features = false, version = "1" } [features] default = [] diff --git a/nomos-services/system-sig/Cargo.toml b/nomos-services/system-sig/Cargo.toml index 767953b7f..f806c32be 100644 --- a/nomos-services/system-sig/Cargo.toml +++ b/nomos-services/system-sig/Cargo.toml @@ -11,4 +11,4 @@ workspace = true async-ctrlc = "1.2" async-trait = "0.1" overwatch = { workspace = true } -tracing = "0.1" +tracing = { default-features = false, version = "0.1" } diff --git a/nomos-services/time/Cargo.toml b/nomos-services/time/Cargo.toml index fc609b966..364d486e2 100644 --- a/nomos-services/time/Cargo.toml +++ b/nomos-services/time/Cargo.toml @@ -9,22 +9,22 @@ workspace = true [dependencies] async-trait = "0.1" -cfg_eval = { version = "0.1", optional = true } -cryptarchia-engine = { workspace = true, features = ["serde", "tokio"] } -futures = "0.3" +cfg_eval = { optional = true, version = "0.1" } +cryptarchia-engine = { features = ["tokio"], workspace = true } +futures = { default-features = false, version = "0.3" } log = "0.4.22" -nomos-utils = { workspace = true, features = ["time"], optional = true } +nomos-utils = { optional = true, workspace = true } overwatch = { workspace = true } -serde = { version = "1.0", optional = true, features = ["derive"] } -serde_with = { workspace = true, optional = true } -sntpc = { version = "0.5", optional = true, features = ["tokio-socket"] } -thiserror = { version = "2.0", optional = true } -time = "0.3" -tokio = { version = "1", features = ["macros", "sync"] } -tokio-stream = "0.1" -tracing = "0.1" +serde = { default-features = false, features = ["derive"], optional = true, version = "1.0" } +serde_with = { optional = true, workspace = true } +sntpc = { default-features = false, features = ["std", "tokio-socket"], optional = true, version = "0.5" } +thiserror = { default-features = false, optional = true, version = "2.0" } +time = { default-features = false, features = ["std"], version = "0.3" } +tokio = { default-features = false, version = "1" } +tokio-stream = { default-features = false, version = "0.1" } +tracing = { default-features = false, version = "0.1" } [features] -ntp = ["dep:sntpc", "dep:thiserror"] -serde = ["dep:cfg_eval", "dep:nomos-utils", "dep:serde", "dep:serde_with"] +ntp = ["dep:sntpc", "dep:thiserror", "tokio/net"] +serde = ["cryptarchia-engine/serde", "dep:cfg_eval", "dep:nomos-utils", "dep:serde", "dep:serde_with"] testutils = [] diff --git a/nomos-services/tracing/Cargo.toml b/nomos-services/tracing/Cargo.toml index ad6737bc7..8031e6b74 100644 --- a/nomos-services/tracing/Cargo.toml +++ b/nomos-services/tracing/Cargo.toml @@ -11,7 +11,7 @@ workspace = true async-trait = "0.1" nomos-tracing = { workspace = true } overwatch = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } tracing = { workspace = true } tracing-appender = "0.2" -tracing-subscriber = { version = "0.3", features = ["json", "registry"] } +tracing-subscriber = { default-features = false, version = "0.3" } diff --git a/nomos-services/utils/Cargo.toml b/nomos-services/utils/Cargo.toml index b48c57348..aaf72d1a6 100644 --- a/nomos-services/utils/Cargo.toml +++ b/nomos-services/utils/Cargo.toml @@ -16,15 +16,16 @@ workspace = true [dependencies] async-trait = "0.1.83" -futures = "0.3" +futures = { default-features = false, version = "0.3" } log = "0.4.22" -overwatch = { workspace = true } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.133" +overwatch = { features = ["derive"], workspace = true } +serde = { default-features = false, version = "1.0" } +serde_json = { default-features = false, features = ["alloc"], version = "1.0.133" } thiserror = "1" tracing = { workspace = true } [dev-dependencies] overwatch-derive = { workspace = true } -tokio = { version = "1", features = ["macros"] } -tracing = "0.1" +serde = { default-features = false, features = ["derive"], version = "1.0" } +tokio = { default-features = false, version = "1" } +tracing = { default-features = false, version = "0.1" } diff --git a/nomos-tracing/Cargo.toml b/nomos-tracing/Cargo.toml index d561380d5..c5d5634a4 100644 --- a/nomos-tracing/Cargo.toml +++ b/nomos-tracing/Cargo.toml @@ -15,19 +15,19 @@ ignored = [ workspace = true [dependencies] -opentelemetry = { version = "0.26" } -opentelemetry-http = { version = "0.26", features = ["reqwest"] } -opentelemetry-otlp = { version = "0.26", features = ["grpc-tonic", "http-proto", "opentelemetry-http"] } +opentelemetry = { default-features = false, version = "0.26" } +opentelemetry-http = { default-features = false, features = ["reqwest"], version = "0.26" } +opentelemetry-otlp = { default-features = false, features = ["grpc-tonic", "http-proto"], version = "0.26" } opentelemetry-semantic-conventions = "0.26" -opentelemetry_sdk = { version = "0.26", features = ["rt-tokio"] } +opentelemetry_sdk = { default-features = false, features = ["rt-tokio"], version = "0.26" } rand = { workspace = true } reqwest = { workspace = true } -serde = { version = "1.0", features = ["derive"] } +serde = { default-features = false, version = "1.0" } tokio = "1" tracing = { workspace = true } tracing-appender = "0.2" tracing-gelf = "0.7" -tracing-loki = "0.2.5" -tracing-opentelemetry = "0.27" -tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "registry"] } -url = { version = "2", features = ["serde"] } +tracing-loki = { default-features = false, features = ["compat-0-2-1"], version = "0.2.5" } +tracing-opentelemetry = { default-features = false, features = ["metrics"], version = "0.27" } +tracing-subscriber = { default-features = false, features = ["env-filter", "std"], version = "0.3" } +url = { default-features = false, version = "2" } diff --git a/nomos-utils/Cargo.toml b/nomos-utils/Cargo.toml index c54767e88..871adfd45 100644 --- a/nomos-utils/Cargo.toml +++ b/nomos-utils/Cargo.toml @@ -9,21 +9,23 @@ workspace = true [dependencies] async-trait = "0.1" -blake2 = { version = "0.10", optional = true } +blake2 = { default-features = false, optional = true, version = "0.10" } cipher = { version = "0.4" } -const-hex = "1" -humantime = { version = "2.1", optional = true } +const-hex = { default-features = false, version = "1" } +humantime = { optional = true, version = "2.1" } overwatch = { workspace = true } rand = { workspace = true } -serde = { version = "1.0", optional = true, features = ["derive"] } -serde_with = { workspace = true, optional = true } -time = { version = "0.3", optional = true, features = ["serde-human-readable"] } +serde = { default-features = false, features = ["derive"], optional = true, version = "1.0" } +serde_with = { optional = true, workspace = true } +time = { default-features = false, features = ["serde-human-readable"], optional = true, version = "0.3" } [features] -rng = ["blake2"] -time = ["dep:humantime", "dep:serde_with", "dep:time", "serde"] +rng = ["dep:blake2"] +serde = ["serde/alloc"] +time = ["dep:humantime", "dep:serde", "dep:serde_with", "dep:time"] [dev-dependencies] nistrs = "0.1.2" -rand_chacha = "0.3" -serde_json = "1.0" +rand_chacha = { default-features = false, version = "0.3" } +serde_json = { default-features = false, features = ["alloc"], version = "1.0" } +serde_with = { features = ["macros"], workspace = true } diff --git a/testnet/cfgsync/Cargo.toml b/testnet/cfgsync/Cargo.toml index 036130737..8e621093b 100644 --- a/testnet/cfgsync/Cargo.toml +++ b/testnet/cfgsync/Cargo.toml @@ -8,8 +8,8 @@ version = "0.1.0" workspace = true [dependencies] -axum = { version = "0.6" } -clap = { version = "4", features = ["derive"] } +axum = { default-features = false, version = "0.6" } +clap = { default-features = false, version = "4" } nomos-blend-scheduling = { workspace = true } nomos-core = { workspace = true } nomos-da-network-core = { workspace = true } @@ -18,14 +18,14 @@ nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } nomos-node = { workspace = true } nomos-tracing-service = { workspace = true } -nomos-utils = { workspace = true, features = ["time"] } +nomos-utils = { workspace = true } rand = { workspace = true } -reqwest = { workspace = true, features = ["json", "rustls-tls"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1.0" +reqwest = { workspace = true } +serde = { default-features = false, version = "1" } +serde_json = { default-features = false, version = "1.0" } serde_path_to_error = "0.1" serde_with = { workspace = true } serde_yaml = "0.9" tests = { workspace = true } -tokio = { version = "1", features = ["rt-multi-thread"] } +tokio = { default-features = false, version = "1" } tracing = { workspace = true } diff --git a/tests/Cargo.toml b/tests/Cargo.toml index fde49f8b6..8fb668edd 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -12,44 +12,44 @@ workspace = true blst = { version = "0.3.11" } chain-service = { workspace = true } common-http-client = { workspace = true } -cryptarchia-engine = { workspace = true, features = ["serde"] } +cryptarchia-engine = { features = ["serde"], workspace = true } cryptarchia-sync = { workspace = true } executor-http-client = { workspace = true } -futures = "0.3" -futures-util = "0.3.31" -hex = "0.4.3" +futures = { default-features = false, version = "0.3" } +futures-util = { default-features = false, version = "0.3.31" } +hex = { default-features = false, version = "0.4.3" } kzgrs-backend = { workspace = true } nomos-api = { workspace = true } nomos-blend-message = { workspace = true } nomos-blend-scheduling = { workspace = true } -nomos-blend-service = { workspace = true, features = ["libp2p"] } +nomos-blend-service = { features = ["libp2p"], workspace = true } nomos-core = { workspace = true } nomos-da-dispersal = { workspace = true } nomos-da-network-core = { workspace = true } nomos-da-network-service = { workspace = true } nomos-da-sampling = { workspace = true } nomos-da-verifier = { workspace = true } -nomos-executor = { workspace = true, default-features = false, features = ["testing", "tracing"] } +nomos-executor = { default-features = false, features = ["testing", "tracing"], workspace = true } nomos-http-api-common = { workspace = true } -nomos-ledger = { workspace = true, features = ["serde"] } +nomos-ledger = { features = ["serde"], workspace = true } nomos-libp2p = { workspace = true } nomos-membership = { workspace = true } -nomos-mempool = { workspace = true, features = ["libp2p", "mock"] } -nomos-network = { workspace = true, features = ["libp2p"] } -nomos-node = { workspace = true, default-features = false, features = ["testing"] } +nomos-mempool = { features = ["libp2p", "mock"], workspace = true } +nomos-network = { features = ["libp2p"], workspace = true } +nomos-node = { default-features = false, features = ["testing"], workspace = true } nomos-time = { workspace = true } nomos-tracing = { workspace = true } nomos-tracing-service = { workspace = true } nomos-utils = { workspace = true } -num-bigint = "0.4" +num-bigint = { version = "0.4", default-features = false } rand = { workspace = true } -reqwest = { workspace = true, features = ["json"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1.0" +reqwest = { features = ["json"], workspace = true } +serde = { default-features = false, features = ["derive"], version = "1" } +serde_json = { default-features = false, features = ["std"], version = "1.0" } serde_yaml = "0.9" subnetworks-assignations = { workspace = true } tempfile = { workspace = true } -time = "0.3" +time = { default-features = false, version = "0.3" } tokio = "1" tracing = { workspace = true } diff --git a/utxotree/Cargo.toml b/utxotree/Cargo.toml index 71c443198..4f3fd8147 100644 --- a/utxotree/Cargo.toml +++ b/utxotree/Cargo.toml @@ -5,18 +5,21 @@ name = "utxotree" version = "0.1.0" [dependencies] -ark-ff = "0.4" +ark-ff = { version = "0.4", default-features = false } groth16 = { workspace = true, features = ["deser"] } -num-bigint = { version = "0.4" } +num-bigint = { version = "0.4", default-features = false } poseidon2 = { workspace = true } -rpds = { version = "1", features = ["serde"] } -serde = { version = "1.0", features = ["derive", "rc"], optional = true } +rpds = { default-features = false, features = ["serde"], version = "1" } +serde = { default-features = false, features = ["alloc", "derive", "rc"], optional = true, version = "1.0" } thiserror = "1.0" [dev-dependencies] -quickcheck = "1.0" +quickcheck = { default-features = false, version = "1.0" } quickcheck_macros = "1.0" rand = "0.9" [lints] workspace = true + +[features] +serde = ["dep:serde"] diff --git a/zk/groth16/Cargo.toml b/zk/groth16/Cargo.toml index f8078cb2b..0f687bb2d 100644 --- a/zk/groth16/Cargo.toml +++ b/zk/groth16/Cargo.toml @@ -5,22 +5,22 @@ name = "groth16" version = "0.1.0" [dependencies] -ark-bn254 = "0.4" +ark-bn254 = { default-features = false, features = ["curve"], version = "0.4" } ark-ec = "0.4" ark-ff = { version = "0.4" } -ark-groth16 = "0.4" -hex = { version = "0.4", optional = true } -num-bigint = { version = "0.4", optional = true } -serde = { version = "1.0", optional = true, features = ["derive"] } -serde_json = { version = "1.0", optional = true } -thiserror = { version = "2.0", optional = true } +ark-groth16 = { default-features = false, features = ["std"], version = "0.4" } +hex = { version = "0.4", default-features = false, features = ["alloc"], optional = true } +num-bigint = { version = "0.4", default-features = false, optional = true } +serde = { default-features = false, optional = true, features = ["derive"], version = "1.0" } +serde_json = { default-features = false, optional = true, version = "1.0", features = ["alloc"] } +thiserror = { default-features = false, optional = true, version = "2.0" } [dev-dependencies] -serde_json = "1.0" +serde_json = { default-features = false, features = ["alloc"], version = "1.0" } [lints] workspace = true [features] default = [] -deser = ["hex", "num-bigint", "serde", "serde_json", "thiserror"] +deser = ["dep:hex", "dep:num-bigint", "dep:serde", "dep:serde_json", "dep:thiserror"] diff --git a/zk/poseidon2/Cargo.toml b/zk/poseidon2/Cargo.toml index e7ada1f30..f2ef8eb22 100644 --- a/zk/poseidon2/Cargo.toml +++ b/zk/poseidon2/Cargo.toml @@ -5,10 +5,12 @@ name = "poseidon2" version = "0.1.0" [dependencies] -ark-bn254 = "0.4" -ark-ff = "0.4" -jf-poseidon2 = { git = "https://github.com/EspressoSystems/jellyfish.git" } -num-bigint = "0.4" +ark-bn254 = { default-features = false, features = ["scalar_field"], version = "0.4" } +ark-ff = "0.4" +jf-poseidon2 = { default-features = false, features = [ + "bn254", +], git = "https://github.com/EspressoSystems/jellyfish.git" } +num-bigint = { default-features = false, version = "0.4" } [lints] workspace = true