From 022eb01a518be3e35032e1b4dadbd255e2680b7d Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 2 Apr 2024 12:45:09 -0600 Subject: [PATCH] async-signature: `no_std` support (#1544) --- .github/workflows/async-signature.yml | 19 +++++++++++++++++++ async-signature/src/lib.rs | 1 + 2 files changed, 20 insertions(+) diff --git a/.github/workflows/async-signature.yml b/.github/workflows/async-signature.yml index 775f402fc..468c2028f 100644 --- a/.github/workflows/async-signature.yml +++ b/.github/workflows/async-signature.yml @@ -18,6 +18,25 @@ env: RUSTFLAGS: "-Dwarnings" jobs: + no_std: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.75.0 # MSRV + - stable + target: + - thumbv7em-none-eabi + - wasm32-unknown-unknown + steps: + - uses: actions/checkout@v4 + - uses: RustCrypto/actions/cargo-cache@master + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + targets: ${{ matrix.target }} + - run: cargo build --target ${{ matrix.target }} --release --no-default-features + test: runs-on: ubuntu-latest strategy: diff --git a/async-signature/src/lib.rs b/async-signature/src/lib.rs index 08633dce8..cef50e8e5 100644 --- a/async-signature/src/lib.rs +++ b/async-signature/src/lib.rs @@ -1,3 +1,4 @@ +#![no_std] #![doc = include_str!("../README.md")] #![doc( html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/8f1a9894/logo.svg",