diff --git a/clients/runtime/Cargo.toml b/clients/runtime/Cargo.toml index 4b4e83505..590910a38 100644 --- a/clients/runtime/Cargo.toml +++ b/clients/runtime/Cargo.toml @@ -12,13 +12,13 @@ parachain-metadata-amplitude = [] parachain-metadata-foucoco = [] testing-utils = [ - "tempdir", - "rand", - "testchain", - "testchain-runtime/testing-utils", - "mainnet-runtime/testing-utils", - "subxt-client", - "oracle/testing-utils" + "mainnet-runtime/testing-utils", + "oracle/testing-utils", + "rand", + "subxt-client", + "tempdir", + "testchain", + "testchain-runtime/testing-utils", ] [dependencies] @@ -69,4 +69,4 @@ wallet = { path = "../wallet" } env_logger.workspace = true tempdir.workspace = true runtime = { path = ".", features = ["testing-utils"] } -testchain-runtime = { package = "spacewalk-runtime-standalone-testnet", path = "../../testchain/runtime/testnet", features = ["testing-utils"] } \ No newline at end of file +testchain-runtime = { package = "spacewalk-runtime-standalone-testnet", path = "../../testchain/runtime/testnet", features = ["testing-utils"] } diff --git a/clients/stellar-relay-lib/Cargo.toml b/clients/stellar-relay-lib/Cargo.toml index fb5974bab..28cc97090 100644 --- a/clients/stellar-relay-lib/Cargo.toml +++ b/clients/stellar-relay-lib/Cargo.toml @@ -46,9 +46,5 @@ tokio = { workspace = true, features = [ async-std = { workspace = true, features = ["attributes"] } [features] -std = [ - "substrate-stellar-sdk/std" -] -default = [ - "std" -] +std = [ "hmac/std", "serde_json/std", "substrate-stellar-sdk/std" ] +default = [ "std" ] diff --git a/clients/vault/Cargo.toml b/clients/vault/Cargo.toml index 6dfd22558..769d1e18a 100644 --- a/clients/vault/Cargo.toml +++ b/clients/vault/Cargo.toml @@ -6,20 +6,15 @@ name = "vault" version = "1.0.13" [features] -std = [ - "stellar-relay-lib/std" -] +std = [ "base64/std", "primitives/std", "stellar-relay-lib/std" ] -integration = [ - "rand", - "wallet/testing-utils" -] -standalone-metadata = ["runtime/standalone-metadata"] -parachain-metadata-pendulum = ["runtime/parachain-metadata-pendulum"] -parachain-metadata-amplitude = ["runtime/parachain-metadata-amplitude"] -parachain-metadata-foucoco = ["runtime/parachain-metadata-foucoco"] -integration-test = ["integration", "standalone-metadata"] -allow-debugger = ["console-subscriber"] +integration = [ "rand", "wallet/testing-utils" ] +standalone-metadata = [ "runtime/standalone-metadata" ] +parachain-metadata-pendulum = [ "runtime/parachain-metadata-pendulum" ] +parachain-metadata-amplitude = [ "runtime/parachain-metadata-amplitude" ] +parachain-metadata-foucoco = [ "runtime/parachain-metadata-foucoco" ] +integration-test = [ "integration", "standalone-metadata" ] +allow-debugger = [ "console-subscriber" ] [dependencies] diff --git a/pallets/clients-info/Cargo.toml b/pallets/clients-info/Cargo.toml index 1a3bf381e..19d2752f0 100644 --- a/pallets/clients-info/Cargo.toml +++ b/pallets/clients-info/Cargo.toml @@ -20,21 +20,20 @@ sp-core = { workspace = true, default-features = true } sp-io = { workspace = true, default-features = true} [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "scale-info/std", - "frame-support/std", - "frame-system/std", - "frame-benchmarking/std", + "codec/std", + "frame-benchmarking/std", + "frame-support/std", + "frame-system/std", + "scale-info/std", + "sp-std?/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-std" + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-std", ] -try-runtime = [ - "frame-system/try-runtime", -] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/pallets/currency/Cargo.toml b/pallets/currency/Cargo.toml index d6eb2bfda..a7cad73e1 100644 --- a/pallets/currency/Cargo.toml +++ b/pallets/currency/Cargo.toml @@ -32,32 +32,36 @@ sp-arithmetic = { workspace = true, default-features = true } pallet-balances = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "scale-info/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "pallet-balances/std", - "primitives/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", -] -testing-utils = [ - "mocktopus" + "codec/std", + "frame-support/std", + "frame-system/std", + "orml-currencies/std", + "orml-tokens/std", + "orml-traits/std", + "pallet-balances/std", + "primitives/std", + "scale-info/std", + "sp-std/std", ] +testing-utils = [ "mocktopus" ] # This feature has to be separate from the testing-utils feature because combining them causes the 'duplicate lang item' error # when compiling the testchain runtime testing-constants = [] try-runtime = [ - "frame-system/try-runtime", - "pallet-balances/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", ] # This feature is only used for defining `GetWrappedCurrencyId` config parameter in the runtime # `GetWrappedCurrencyId` is only used in other pallets' benchmarks -runtime-benchmarks = [] +runtime-benchmarks = [ + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", +] diff --git a/pallets/fee/Cargo.toml b/pallets/fee/Cargo.toml index 5c8150f45..f85b3d0c2 100644 --- a/pallets/fee/Cargo.toml +++ b/pallets/fee/Cargo.toml @@ -45,42 +45,51 @@ orml-tokens = { workspace = true, default-features = true } orml-traits = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "scale-info/std", - "sp-arithmetic/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "currency/std", - "security/std", - "staking/std", - "primitives/std", - "pooled-rewards/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", - "reward-distribution/std", - "oracle/std", + "codec/std", + "currency/std", + "frame-support/std", + "frame-system/std", + "oracle/std", + "orml-currencies/std", + "orml-tokens/std", + "orml-traits/std", + "pooled-rewards/std", + "primitives/std", + "reward-distribution/std", + "scale-info/std", + "security/std", + "sp-arithmetic/std", + "sp-std/std", + "staking/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "currency/runtime-benchmarks", - "currency/testing-constants" + "currency/runtime-benchmarks", + "currency/testing-constants", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "oracle/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "staking/runtime-benchmarks", ] try-runtime = [ - "frame-system/try-runtime", - "currency/try-runtime", - "pallet-balances/try-runtime", - "security/try-runtime", - "staking/try-runtime", - "pooled-rewards/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", - "reward-distribution/try-runtime", - "oracle/try-runtime", + "currency/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "security/try-runtime", + "staking/try-runtime", ] diff --git a/pallets/issue/Cargo.toml b/pallets/issue/Cargo.toml index f2c5655c1..53516a57f 100644 --- a/pallets/issue/Cargo.toml +++ b/pallets/issue/Cargo.toml @@ -57,42 +57,66 @@ orml-traits = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "hex/std", - "codec/std", - "sp-core/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "currency/std", - "fee/std", - "oracle/std", - "primitives/std", - "security/std", - "stellar-relay/std", - "vault-registry/std", - "nomination/std" + "codec/std", + "currency/std", + "fee/std", + "frame-support/std", + "frame-system/std", + "hex/std", + "log/std", + "nomination/std", + "oracle/std", + "orml-currencies?/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-core/std", + "sp-std/std", + "stellar-relay/std", + "vault-registry/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-traits", - "orml-currencies", - "currency/runtime-benchmarks", - "currency/testing-constants", - "stellar-relay/testing-utils", - "security/testing-utils", - "oracle/testing-utils" + "currency/runtime-benchmarks", + "currency/testing-constants", + "fee/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "nomination/runtime-benchmarks", + "oracle/runtime-benchmarks", + "oracle/testing-utils", + "orml-currencies", + "orml-tokens/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "reward/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", + "stellar-relay/runtime-benchmarks", + "stellar-relay/testing-utils", + "vault-registry/runtime-benchmarks", ] try-runtime = [ - "frame-system/try-runtime", - "currency/try-runtime", - "fee/try-runtime", - "stellar-relay/try-runtime", - "vault-registry/try-runtime", - "orml-currencies/try-runtime", - "security/try-runtime", - "oracle/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "nomination/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "reward/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", ] diff --git a/pallets/issue/rpc/runtime-api/Cargo.toml b/pallets/issue/rpc/runtime-api/Cargo.toml index 4b57181a6..38b5e1fb8 100644 --- a/pallets/issue/rpc/runtime-api/Cargo.toml +++ b/pallets/issue/rpc/runtime-api/Cargo.toml @@ -11,10 +11,5 @@ sp-api = { workspace = true } sp-std = { workspace = true } [features] -default = ["std"] -std = [ - "codec/std", - "frame-support/std", - "sp-api/std", - "sp-std/std", -] +default = [ "std" ] +std = [ "codec/std", "frame-support/std", "sp-api/std", "sp-std/std" ] diff --git a/pallets/nomination/Cargo.toml b/pallets/nomination/Cargo.toml index f90c9443c..d1f1e3eff 100644 --- a/pallets/nomination/Cargo.toml +++ b/pallets/nomination/Cargo.toml @@ -48,43 +48,56 @@ orml-currencies = { workspace = true, default-features = true } orml-traits = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "currency/std", - "security/std", - "vault-registry/std", - "fee/std", - "staking/std", - "primitives/std" + "codec/std", + "currency/std", + "fee/std", + "frame-support/std", + "frame-system/std", + "oracle?/std", + "orml-tokens?/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-std/std", + "staking/std", + "vault-registry/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-tokens", - "orml-traits", - - "currency/runtime-benchmarks", - "currency/testing-constants", - "security/testing-utils", - "oracle/testing-utils" + "currency/runtime-benchmarks", + "currency/testing-constants", + "fee/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "oracle/testing-utils", + "oracle?/runtime-benchmarks", + "orml-tokens", + "orml-tokens?/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", + "vault-registry/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "pallet-balances/try-runtime", - "pallet-timestamp/try-runtime", - "currency/try-runtime", - "security/try-runtime", - "vault-registry/try-runtime", - "fee/try-runtime", - "pooled-rewards/try-runtime", - "staking/try-runtime", - "orml-currencies/try-runtime", - "reward-distribution/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "oracle?/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens?/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "vault-registry/try-runtime", ] diff --git a/pallets/oracle/Cargo.toml b/pallets/oracle/Cargo.toml index d69d2ff7e..4656f928f 100644 --- a/pallets/oracle/Cargo.toml +++ b/pallets/oracle/Cargo.toml @@ -46,44 +46,53 @@ sp-core = { workspace = true, default-features = true } sp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "pallet-timestamp/std", - "security/std", - "currency/std", - "primitives/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", - "orml-oracle/std", - "dia-oracle/std", - + "codec/std", + "currency/std", + "dia-oracle/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", + "once_cell?/std", + "orml-currencies/std", + "orml-oracle/std", + "orml-tokens/std", + "orml-traits/std", + "pallet-timestamp/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-arithmetic?/std", + "sp-std/std", + "spin?/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", - "currency/runtime-benchmarks", - "currency/testing-constants", - "security/testing-utils", - "testing-utils" + "currency/runtime-benchmarks", + "currency/testing-constants", + "dia-oracle/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", + "testing-utils", ] -testing-utils = ["spin", "once_cell", "sp-arithmetic"] +testing-utils = [ "once_cell", "sp-arithmetic", "spin" ] try-runtime = [ - "frame-system/try-runtime", - "pallet-balances/try-runtime", - "pallet-timestamp/try-runtime", - "security/try-runtime", - "staking/try-runtime", - "currency/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", - "orml-oracle/try-runtime", - "dia-oracle/try-runtime", + "currency/try-runtime", + "dia-oracle/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "orml-currencies/try-runtime", + "orml-oracle/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "security/try-runtime", + "staking/try-runtime", ] diff --git a/pallets/oracle/rpc/runtime-api/Cargo.toml b/pallets/oracle/rpc/runtime-api/Cargo.toml index 71dbae9f4..fa267d5da 100644 --- a/pallets/oracle/rpc/runtime-api/Cargo.toml +++ b/pallets/oracle/rpc/runtime-api/Cargo.toml @@ -15,12 +15,14 @@ scale-info = {workspace = true, features = ["derive"] } primitives = { package = "spacewalk-primitives", path = "../../../../primitives", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ - "serde", - "codec/std", - "frame-support/std", - "sp-api/std", - "sp-std/std", - "scale-info/std" + "codec/std", + "frame-support/std", + "primitives/std", + "scale-info/std", + "serde", + "serde?/std", + "sp-api/std", + "sp-std/std", ] diff --git a/pallets/pooled-rewards/Cargo.toml b/pallets/pooled-rewards/Cargo.toml index 461124b6c..bdbe35529 100644 --- a/pallets/pooled-rewards/Cargo.toml +++ b/pallets/pooled-rewards/Cargo.toml @@ -29,23 +29,28 @@ sp-core = { workspace = true, default-features = true} sp-io = { workspace = true, default-features = true} [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "currency/std", - "primitives/std", - "sp-arithmetic/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", + "codec/std", + "currency/std", + "frame-support/std", + "frame-system/std", + "primitives/std", + "scale-info/std", + "sp-arithmetic/std", + "sp-std/std", ] runtime-benchmarks = [ - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", + "currency/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", ] try-runtime = [ - "frame-system/try-runtime", - "frame-system/try-runtime", - "currency/try-runtime", + "currency/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-timestamp/try-runtime", ] diff --git a/pallets/redeem/Cargo.toml b/pallets/redeem/Cargo.toml index de5d27436..e3db0bad8 100644 --- a/pallets/redeem/Cargo.toml +++ b/pallets/redeem/Cargo.toml @@ -56,47 +56,63 @@ orml-tokens = { workspace = true, default-features = true } orml-traits = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "hex/std", - "codec/std", - "sp-core/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "pooled-rewards/std", - "currency/std", - "fee/std", - "oracle/std", - "security/std", - "stellar-relay/std", - "vault-registry/std", - "primitives/std", + "codec/std", + "currency/std", + "fee/std", + "frame-support/std", + "frame-system/std", + "hex/std", + "log/std", + "oracle/std", + "pooled-rewards/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-core/std", + "sp-std/std", + "stellar-relay/std", + "vault-registry/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-tokens", - "orml-traits", - "stellar-relay/testing-utils", - "security/testing-utils", - "oracle/testing-utils", - "currency/runtime-benchmarks", - "currency/testing-constants", - + "currency/runtime-benchmarks", + "currency/testing-constants", + "fee/runtime-benchmarks", + "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "oracle/runtime-benchmarks", + "oracle/testing-utils", + "orml-tokens", + "orml-tokens?/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", + "stellar-relay/runtime-benchmarks", + "stellar-relay/testing-utils", + "vault-registry/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "pooled-rewards/try-runtime", - "currency/try-runtime", - "fee/try-runtime", - "oracle/try-runtime", - "security/try-runtime", - "stellar-relay/try-runtime", - "vault-registry/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", ] diff --git a/pallets/redeem/rpc/runtime-api/Cargo.toml b/pallets/redeem/rpc/runtime-api/Cargo.toml index 2ab301b49..cb6d0ac35 100644 --- a/pallets/redeem/rpc/runtime-api/Cargo.toml +++ b/pallets/redeem/rpc/runtime-api/Cargo.toml @@ -11,10 +11,5 @@ sp-api = { workspace = true } sp-std = { workspace = true } [features] -default = ["std"] -std = [ - "codec/std", - "frame-support/std", - "sp-api/std", - "sp-std/std", -] +default = [ "std" ] +std = [ "codec/std", "frame-support/std", "sp-api/std", "sp-std/std" ] diff --git a/pallets/replace/Cargo.toml b/pallets/replace/Cargo.toml index 707762ab7..0a13cfa91 100644 --- a/pallets/replace/Cargo.toml +++ b/pallets/replace/Cargo.toml @@ -56,46 +56,66 @@ orml-tokens = { workspace = true, default-features = true } orml-traits = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "hex/std", - "codec/std", - "sp-core/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "currency/std", - "fee/std", - "nomination/std", - "oracle/std", - "security/std", - "stellar-relay/std", - "vault-registry/std", - "primitives/std", + "codec/std", + "currency/std", + "fee/std", + "frame-support/std", + "frame-system/std", + "hex/std", + "log/std", + "nomination/std", + "oracle/std", + "orml-currencies?/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-core/std", + "sp-std/std", + "stellar-relay/std", + "vault-registry/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "orml-traits", - "orml-currencies", - "stellar-relay/testing-utils", - "currency/runtime-benchmarks", - "currency/testing-constants", - "security/testing-utils", - "oracle/testing-utils" + "currency/runtime-benchmarks", + "currency/testing-constants", + "fee/runtime-benchmarks", + "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "nomination/runtime-benchmarks", + "oracle/runtime-benchmarks", + "oracle/testing-utils", + "orml-currencies", + "orml-tokens/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", + "stellar-relay/runtime-benchmarks", + "stellar-relay/testing-utils", + "vault-registry/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "currency/try-runtime", - "fee/try-runtime", - "nomination/try-runtime", - "oracle/try-runtime", - "security/try-runtime", - "stellar-relay/try-runtime", - "vault-registry/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "nomination/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "security/try-runtime", + "staking/try-runtime", + "stellar-relay/try-runtime", + "vault-registry/try-runtime", ] diff --git a/pallets/replace/rpc/runtime-api/Cargo.toml b/pallets/replace/rpc/runtime-api/Cargo.toml index 50187af8c..a6781ef0f 100644 --- a/pallets/replace/rpc/runtime-api/Cargo.toml +++ b/pallets/replace/rpc/runtime-api/Cargo.toml @@ -11,10 +11,5 @@ sp-api = { workspace = true } sp-std = { workspace = true } [features] -default = ["std"] -std = [ - "codec/std", - "frame-support/std", - "sp-api/std", - "sp-std/std", -] +default = [ "std" ] +std = [ "codec/std", "frame-support/std", "sp-api/std", "sp-std/std" ] diff --git a/pallets/reward-distribution/Cargo.toml b/pallets/reward-distribution/Cargo.toml index 1611f28bb..22adfefcb 100644 --- a/pallets/reward-distribution/Cargo.toml +++ b/pallets/reward-distribution/Cargo.toml @@ -37,39 +37,46 @@ orml-currencies = { workspace = true, default-features = true } sp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "scale-info/std", - "sp-arithmetic/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "currency/std", - "pooled-rewards/std", - "oracle/std", - "primitives/std", - "orml-tokens/std", - "orml-traits/std", - "security/std", - "staking/std", + "codec/std", + "currency/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", + "log/std", + "oracle/std", + "orml-tokens/std", + "orml-traits/std", + "pooled-rewards/std", + "primitives/std", + "scale-info/std", + "security/std", + "sp-arithmetic/std", + "sp-std/std", + "staking/std", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "currency/runtime-benchmarks" + "currency/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "oracle/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "pallet-balances/try-runtime", - "currency/try-runtime", - "pooled-rewards/try-runtime", - "oracle/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", - "security/try-runtime", - "staking/try-runtime", + "currency/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pooled-rewards/try-runtime", + "security/try-runtime", + "staking/try-runtime", ] diff --git a/pallets/reward/Cargo.toml b/pallets/reward/Cargo.toml index b3aa92ad6..f769d3188 100644 --- a/pallets/reward/Cargo.toml +++ b/pallets/reward/Cargo.toml @@ -30,22 +30,28 @@ sp-io = {workspace = true, default-features = true } currency = { path = "../currency", features = ["testing-constants"] } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "currency/std", - "primitives/std", - "sp-arithmetic/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", + "codec/std", + "currency/std", + "frame-support/std", + "frame-system/std", + "primitives/std", + "scale-info/std", + "sp-arithmetic/std", + "sp-std/std", ] runtime-benchmarks = [ - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", + "currency/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", + "currency/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-timestamp/try-runtime", ] diff --git a/pallets/security/Cargo.toml b/pallets/security/Cargo.toml index bf9b1ca1f..9e3d20031 100644 --- a/pallets/security/Cargo.toml +++ b/pallets/security/Cargo.toml @@ -22,19 +22,17 @@ sp-io = { workspace = true, default-features = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "serde/std", - "codec/std", - "sha2/std", - "sp-core/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", + "codec/std", + "frame-support/std", + "frame-system/std", + "scale-info/std", + "serde/std", + "sha2/std", + "sp-core/std", + "sp-std/std", ] testing-utils = [] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/pallets/staking/Cargo.toml b/pallets/staking/Cargo.toml index c13498127..0f5228178 100644 --- a/pallets/staking/Cargo.toml +++ b/pallets/staking/Cargo.toml @@ -34,26 +34,33 @@ sp-io = { workspace = true, default-features = true } currency = { path = "../currency", features = ["testing-constants"] } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "primitives/std", - "currency/std", - "sp-arithmetic/std", - "sp-std/std", - "frame-support/std", - "frame-system/std", - "pallet-timestamp/std", - "orml-traits/std", - "orml-tokens/std", - "primitives/std", + "codec/std", + "currency/std", + "frame-support/std", + "frame-system/std", + "orml-tokens/std", + "orml-traits/std", + "pallet-timestamp/std", + "primitives/std", + "scale-info/std", + "sp-arithmetic/std", + "sp-std/std", ] runtime-benchmarks = [ - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", + "currency/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", + "currency/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "orml-tokens/try-runtime", + "pallet-timestamp/try-runtime", ] diff --git a/pallets/stellar-relay/Cargo.toml b/pallets/stellar-relay/Cargo.toml index 2cd3a0e2f..e6d645ed4 100644 --- a/pallets/stellar-relay/Cargo.toml +++ b/pallets/stellar-relay/Cargo.toml @@ -37,18 +37,30 @@ orml-traits = { workspace = true, default-features = true} rand.workspace = true [features] -default = ["std"] +default = [ "std" ] std = [ - "base64/std", - "codec/std", - "scale-info/std", - "frame-support/std", - "frame-system/std", - "sp-std/std", - "primitives/std", - "frame-benchmarking/std" + "base64/std", + "codec/std", + "frame-benchmarking/std", + "frame-support/std", + "frame-system/std", + "log/std", + "primitives/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-std/std", ] testing-utils = [] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "orml-tokens/try-runtime", +] diff --git a/pallets/vault-registry/Cargo.toml b/pallets/vault-registry/Cargo.toml index 69829c783..baa465cbd 100644 --- a/pallets/vault-registry/Cargo.toml +++ b/pallets/vault-registry/Cargo.toml @@ -51,50 +51,62 @@ pretty_assertions.workspace = true orml-currencies = { workspace = true, default-features = true } [features] -default = ["std"] -integration-tests = [ - "visibility", -] +default = [ "std" ] +integration-tests = [ "visibility" ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "currency/runtime-benchmarks", - "currency/testing-constants", - "security/testing-utils", - "oracle/testing-utils", - "orml-traits" + "currency/runtime-benchmarks", + "currency/testing-constants", + "fee/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "oracle/runtime-benchmarks", + "oracle/testing-utils", + "orml-tokens/runtime-benchmarks", + "orml-traits", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "security/testing-utils", + "staking/runtime-benchmarks", ] skip-slow-tests = [] std = [ - "serde", - "codec/std", - "sp-std/std", - "sp-core/std", - "frame-support/std", - "frame-system/std", - "pooled-rewards/std", - "orml-tokens/std", - "oracle/std", - "fee/std", - "security/std", - "currency/std", - "staking/std", - "primitives/std", + "codec/std", + "currency/std", + "fee/std", + "frame-support/std", + "frame-system/std", + "log/std", + "oracle/std", + "orml-tokens/std", + "orml-traits?/std", + "pooled-rewards/std", + "primitives/std", + "reward-distribution/std", + "scale-info/std", + "security/std", + "serde", + "serde?/std", + "sp-core/std", + "sp-std/std", + "staking/std", ] try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", - "pallet-balances/try-runtime", - "pallet-timestamp/try-runtime", - "pooled-rewards/try-runtime", - "orml-currencies/try-runtime", - "orml-tokens/try-runtime", - "oracle/try-runtime", - "fee/try-runtime", - "security/try-runtime", - "currency/try-runtime", - "staking/try-runtime", + "currency/try-runtime", + "fee/try-runtime", + "frame-support/try-runtime", + "frame-system/try-runtime", + "oracle/try-runtime", + "orml-currencies/try-runtime", + "orml-tokens/try-runtime", + "pallet-balances/try-runtime", + "pallet-timestamp/try-runtime", + "pooled-rewards/try-runtime", + "reward-distribution/try-runtime", + "security/try-runtime", + "staking/try-runtime", ] diff --git a/pallets/vault-registry/rpc/runtime-api/Cargo.toml b/pallets/vault-registry/rpc/runtime-api/Cargo.toml index 9780d4c60..7f9bdfd9c 100644 --- a/pallets/vault-registry/rpc/runtime-api/Cargo.toml +++ b/pallets/vault-registry/rpc/runtime-api/Cargo.toml @@ -12,11 +12,11 @@ sp-api = { workspace = true } sp-std = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "codec/std", - "frame-support/std", - "sp-api/std", - "sp-std/std", - "module-oracle-rpc-runtime-api/std", + "codec/std", + "frame-support/std", + "module-oracle-rpc-runtime-api/std", + "sp-api/std", + "sp-std/std", ] diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index e41abde70..85401fd6f 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -21,15 +21,16 @@ frame-support = { workspace = true } substrate-stellar-sdk = { workspace = true, features = ["offchain", "all-types"] } [features] -default = ["std"] +default = [ "std" ] std = [ - "scale-encode/std", - "scale-decode/std", - "serde/std", - "codec/std", - "sp-core/std", - "sp-std/std", - "sp-runtime/std", - "frame-support/std", - "substrate-stellar-sdk/std" + "codec/std", + "frame-support/std", + "scale-decode/std", + "scale-encode/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-runtime/std", + "sp-std/std", + "substrate-stellar-sdk/std", ] diff --git a/testchain/node/Cargo.toml b/testchain/node/Cargo.toml index 4ccfea0b4..9decb6374 100644 --- a/testchain/node/Cargo.toml +++ b/testchain/node/Cargo.toml @@ -94,8 +94,12 @@ substrate-frame-rpc-system = { workspace = true, default-features = true } [features] default = [] runtime-benchmarks = [ - "spacewalk-runtime-testnet/runtime-benchmarks", - "spacewalk-runtime-mainnet/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "frame-benchmarking-cli/runtime-benchmarks", + "frame-benchmarking-cli/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sc-service/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "spacewalk-runtime-mainnet/runtime-benchmarks", + "spacewalk-runtime-testnet/runtime-benchmarks", ] diff --git a/testchain/runtime/mainnet/Cargo.toml b/testchain/runtime/mainnet/Cargo.toml index f1c191d5e..af209754b 100644 --- a/testchain/runtime/mainnet/Cargo.toml +++ b/testchain/runtime/mainnet/Cargo.toml @@ -88,75 +88,86 @@ serde_json = { workspace = true, default-features = true } substrate-wasm-builder = { workspace = true } [features] -default = ["std"] +default = [ "std" ] disable-runtime-api = [] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "hex-literal", - "currency/runtime-benchmarks", - "clients-info/runtime-benchmarks", - "fee/runtime-benchmarks", - "issue/runtime-benchmarks", - "nomination/runtime-benchmarks", - "oracle/runtime-benchmarks", - "redeem/runtime-benchmarks", - "replace/runtime-benchmarks", - "reward-distribution/runtime-benchmarks", - "stellar-relay/runtime-benchmarks", - "vault-registry/runtime-benchmarks", + "clients-info/runtime-benchmarks", + "currency/runtime-benchmarks", + "dia-oracle/runtime-benchmarks", + "fee/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "hex-literal", + "issue/runtime-benchmarks", + "nomination/runtime-benchmarks", + "oracle/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-grandpa/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "redeem/runtime-benchmarks", + "replace/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "staking/runtime-benchmarks", + "stellar-relay/runtime-benchmarks", + "vault-registry/runtime-benchmarks", ] std = [ - "codec/std", - "currency/std", - "clients-info/std", - "fee/std", - "frame-executive/std", - "frame-support/std", - "frame-system-rpc-runtime-api/std", - "frame-system/std", - "issue/std", - "module-issue-rpc-runtime-api/std", - "module-oracle-rpc-runtime-api/std", - "module-redeem-rpc-runtime-api/std", - "module-replace-rpc-runtime-api/std", - "module-vault-registry-rpc-runtime-api/std", - "nomination/std", - "oracle/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", - "pallet-aura/std", - "pallet-balances/std", - "pallet-grandpa/std", - "pallet-sudo/std", - "pallet-timestamp/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "pallet-transaction-payment/std", - "pooled-rewards/std", - "primitives/std", - "redeem/std", - "replace/std", - "reward-distribution/std", - "scale-info/std", - "security/std", - "sp-api/std", - "sp-block-builder/std", - "sp-consensus-aura/std", - "sp-core/std", - "sp-inherents/std", - "sp-offchain/std", - "sp-runtime/std", - "sp-session/std", - "sp-std/std", - "sp-genesis-builder/std", - "sp-transaction-pool/std", - "sp-version/std", - "staking/std", - "stellar-relay/std", - "vault-registry/std", - "dia-oracle/std", + "clients-info/std", + "codec/std", + "currency/std", + "dia-oracle/std", + "fee/std", + "frame-benchmarking?/std", + "frame-executive/std", + "frame-support/std", + "frame-system-benchmarking?/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "issue/std", + "module-issue-rpc-runtime-api/std", + "module-oracle-rpc-runtime-api/std", + "module-redeem-rpc-runtime-api/std", + "module-replace-rpc-runtime-api/std", + "module-vault-registry-rpc-runtime-api/std", + "nomination/std", + "oracle/std", + "orml-currencies/std", + "orml-tokens/std", + "orml-traits/std", + "pallet-aura/std", + "pallet-balances/std", + "pallet-grandpa/std", + "pallet-sudo/std", + "pallet-timestamp/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", + "pooled-rewards/std", + "primitives/std", + "redeem/std", + "replace/std", + "reward-distribution/std", + "scale-info/std", + "security/std", + "sp-api/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-offchain/std", + "sp-runtime/std", + "sp-session/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", + "staking/std", + "stellar-relay/std", + "vault-registry/std", ] -testing-utils = ["oracle/testing-utils"] +testing-utils = [ "oracle/testing-utils" ] diff --git a/testchain/runtime/testnet/Cargo.toml b/testchain/runtime/testnet/Cargo.toml index e80db6068..a53721a40 100644 --- a/testchain/runtime/testnet/Cargo.toml +++ b/testchain/runtime/testnet/Cargo.toml @@ -88,75 +88,86 @@ serde_json = { workspace = true, default-features = true } substrate-wasm-builder = { workspace = true } [features] -default = ["std"] +default = [ "std" ] disable-runtime-api = [] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "hex-literal", - "currency/runtime-benchmarks", - "clients-info/runtime-benchmarks", - "fee/runtime-benchmarks", - "issue/runtime-benchmarks", - "nomination/runtime-benchmarks", - "oracle/runtime-benchmarks", - "redeem/runtime-benchmarks", - "replace/runtime-benchmarks", - "reward-distribution/runtime-benchmarks", - "stellar-relay/runtime-benchmarks", - "vault-registry/runtime-benchmarks", + "clients-info/runtime-benchmarks", + "currency/runtime-benchmarks", + "dia-oracle/runtime-benchmarks", + "fee/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "hex-literal", + "issue/runtime-benchmarks", + "nomination/runtime-benchmarks", + "oracle/runtime-benchmarks", + "orml-tokens/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-grandpa/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pooled-rewards/runtime-benchmarks", + "redeem/runtime-benchmarks", + "replace/runtime-benchmarks", + "reward-distribution/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "staking/runtime-benchmarks", + "stellar-relay/runtime-benchmarks", + "vault-registry/runtime-benchmarks", ] std = [ - "codec/std", - "currency/std", - "clients-info/std", - "fee/std", - "frame-executive/std", - "frame-support/std", - "frame-system-rpc-runtime-api/std", - "frame-system/std", - "issue/std", - "module-issue-rpc-runtime-api/std", - "module-oracle-rpc-runtime-api/std", - "module-redeem-rpc-runtime-api/std", - "module-replace-rpc-runtime-api/std", - "module-vault-registry-rpc-runtime-api/std", - "nomination/std", - "oracle/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", - "pallet-aura/std", - "pallet-balances/std", - "pallet-grandpa/std", - "pallet-sudo/std", - "pallet-timestamp/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "pallet-transaction-payment/std", - "pooled-rewards/std", - "primitives/std", - "redeem/std", - "replace/std", - "reward-distribution/std", - "scale-info/std", - "security/std", - "sp-api/std", - "sp-block-builder/std", - "sp-consensus-aura/std", - "sp-core/std", - "sp-inherents/std", - "sp-genesis-builder/std", - "sp-offchain/std", - "sp-runtime/std", - "sp-session/std", - "sp-std/std", - "sp-transaction-pool/std", - "sp-version/std", - "staking/std", - "stellar-relay/std", - "vault-registry/std", - "dia-oracle/std", + "clients-info/std", + "codec/std", + "currency/std", + "dia-oracle/std", + "fee/std", + "frame-benchmarking?/std", + "frame-executive/std", + "frame-support/std", + "frame-system-benchmarking?/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "issue/std", + "module-issue-rpc-runtime-api/std", + "module-oracle-rpc-runtime-api/std", + "module-redeem-rpc-runtime-api/std", + "module-replace-rpc-runtime-api/std", + "module-vault-registry-rpc-runtime-api/std", + "nomination/std", + "oracle/std", + "orml-currencies/std", + "orml-tokens/std", + "orml-traits/std", + "pallet-aura/std", + "pallet-balances/std", + "pallet-grandpa/std", + "pallet-sudo/std", + "pallet-timestamp/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", + "pooled-rewards/std", + "primitives/std", + "redeem/std", + "replace/std", + "reward-distribution/std", + "scale-info/std", + "security/std", + "sp-api/std", + "sp-block-builder/std", + "sp-consensus-aura/std", + "sp-core/std", + "sp-genesis-builder/std", + "sp-inherents/std", + "sp-offchain/std", + "sp-runtime/std", + "sp-session/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", + "staking/std", + "stellar-relay/std", + "vault-registry/std", ] -testing-utils = ["oracle/testing-utils"] +testing-utils = [ "oracle/testing-utils" ] diff --git a/zepter.yaml b/zepter.yaml new file mode 100644 index 000000000..615a0dac9 --- /dev/null +++ b/zepter.yaml @@ -0,0 +1,43 @@ +version: + format: 1 + # Minimum version of the binary that is expected to work. This is just for printing a nice error + # message when someone tries to use an older version. + binary: 0.13.2 + +# The examples in this file assume crate `A` to have a dependency on crate `B`. +workflows: + check: + - [ + 'lint', + # Check that `A` activates the features of `B`. + 'propagate-feature', + # These are the features to check: + '--features=try-runtime,runtime-benchmarks,std', + # Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. + '--left-side-feature-missing=ignore', + # Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. + '--left-side-outside-workspace=ignore', + # Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used. + '--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking', + # Actually modify the files and not just report the issues: + '--offline', + '--locked', + '--show-path', + '--quiet', + ] + # Format the features into canonical format: + - ['format', 'features', '--offline', '--locked', '--quiet'] + # Same as `check`, but with the `--fix` flag. + default: + - [ $check.0, '--fix' ] + - [ $check.1, '--fix' ] + +# Will be displayed when any workflow fails: +help: + text: | + Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration. + It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`. + Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you. + links: + - "https://github.com/paritytech/polkadot-sdk/issues/1831" + - "https://github.com/ggwpez/zepter" \ No newline at end of file