From 3acd7fe1b9ed7d9de0763a031945c393a898b523 Mon Sep 17 00:00:00 2001 From: "Jan Winkelmann (keks)" Date: Thu, 22 Aug 2024 09:55:32 +0200 Subject: [PATCH] add metadata and readme --- hpke-rs-tests/Cargo.toml | 5 +++++ hpke-rs-tests/Readme.md | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 hpke-rs-tests/Readme.md diff --git a/hpke-rs-tests/Cargo.toml b/hpke-rs-tests/Cargo.toml index 44b5f06..f2cac0d 100644 --- a/hpke-rs-tests/Cargo.toml +++ b/hpke-rs-tests/Cargo.toml @@ -1,7 +1,12 @@ [package] name = "hpke-rs-tests" version = "0.1.0" +authors = [ "Cryspen" ] edition = "2021" +license = "MPL-2.0" +readme = "Readme.md" +description = "Tests for crypto providers" +repository = "https://github.com/franziskuskiefer/hpke-rs" [dependencies] hpke-rs = { version = "0.2.0", features = [ diff --git a/hpke-rs-tests/Readme.md b/hpke-rs-tests/Readme.md new file mode 100644 index 0000000..15d7145 --- /dev/null +++ b/hpke-rs-tests/Readme.md @@ -0,0 +1,19 @@ +# Tests for Crypto Providers + +This crate exposes macros that define crypto provider test functions. + +## Usage + +```rust +struct MyCryptoProvider; + +impl hpke_rs_crypto::CryptoProvider for MyCryptoProvider { + // ... +} + +#[cfg(tests)] +mod tests { + hpke_rs_tests::test_funs!(MyCryptoProvider); + hpke_rs_tests::kat_fun!(MyCryptoProvider); +} +``` \ No newline at end of file