Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto-common: remove std feature #1680

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/crypto-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ jobs:
toolchain: ${{ matrix.rust }}
- run: cargo check --all-features
- run: cargo test
- run: cargo test --features std
- run: cargo test --all-features
2 changes: 1 addition & 1 deletion aead/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ heapless = { version = "0.8", optional = true, default-features = false }
[features]
default = ["rand_core"]
alloc = []
std = ["alloc", "crypto-common/std"]
std = ["alloc"]
dev = ["blobby"]
getrandom = ["crypto-common/getrandom"]
rand_core = ["crypto-common/rand_core"]
Expand Down
2 changes: 1 addition & 1 deletion cipher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ zeroize = { version = "1.8", optional = true, default-features = false }

[features]
alloc = []
std = ["alloc", "crypto-common/std"]
std = ["alloc"]
block-padding = ["inout/block-padding"]
# Enable random key and IV generation methods
rand_core = ["crypto-common/rand_core"]
Expand Down
1 change: 0 additions & 1 deletion crypto-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ getrandom = { version = "0.2", optional = true }

[features]
getrandom = ["dep:getrandom", "rand_core?/getrandom"]
std = ["getrandom?/std", "rand_core?/std"]

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion digest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rand_core = ["crypto-common/rand_core"] # Enable random key generation methods
oid = ["const-oid"]
zeroize = ["dep:zeroize", "block-buffer?/zeroize"]
alloc = []
std = ["alloc", "crypto-common/std"]
std = ["alloc"]
dev = ["blobby"]

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion universal-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crypto-common = "0.2.0-rc.0"
subtle = { version = "2.4", default-features = false }

[features]
std = ["crypto-common/std"]
std = []

[package.metadata.docs.rs]
all-features = true
Expand Down