diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f9aa7872dc..c57dca3b7d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -65,8 +65,8 @@ jobs: - name: Cargo check subxt-signer run: | cargo check -p subxt-signer - cargo check -p subxt-signer --no-default-features --features sr25519 - cargo check -p subxt-signer --no-default-features --features ecdsa + cargo check -p subxt-signer --no-default-features --features sr25519,native + cargo check -p subxt-signer --no-default-features --features ecdsa,native # We can't enable web features here, so no cargo hack. - name: Cargo check subxt-lightclient diff --git a/signer/src/lib.rs b/signer/src/lib.rs index 5287b2b6ce..1e44b43f7b 100644 --- a/signer/src/lib.rs +++ b/signer/src/lib.rs @@ -39,5 +39,8 @@ pub use secrecy::{ExposeSecret, SecretString}; // DeriveJunctions are the "path" part of these SecretUris. pub use crypto::{DeriveJunction, SecretUri, SecretUriError, DEV_PHRASE}; -#[cfg(all(feature = "subxt", not(any(feature = "web", feature = "native"))))] -compile_error!("subxt-signer: When using the 'subxt' feature, exactly one of the 'web' and 'native' features should be used."); +#[cfg(any( + all(feature = "web", feature = "native"), + not(any(feature = "web", feature = "native")) +))] +compile_error!("subxt-signer: exactly one of the 'web' and 'native' features should be used.");