Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Format and Sort features in Cargo.toml files #51

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
default: true
profile: minimal

- name: Check `TOML`, `JSON`, and `MarkDown` formatting
uses: dprint/check@v2.1
- name: Check TOML formatting
run: |
cargo install zepter --locked --version 0.11.0 -q -f --no-default-features && zepter --version
zepter format features --check

- name: Check code formatting
uses: actions-rs/cargo@v1
Expand Down
39 changes: 16 additions & 23 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,32 @@ serde_json = "1"
test-case = "1.2.3"

[features]
default = ["std"]
default = [ "std" ]
std = [
"serde/std",
"hex",
"binary-merkle-tree?/std",
"codec/std",
"scale-info/std",
"derive_more/display",
"frame-support?/std",
"hash256-std-hasher/std",
"hex",
"log/std",
"scale-info/std",
"serde/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-io/std",
"sp-std/std",
"sp-trie/std",
"sp-arithmetic/std",
"hash256-std-hasher/std",
"binary-merkle-tree?/std",
"derive_more/display",
"sp-runtime-interface?/std",
"sp-runtime?/std",
"frame-support?/std",
"sp-std/std",
"sp-trie/std",
]
runtime = [
"binary-merkle-tree",
"frame-support",
"serde",
"sp-runtime-interface",
"sp-runtime",
"frame-support",
"binary-merkle-tree",
"sp-runtime-interface",
]

try-runtime = [
"runtime",
"sp-runtime/try-runtime",
]
serde = [
"dep:serde",
"hex/serde",
"log/serde",
]
try-runtime = [ "runtime", "sp-runtime/try-runtime" ]
serde = [ "dep:serde", "hex/serde", "log/serde" ]
20 changes: 0 additions & 20 deletions dprint.json

This file was deleted.

37 changes: 16 additions & 21 deletions kate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,32 @@ serde_json = "1"
test-case = "1.2.3"

[features]
default = ["std"]
alloc = ["dusk-plonk/alloc", "nalgebra/alloc"]
parallel = [
"rayon",
"criterion/rayon",
]
default = [ "std" ]
alloc = [ "dusk-plonk/alloc", "nalgebra/alloc" ]
parallel = [ "criterion/rayon", "rayon" ]

std = [
"parallel",
"avail-core/std",
"codec/std",
"dusk-bytes",
"dusk-plonk/std",
"hex",
"hex-literal",
"kate-recovery/std",
"log",
"nalgebra/std",
"once_cell",
"hex-literal",
"hex",
"codec/std",
"parallel",
"poly-multiproof/blst",
"rand/std",
"rand_chacha/std",
"serde",
"serde_json",
"rand_chacha/std",
"rand/std",
"log",
"dusk-plonk/std",
"dusk-bytes",
"avail-core/std",
"sp-arithmetic/std",
"sp-core/std",
"poly-multiproof/blst",
"nalgebra/std",
]

serde = [
"dep:serde",
]
serde = [ "dep:serde" ]

extended-columns = []
maximum-block-size = []
Expand Down
16 changes: 7 additions & 9 deletions kate/recovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,17 @@ hex = "0.4"
test-case = "1.2.3"

[features]
default = ["std"]
default = [ "std" ]
std = [
"avail-core/std",
"dusk-bytes",
"dusk-plonk/std",
"once_cell",
"rand/std",
"rand_chacha/std",
"serde",
"sp-arithmetic/std",
"sp-std/std",
"avail-core/std",
"rand/std",
"rand_chacha/std",
"dusk-bytes",
"dusk-plonk/std",
]

serde = [
"dep:serde",
]
serde = [ "dep:serde" ]
14 changes: 6 additions & 8 deletions nomad/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@ once_cell = { version = "1.8.0", optional = true }
serde = { version = "1.0.188", default-features = false, features = ["derive"], optional = true }

[features]
default = ["std"]
default = [ "std" ]
std = [
"serde",
"ethers-signers",
"once_cell",
"codec/std",
"ethers-signers",
"nomad-core/std",
"nomad-signature/std",
"once_cell",
"scale-info/std",
"nomad-core/std",
"serde",
"sp-core/std",
"sp-runtime/std",
]
serde = [
"dep:serde",
]
serde = [ "dep:serde" ]
12 changes: 5 additions & 7 deletions nomad/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,17 @@ tiny-keccak = { version = "2.0.2", default-features = false, features = ["keccak
async-trait = "0.1.42"

[features]
default = ["std"]
default = [ "std" ]
std = [
"serde",
"codec/std",
"ethers-core",
"ethers-signers",
"primitive-types/serde",
"nomad-signature/std",
"codec/std",
"primitive-types/serde",
"scale-info/std",
"serde",
"sp-runtime/std",
"sp-std/std",
]
serde = [
"dep:serde",
]
serde = [ "dep:serde" ]
runtime-benchmarks = []
8 changes: 4 additions & 4 deletions nomad/merkle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ optional = true
features = ["derive"]

[features]
default = ["std"]
default = [ "std" ]
std = [
"serde",
"nomad-core/std",
"avail-core/std",
"codec/std",
"frame-support/std",
"nomad-core/std",
"scale-info/std",
"serde",
"sp-core/std",
"frame-support/std",
]
14 changes: 6 additions & 8 deletions nomad/signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ tiny-keccak = { version = "2.0.2", default-features = false, features = ["keccak
byte-slice-cast = "1.2.1"

[features]
default = ["std"]
default = [ "std" ]
std = [
"serde",
"codec/std",
"ethers-core",
"frame-support/std",
"hex/std",
"scale-info/std",
"codec/std",
"serde",
"sp-core/std",
"sp-runtime/std",
"frame-support/std",
"ethers-core",
]
serde = [
"dep:serde",
]
serde = [ "dep:serde" ]