diff --git a/.github/workflows/x509-tsp.yml b/.github/workflows/x509-tsp.yml index d7a923b1b..84f739b3f 100644 --- a/.github/workflows/x509-tsp.yml +++ b/.github/workflows/x509-tsp.yml @@ -24,6 +24,25 @@ env: RUSTFLAGS: "-Dwarnings" jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.65.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + targets: ${{ matrix.target }} + - uses: RustCrypto/actions/cargo-hack-install@master + - run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features arbitrary,builder,default,std + minimal-versions: uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master with: diff --git a/x509-tsp/Cargo.toml b/x509-tsp/Cargo.toml index a30fa1c43..429516af6 100644 --- a/x509-tsp/Cargo.toml +++ b/x509-tsp/Cargo.toml @@ -15,8 +15,8 @@ rust-version = "1.65" [dependencies] der = { version = "0.7.6", features = ["alloc", "derive", "oid", "pem"] } -cms = { version = "0.2.1", features = ["alloc", "std"] } -cmpv2 = { version = "0.2", features = ["alloc", "std"] } +cms = { version = "0.2.1", features = ["alloc"] } +cmpv2 = { version = "0.2", features = ["alloc"] } x509-cert = { version = "0.2.4", default-features = false } [dev-dependencies] diff --git a/x509-tsp/src/lib.rs b/x509-tsp/src/lib.rs index d849c345a..9ea4e1b65 100644 --- a/x509-tsp/src/lib.rs +++ b/x509-tsp/src/lib.rs @@ -1,3 +1,13 @@ +#![no_std] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![doc = include_str!("../README.md")] +#![doc( + html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", + html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" +)] + +extern crate alloc; + use cmpv2::status::PkiStatusInfo; use cms::content_info::ContentInfo; use der::{ @@ -131,6 +141,7 @@ pub struct Accuracy { #[cfg(test)] mod tests { use super::*; + use alloc::string::ToString; use cmpv2::status::*; use cms::signed_data::SignedData; use der::oid::db::rfc5912::ID_SHA_256;