diff --git a/Cargo.toml b/Cargo.toml index dfe1447..f71e7f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,15 @@ name = "webauthn_verifier" version = "0.1.0" edition = "2021" +resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -coset = "0.3.8" -p256 = "0.13.2" -passkey = "0.3.0" -sha2 = "0.10.8" +coset = { version = "0.3.0", default-features = false } +p256 = { version = "0.13.2", default-features = false } +passkey = { version = "0.3.0", default-features = false } +sha2 = { version = "0.10.8", default-features = false } [dev-dependencies] -rand = "0.8.5" \ No newline at end of file +rand = "0.8.5" diff --git a/src/lib.rs b/src/lib.rs index c26d092..07e6b86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![no_std] +#![cfg_attr(not(test), no_std)] //! Verifies a WebAuthn response signature. //! //! This function validates the signature of a WebAuthn authentication response by: