mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Wee tidy to subxt-signer flags (#1200)
* Wee tidy to subxt-signer flags * revert removing subxt?/foo features; need them for CI * make the flag identical to subxt; forgot the 'all' case * subxt-signer needs native flag now when --no-default-features
This commit is contained in:
@@ -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
|
||||
|
||||
+5
-2
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user