From e3b72ffc13a2821e9e0579c647a8366bfd624f10 Mon Sep 17 00:00:00 2001 From: Matteo Muraca <56828990+muraca@users.noreply.github.com> Date: Tue, 26 Sep 2023 21:39:20 +0200 Subject: [PATCH] Add toml sort to CI (#93) * toml sort config and action Signed-off-by: muraca * executed toml-sort on all files Signed-off-by: muraca * move toml sort job to own file * don't need protoc for the toml sorting * Don't need caching for toml sorting * standard toolchain is fine * move new toml sort file into correct directory :facepalm: * I guess we do need a toolchain specified though --------- Signed-off-by: muraca --- .github/workflows/build.yml | 2 +- .github/workflows/toml-sort.yml | 22 ++++++ Cargo.toml | 111 ++++++++++++++-------------- node/Cargo.toml | 44 +++++------ toml-sort.toml | 9 +++ tuxedo-core/Cargo.toml | 32 ++++---- tuxedo-core/aggregator/Cargo.toml | 10 +-- tuxedo-core/no_bound/Cargo.toml | 12 +-- tuxedo-template-runtime/Cargo.toml | 67 +++++++++-------- wallet/Cargo.toml | 32 ++++---- wardrobe/amoeba/Cargo.toml | 24 +++--- wardrobe/kitties/Cargo.toml | 32 ++++---- wardrobe/money/Cargo.toml | 28 +++---- wardrobe/poe/Cargo.toml | 32 ++++---- wardrobe/runtime_upgrade/Cargo.toml | 36 ++++----- 15 files changed, 261 insertions(+), 232 deletions(-) create mode 100644 .github/workflows/toml-sort.yml create mode 100644 toml-sort.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b48aee67d..ad1b0328f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,4 +95,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings \ No newline at end of file + args: -- -D warnings diff --git a/.github/workflows/toml-sort.yml b/.github/workflows/toml-sort.yml new file mode 100644 index 000000000..bd6e8382d --- /dev/null +++ b/.github/workflows/toml-sort.yml @@ -0,0 +1,22 @@ +on: + pull_request: + branches: + - main + push: + branches: + - main + +name: Toml Sort + +jobs: + toml-sort: + name: Toml Sort + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + - run: cargo install --git https://github.com/Moonsong-Labs/toml_sort/ + - run: find . -name Cargo.toml | xargs -L1 toml-sort --check diff --git a/Cargo.toml b/Cargo.toml index 78481180e..bcf002c6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,51 +1,50 @@ -[workspace] -resolver = "2" +[profile.release] +panic = "unwind" +[workspace] members = [ - "node", - "tuxedo-template-runtime", - "tuxedo-core", - "tuxedo-core/aggregator", - "tuxedo-core/no_bound", - "wallet", - "wardrobe/amoeba", - "wardrobe/money", - "wardrobe/poe", - "wardrobe/kitties", - "wardrobe/runtime_upgrade", + "node", + "tuxedo-template-runtime", + "tuxedo-core", + "tuxedo-core/aggregator", + "tuxedo-core/no_bound", + "wallet", + "wardrobe/amoeba", + "wardrobe/money", + "wardrobe/poe", + "wardrobe/kitties", + "wardrobe/runtime_upgrade", ] - -[profile.release] -panic = "unwind" +resolver = "2" [workspace.dependencies] # Generic dependencies +clap = "4.3.0" +hex-literal = "0.4.1" +jsonrpsee = "0.16.2" log = "0.4" -serde = "1.0" parity-scale-codec = { version = "3.4.0", default-features = false } -scale-info = { version = "2.1.1", default-features = false } parity-util-mem = "0.12.0" -jsonrpsee = "0.16.2" -hex-literal = "0.4.1" -clap = "4.3.0" +scale-info = { version = "2.1.1", default-features = false } +serde = "1.0" # Procedural macro dependencies -syn = "2.0.15" -quote = "1.0.23" proc-macro2 = "1.0.67" +quote = "1.0.23" +syn = "2.0.15" # Core-only dependencies array-bytes = "6.0.0" # Wallet-only dependencies -serde_json = "1.0" -tokio = "1.25.0" anyhow = "1.0.69" -hex = "0.4.3" directories = "5.0.0" -sled = "0.34.7" -futures = "0.3" env_logger = "0.10.0" +futures = "0.3" +hex = "0.4.3" +serde_json = "1.0" +sled = "0.34.7" +tokio = "1.25.0" # Node-only dependencies substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } @@ -54,39 +53,39 @@ substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-s substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } # Substrate primitives and client +sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-core = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } +sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-network = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sc-service = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-session = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-api = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-application-crypto = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-block-builder = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-network = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default-features = false } -sp-version = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default-features = false } -sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } +sp-consensus-aura = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-consensus-grandpa = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-core = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-debug-derive = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-inherents = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-io = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sc-rpc-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } -sp-debug-derive = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sp-io = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } -sp-std = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-storage = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-application-crypto = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false} -sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0", default_features = false } +sp-keystore = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-offchain = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-session = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-std = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-storage = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-timestamp = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-transaction-pool = { default_features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } +sp-version = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.1.0" } diff --git a/node/Cargo.toml b/node/Cargo.toml index 75b0624e7..c8059e37e 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,54 +1,54 @@ [package] -name = "node-template" -version = "4.0.0-dev" +build = "build.rs" description = "A fresh Substrate node, ready for hacking." edition = "2021" license = "Unlicense" +name = "node-template" publish = false -build = "build.rs" +version = "4.0.0-dev" [package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[[bin]] -name = "node-template" +targets = [ "x86_64-unknown-linux-gnu" ] [dependencies] -clap = { workspace = true, features = ["derive"] } +clap = { features = [ "derive" ], workspace = true } sc-cli = { workspace = true } -sp-core = { workspace = true } +sc-client-api = { workspace = true } +sc-consensus = { workspace = true } +sc-consensus-aura = { workspace = true } +sc-consensus-grandpa = { workspace = true } sc-executor = { workspace = true } +sc-keystore = { workspace = true } +sc-network = { workspace = true } sc-service = { workspace = true } sc-telemetry = { workspace = true } -sc-keystore = { workspace = true } sc-transaction-pool = { workspace = true } sc-transaction-pool-api = { workspace = true } -sc-consensus-aura = { workspace = true } -sp-consensus-aura = { workspace = true } sp-consensus = { workspace = true } -sc-consensus = { workspace = true } -sc-consensus-grandpa = { workspace = true } +sp-consensus-aura = { workspace = true } sp-consensus-grandpa = { workspace = true } -sc-network = { workspace = true } -sc-client-api = { workspace = true } -sp-runtime = { workspace = true } -sp-timestamp = { workspace = true } +sp-core = { workspace = true } sp-inherents = { workspace = true } sp-keyring = { workspace = true } +sp-runtime = { workspace = true } +sp-timestamp = { workspace = true } # These dependencies are used for the node template's RPCs -jsonrpsee = { workspace = true, features = ["server"] } +jsonrpsee = { features = [ "server" ], workspace = true } +sc-basic-authorship = { workspace = true } sc-rpc = { workspace = true } -sp-api = { workspace = true } sc-rpc-api = { workspace = true } -sp-blockchain = { workspace = true } +sp-api = { workspace = true } sp-block-builder = { workspace = true } -sc-basic-authorship = { workspace = true } +sp-blockchain = { workspace = true } # Local Dependencies node-template-runtime = { package = "tuxedo-template-runtime", path = "../tuxedo-template-runtime" } +[[bin]] +name = "node-template" + [build-dependencies] substrate-build-script-utils = { workspace = true } diff --git a/toml-sort.toml b/toml-sort.toml new file mode 100644 index 000000000..8e2692e24 --- /dev/null +++ b/toml-sort.toml @@ -0,0 +1,9 @@ +keys = [ + "package", + "dependencies", +] + +inline_keys = [ + "version", + "features", +] diff --git a/tuxedo-core/Cargo.toml b/tuxedo-core/Cargo.toml index ac4e1e4c6..8fb42ca37 100644 --- a/tuxedo-core/Cargo.toml +++ b/tuxedo-core/Cargo.toml @@ -1,34 +1,34 @@ [package] -name = "tuxedo-core" -version = "1.0.0-dev" -repository = 'https://github.com/Off-Narrative-Labs/Tuxedo' +description = "Core components that all Tuxedo runtimes will use." edition = "2021" license = "Apache-2.0" -description = "Core components that all Tuxedo runtimes will use." +name = "tuxedo-core" +repository = "https://github.com/Off-Narrative-Labs/Tuxedo" +version = "1.0.0-dev" [dependencies] log = { workspace = true } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -parity-util-mem = { workspace = true, optional = true } +parity-scale-codec = { features = [ "derive" ], workspace = true } +parity-util-mem = { optional = true, workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } aggregator = { path = "aggregator" } derive-no-bound = { path = "no_bound" } -sp-api = { workspace = true, default_features = false} -sp-debug-derive = { workspace = true, default_features = false, features = ["force-debug"] } -sp-core = { workspace = true, default_features = false} -sp-io = { workspace = true, default_features = false, features = ["with-tracing"] } -sp-runtime = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} -sp-storage = { workspace = true, default_features = false} +sp-api = { default_features = false, workspace = true } +sp-core = { default_features = false, workspace = true } +sp-debug-derive = { features = [ "force-debug" ], default_features = false, workspace = true } +sp-io = { features = [ "with-tracing" ], default_features = false, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +sp-storage = { default_features = false, workspace = true } [dev-dependencies] array-bytes = { workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "sp-debug-derive/std", "parity-scale-codec/std", diff --git a/tuxedo-core/aggregator/Cargo.toml b/tuxedo-core/aggregator/Cargo.toml index 986fd4858..82ce5153f 100644 --- a/tuxedo-core/aggregator/Cargo.toml +++ b/tuxedo-core/aggregator/Cargo.toml @@ -1,13 +1,13 @@ [package] +edition = "2021" name = "aggregator" version = "0.1.0" -edition = "2021" + +[dependencies] +quote = { workspace = true } +syn = { features = [ "extra-traits", "full" ], workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] proc-macro = true - -[dependencies] -syn = { workspace = true, features = ["extra-traits", "full"] } -quote = { workspace = true } diff --git a/tuxedo-core/no_bound/Cargo.toml b/tuxedo-core/no_bound/Cargo.toml index 56c4d2c9e..88a9ac99b 100644 --- a/tuxedo-core/no_bound/Cargo.toml +++ b/tuxedo-core/no_bound/Cargo.toml @@ -1,14 +1,14 @@ [package] +edition = "2021" name = "derive-no-bound" version = "0.1.0" -edition = "2021" + +[dependencies] +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { features = [ "extra-traits", "full" ], workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] proc-macro = true - -[dependencies] -syn = { workspace = true, features = ["extra-traits", "full"] } -quote = { workspace = true } -proc-macro2 = { workspace = true } diff --git a/tuxedo-template-runtime/Cargo.toml b/tuxedo-template-runtime/Cargo.toml index 74dccec01..89211598b 100644 --- a/tuxedo-template-runtime/Cargo.toml +++ b/tuxedo-template-runtime/Cargo.toml @@ -1,55 +1,55 @@ [package] -name = "tuxedo-template-runtime" -version = "1.0.0-dev" -repository = 'https://github.com/Off-Narative-Labs/Tuxedo' +description = "An example and template runtime built with Tuxedo." edition = "2021" license = "Apache-2.0" -description = "An example and template runtime built with Tuxedo." +name = "tuxedo-template-runtime" +repository = "https://github.com/Off-Narative-Labs/Tuxedo" +version = "1.0.0-dev" [dependencies] log = { workspace = true } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -parity-util-mem = { workspace = true, optional = true } +parity-scale-codec = { features = [ "derive" ], workspace = true } +parity-util-mem = { optional = true, workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } -sp-api = { workspace = true, default_features = false} -sp-debug-derive = { workspace = true, default_features = false, features = ["force-debug"] } -sp-block-builder = { workspace = true, default_features = false} -sp-core = { workspace = true, default_features = false} -sp-inherents = { workspace = true, default_features = false} -sp-io = { workspace = true, default_features = false, features = ["with-tracing"] } -sp-offchain = { workspace = true, default_features = false} -sp-runtime = { workspace = true, default_features = false} -sp-session = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} -sp-storage = { workspace = true, default_features = false} -sp-transaction-pool = { workspace = true, default_features = false} -sp-version = { workspace = true, default_features = false} -sp-timestamp = { workspace = true, default_features = false} +sp-api = { default_features = false, workspace = true } +sp-block-builder = { default_features = false, workspace = true } +sp-core = { default_features = false, workspace = true } +sp-debug-derive = { features = [ "force-debug" ], default_features = false, workspace = true } +sp-inherents = { default_features = false, workspace = true } +sp-io = { features = [ "with-tracing" ], default_features = false, workspace = true } +sp-offchain = { default_features = false, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-session = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +sp-storage = { default_features = false, workspace = true } +sp-timestamp = { default_features = false, workspace = true } +sp-transaction-pool = { default_features = false, workspace = true } +sp-version = { default_features = false, workspace = true } # These were added for Aura / Grandpa API support hex-literal = { workspace = true } -sp-consensus-aura = { workspace = true, default_features = false} -sp-application-crypto = { workspace = true, default_features = false} -sp-consensus-grandpa = { workspace = true, default_features = false} +sp-application-crypto = { default_features = false, workspace = true } +sp-consensus-aura = { default_features = false, workspace = true } +sp-consensus-grandpa = { default_features = false, workspace = true } # Tuxedo Core and Pieces -tuxedo-core = { path = '../tuxedo-core', default-features = false } -amoeba = { path = '../wardrobe/amoeba', default-features = false } -money = { path = '../wardrobe/money', default-features = false } -poe = { path = '../wardrobe/poe', default-features = false } -kitties = { path = '../wardrobe/kitties', default-features = false } -runtime-upgrade = { path = '../wardrobe/runtime_upgrade', default-features = false } +amoeba = { default-features = false, path = "../wardrobe/amoeba" } +kitties = { default-features = false, path = "../wardrobe/kitties" } +money = { default-features = false, path = "../wardrobe/money" } +poe = { default-features = false, path = "../wardrobe/poe" } +runtime-upgrade = { default-features = false, path = "../wardrobe/runtime_upgrade" } +tuxedo-core = { default-features = false, path = "../tuxedo-core" } [build-dependencies] substrate-wasm-builder = { workspace = true } [dev-dependencies] -sp-keystore = { workspace = true, default_features = false } +sp-keystore = { default_features = false, workspace = true } [features] -default = ["std"] +default = [ "std" ] std = [ "sp-debug-derive/std", "sp-block-builder/std", @@ -70,7 +70,6 @@ std = [ "sp-consensus-aura/std", "sp-application-crypto/std", "sp-consensus-grandpa/std", - "tuxedo-core/std", "amoeba/std", "money/std", diff --git a/wallet/Cargo.toml b/wallet/Cargo.toml index baba2cf3d..694571416 100644 --- a/wallet/Cargo.toml +++ b/wallet/Cargo.toml @@ -1,30 +1,30 @@ [package] -name = "tuxedo-template-wallet" -version = "1.0.0-dev" -repository = 'https://github.com/Off-Narrative-Labs/Tuxedo' +description = "A simple example / template wallet built for the tuxedo template runtime" edition = "2021" license = "Apache-2.0" -description = "A simple example / template wallet built for the tuxedo template runtime" +name = "tuxedo-template-wallet" +repository = "https://github.com/Off-Narrative-Labs/Tuxedo" +version = "1.0.0-dev" [dependencies] -runtime = { path = "../tuxedo-template-runtime", package = "tuxedo-template-runtime"} +runtime = { package = "tuxedo-template-runtime", path = "../tuxedo-template-runtime" } tuxedo-core = { path = "../tuxedo-core" } -serde_json = { workspace = true } -parity-scale-codec = { workspace = true } -jsonrpsee = { workspace = true, features = ["http-client"] } -tokio = { workspace = true, features = ["full"] } anyhow = { workspace = true } -hex = { workspace = true } -hex-literal = { workspace = true } -clap = { workspace = true, features = [ "derive"] } +clap = { features = [ "derive" ], workspace = true } directories = { workspace = true } -sled = { workspace = true } -futures = { workspace = true } env_logger = { workspace = true } +futures = { workspace = true } +hex = { workspace = true } +hex-literal = { workspace = true } +jsonrpsee = { features = [ "http-client" ], workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } +serde_json = { workspace = true } +sled = { workspace = true } +tokio = { features = [ "full" ], workspace = true } -sp-runtime = { workspace = true } +sc-keystore = { workspace = true } sp-core = { workspace = true } sp-keystore = { workspace = true } -sc-keystore = { workspace = true } +sp-runtime = { workspace = true } diff --git a/wardrobe/amoeba/Cargo.toml b/wardrobe/amoeba/Cargo.toml index ab322cff4..d45db057c 100644 --- a/wardrobe/amoeba/Cargo.toml +++ b/wardrobe/amoeba/Cargo.toml @@ -1,23 +1,23 @@ [package] +description = "A Tuxedo piece that simulates an amoeba population" +edition = "2021" name = "amoeba" version = "0.1.0" -edition = "2021" -description = "A Tuxedo piece that simulates an amoeba population" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tuxedo-core = { path = '../../tuxedo-core', default-features = false } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -sp-runtime = { workspace = true, default_features = false} +parity-scale-codec = { features = [ "derive" ], workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } +sp-runtime = { default_features = false, workspace = true } +tuxedo-core = { default-features = false, path = "../../tuxedo-core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "tuxedo-core/std", - "parity-scale-codec/std", - "sp-runtime/std", - "serde", + "tuxedo-core/std", + "parity-scale-codec/std", + "sp-runtime/std", + "serde", ] diff --git a/wardrobe/kitties/Cargo.toml b/wardrobe/kitties/Cargo.toml index 41fffd627..2552a8059 100644 --- a/wardrobe/kitties/Cargo.toml +++ b/wardrobe/kitties/Cargo.toml @@ -1,27 +1,27 @@ [package] +description = "A Tuxedo piece that provides an NFT game loosely inspired by crypto kitties" +edition = "2021" name = "kitties" version = "0.1.0" -edition = "2021" -description = "A Tuxedo piece that provides an NFT game loosely inspired by crypto kitties" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tuxedo-core = { path = '../../tuxedo-core', default-features = false } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -sp-runtime = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} -sp-core = { workspace = true, default_features = false} +parity-scale-codec = { features = [ "derive" ], workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } +sp-core = { default_features = false, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +tuxedo-core = { default-features = false, path = "../../tuxedo-core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "tuxedo-core/std", - "parity-scale-codec/std", - "sp-runtime/std", - "sp-std/std", - "sp-core/std", - "serde", + "tuxedo-core/std", + "parity-scale-codec/std", + "sp-runtime/std", + "sp-std/std", + "sp-core/std", + "serde", ] diff --git a/wardrobe/money/Cargo.toml b/wardrobe/money/Cargo.toml index 9262a75b4..44afdc5ba 100644 --- a/wardrobe/money/Cargo.toml +++ b/wardrobe/money/Cargo.toml @@ -1,25 +1,25 @@ [package] +description = "A Tuxedo piece that provides a fixed number of simple fingible tokens" +edition = "2021" name = "money" version = "0.1.0" -edition = "2021" -description = "A Tuxedo piece that provides a fixed number of simple fingible tokens" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tuxedo-core = { path = '../../tuxedo-core', default-features = false } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -sp-runtime = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} +parity-scale-codec = { features = [ "derive" ], workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +tuxedo-core = { default-features = false, path = "../../tuxedo-core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "tuxedo-core/std", - "parity-scale-codec/std", - "sp-runtime/std", - "sp-std/std", - "serde", + "tuxedo-core/std", + "parity-scale-codec/std", + "sp-runtime/std", + "sp-std/std", + "serde", ] diff --git a/wardrobe/poe/Cargo.toml b/wardrobe/poe/Cargo.toml index 60ae8557d..22e1c4be5 100644 --- a/wardrobe/poe/Cargo.toml +++ b/wardrobe/poe/Cargo.toml @@ -1,27 +1,27 @@ [package] +description = "A Tuxedo piece that register proofs of existence on chain" +edition = "2021" name = "poe" version = "0.1.0" -edition = "2021" -description = "A Tuxedo piece that register proofs of existence on chain" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tuxedo-core = { path = '../../tuxedo-core', default-features = false } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -sp-runtime = { workspace = true, default_features = false} -sp-core = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} +parity-scale-codec = { features = [ "derive" ], workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } +sp-core = { default_features = false, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +tuxedo-core = { default-features = false, path = "../../tuxedo-core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "tuxedo-core/std", - "parity-scale-codec/std", - "sp-runtime/std", - "serde", - "sp-core/std", - "sp-std/std", + "tuxedo-core/std", + "parity-scale-codec/std", + "sp-runtime/std", + "serde", + "sp-core/std", + "sp-std/std", ] diff --git a/wardrobe/runtime_upgrade/Cargo.toml b/wardrobe/runtime_upgrade/Cargo.toml index bbbb28a27..3e3ea4611 100644 --- a/wardrobe/runtime_upgrade/Cargo.toml +++ b/wardrobe/runtime_upgrade/Cargo.toml @@ -1,29 +1,29 @@ [package] +description = "A Tuxedo piece that allows upgrading the runtime code of a live chain dynamically" +edition = "2021" name = "runtime-upgrade" version = "0.1.0" -edition = "2021" -description = "A Tuxedo piece that allows upgrading the runtime code of a live chain dynamically" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tuxedo-core = { path = '../../tuxedo-core', default-features = false } -serde = { workspace = true, optional = true, features = ["derive"] } -parity-scale-codec = { workspace = true, features = ['derive'] } -scale-info = { workspace = true, features = ["derive"] } -sp-runtime = { workspace = true, default_features = false} -sp-std = { workspace = true, default_features = false} -sp-io = { workspace = true, default_features = false} -sp-storage = { workspace = true, default_features = false} +parity-scale-codec = { features = [ "derive" ], workspace = true } +scale-info = { features = [ "derive" ], workspace = true } +serde = { features = [ "derive" ], optional = true, workspace = true } +sp-io = { default_features = false, workspace = true } +sp-runtime = { default_features = false, workspace = true } +sp-std = { default_features = false, workspace = true } +sp-storage = { default_features = false, workspace = true } +tuxedo-core = { default-features = false, path = "../../tuxedo-core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "tuxedo-core/std", - "parity-scale-codec/std", - "sp-runtime/std", - "serde", - "sp-std/std", - "sp-io/std", - "sp-storage/std", + "tuxedo-core/std", + "parity-scale-codec/std", + "sp-runtime/std", + "serde", + "sp-std/std", + "sp-io/std", + "sp-storage/std", ]