Skip to content

Commit

Permalink
Add optional std feature to all crates (#217)
Browse files Browse the repository at this point in the history
Disabled-by-default. Closes #204.

This mostly provides a `std::error::Error` impl on `aead::Error`.
  • Loading branch information
tarcieri authored Sep 17, 2020
1 parent a37d5d6 commit a2c032f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions aes-gcm-siv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ zeroize = { version = "1", default-features = false }
default = ["aes", "alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]

[package.metadata.docs.rs]
all-features = true
1 change: 1 addition & 0 deletions aes-gcm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hex-literal = "0.2"
default = ["aes", "alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]

[package.metadata.docs.rs]
all-features = true
Expand Down
1 change: 1 addition & 0 deletions aes-siv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ hex-literal = "0.2"
default = ["alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]

[package.metadata.docs.rs]
all-features = true
1 change: 1 addition & 0 deletions ccm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ hex-literal = "0.2"
default = ["alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]
1 change: 1 addition & 0 deletions chacha20poly1305/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ default = ["alloc", "chacha20", "xchacha20poly1305"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
reduced-round = ["chacha20"]
std = ["aead/std", "alloc"]
xchacha20poly1305 = ["chacha20/xchacha20"]

[package.metadata.docs.rs]
Expand Down
1 change: 1 addition & 0 deletions crypto_box/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ rand = "0.7"
default = ["alloc", "u64_backend"]
alloc = ["xsalsa20poly1305/alloc"]
heapless = ["xsalsa20poly1305/heapless"]
std = ["xsalsa20poly1305/std"]
u32_backend = ["x25519-dalek/u32_backend"]
u64_backend = ["x25519-dalek/u64_backend"]
1 change: 1 addition & 0 deletions eax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ aead = { version = "0.3", features = ["dev"], default-features = false }
default = ["alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]

[package.metadata.docs.rs]
all-features = true
Expand Down
1 change: 1 addition & 0 deletions mgm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ hex-literal = "0.2"
default = ["alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]
1 change: 1 addition & 0 deletions xsalsa20poly1305/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ zeroize = { version = "1", default-features = false }
default = ["alloc", "rand_core"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
std = ["aead/std", "alloc"]

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

0 comments on commit a2c032f

Please sign in to comment.