diff --git a/signer/src/sr25519.rs b/signer/src/sr25519.rs index 251aa92ab2..594878ac7a 100644 --- a/signer/src/sr25519.rs +++ b/signer/src/sr25519.rs @@ -3,6 +3,10 @@ // see LICENSE for license details. //! An sr25519 keypair implementation. +//! +//! **Note:** This implementation requires the `getrandom` dependency to obtain randomness, +//! and will not compile on targets that it does not support. See the supported `getrandom` +//! targets here: . use core::str::FromStr; diff --git a/signer/tests/no-std/Cargo.toml b/signer/tests/no-std/Cargo.toml index b901e04dc3..3b390d42e8 100644 --- a/signer/tests/no-std/Cargo.toml +++ b/signer/tests/no-std/Cargo.toml @@ -5,9 +5,6 @@ edition = "2021" publish = false [dev-dependencies] -wasm-bindgen-test = "0.3.24" -tracing-wasm = "0.2.1" -console_error_panic_hook = "0.1.7" # This crate is not a part of the workspace, because we want to # enable the "web" feature here but don't want it enabled as part diff --git a/signer/tests/no-std/tests/no_std.rs b/signer/tests/no-std/tests/no_std.rs index 2feb8b7eb8..b6dbc68e54 100644 --- a/signer/tests/no-std/tests/no_std.rs +++ b/signer/tests/no-std/tests/no_std.rs @@ -1,4 +1,4 @@ -#[no_std] +#![no_std] use subxt_signer::{ecdsa, eth, sr25519}; diff --git a/testing/no-std-tests/src/main.rs b/testing/no-std-tests/src/main.rs index f0cf92daa3..8ae5078b9a 100644 --- a/testing/no-std-tests/src/main.rs +++ b/testing/no-std-tests/src/main.rs @@ -42,6 +42,7 @@ fn compile_test() { subxt_metadata::Metadata::decode(&mut &METADATA[..]).expect("should be valid metadata"); // Subxt signer compiles (though nothing much works on this particular nostd target...): + // Supported targets: use core::str::FromStr; let _ = subxt_signer::SecretUri::from_str("//Alice/bar");