diff --git a/.github/workflows/cryptography.yml b/.github/workflows/cryptography.yml index e3639cc57..3d42b3d93 100644 --- a/.github/workflows/cryptography.yml +++ b/.github/workflows/cryptography.yml @@ -35,8 +35,9 @@ jobs: toolchain: ${{ matrix.rust }} target: ${{ matrix.target }} override: true - - run: cargo build --release --target ${{ matrix.target }} - - run: cargo build --all-features --release --target ${{ matrix.target }} + - run: cargo build --no-default-features --release --target ${{ matrix.target }} + - run: cargo build --no-default-features --release --target ${{ matrix.target }} + --features aead,block-cipher,mac,digest,elliptic-curve,signature,stream-cipher,universal-hash test: runs-on: ubuntu-latest strategy: diff --git a/cryptography/Cargo.toml b/cryptography/Cargo.toml index cdef64845..adc1c004a 100644 --- a/cryptography/Cargo.toml +++ b/cryptography/Cargo.toml @@ -21,5 +21,17 @@ signature = { version = "1.2.0", optional = true, default-features = false, path stream-cipher = { version = "0.7", optional = true, path = "../stream-cipher" } universal-hash = { version = "0.4", optional = true, path = "../universal-hash" } +[features] +std = [ + "aead/std", + "block-cipher/std", + "digest/std", + "elliptic-curve/std", + "mac/std", + "signature/std", + "stream-cipher/std", + "universal-hash/std" +] + [package.metadata.docs.rs] all-features = true