diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7154214e..f93962bb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -85,7 +85,7 @@ jobs: override: true - uses: taiki-e/install-action@cargo-hack - uses: Swatinem/rust-cache@v1 - - run: cargo hack clippy --feature-powerset --no-dev-deps + - run: cargo hack check --feature-powerset --no-dev-deps test-stable: runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 86da7f92..36b1f1ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,12 +31,12 @@ all-features = true prost = { version = "0.12", default-features = false, features = ["prost-derive"] } bytes = { version = "1.2", default-features = false } tonic = { version = "0.10", default-features = false, optional = true } -serde = { version = "1.0", default-features = false } +serde = { version = "1.0", default-features = false, optional = true } schemars = { version = "0.8", optional = true } subtle-encoding = { version = "0.5", default-features = false } base64 = { version = "0.21", default-features = false, features = ["alloc"] } flex-error = { version = "0.4", default-features = false } -ics23 = { version = "0.11.0" , default-features = false } +ics23 = { version = "0.11.0", default-features = false } ## Optional: enabled by the `parity-scale-codec` feature parity-scale-codec = { version = "3.0.0", default-features = false, features = ["full"], optional = true } @@ -53,10 +53,10 @@ default-features = false [features] default = ["std", "client"] std = ["prost/std", "bytes/std", "subtle-encoding/std", "base64/std", "flex-error/std", "ics23/std"] -serde = ["ics23/serde"] -client = ["std", "tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] -json-schema = ["std", "schemars"] -server = ["std", "tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] +serde = ["dep:serde", "ics23/serde"] +client = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] +json-schema = ["std", "serde", "dep:schemars"] +server = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"] parity-scale-codec = ["dep:parity-scale-codec", "dep:scale-info"] borsh = ["dep:borsh"] proto-descriptor = []