Skip to content

Commit 085540e

Browse files
committed
Revert "ssh-key: temporarily remove ed25519 feature (#366)"
This reverts commit 20e7954. Now that #367 is merged and `ssh-key` v0.7.0-rc.0 is released, restores the `ed25519` feature.
1 parent ba6cca0 commit 085540e

9 files changed

Lines changed: 72 additions & 12 deletions

File tree

.github/workflows/ssh-key.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
toolchain: ${{ matrix.rust }}
7373
target: ${{ matrix.target }}
7474
- uses: RustCrypto/actions/cargo-hack-install@master
75-
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features default,dsa,getrandom,p256,p384,p521,ppk,rsa,tdes,std --release # TODO: ed25519
75+
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features default,dsa,ed25519,getrandom,p256,p384,p521,rsa,tdes,std,ppk --release
7676
- run: cargo build --target ${{ matrix.target }} --no-default-features --features alloc,crypto,dsa,encryption,tdes --release
7777

7878
test:
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
toolchain: ${{ matrix.rust }}
9090
- uses: RustCrypto/actions/cargo-hack-install@master
91-
- run: cargo hack test --feature-powerset --exclude-features default,dsa,ed25519,getrandom,p256,p384,p521,ppk,rsa,tdes,std,ppk --release # TODO: ed25519
91+
- run: cargo hack test --feature-powerset --exclude-features default,dsa,ed25519,getrandom,p256,p384,p521,rsa,tdes,std,ppk --release
9292
- run: cargo test --release
9393
- run: cargo test --release --features getrandom
9494
- run: cargo test --release --features std

Cargo.lock

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ ssh-encoding = { path = "./ssh-encoding" }
1818
ssh-key = { path = "./ssh-key" }
1919

2020
# https://github.com/dalek-cryptography/curve25519-dalek/pull/676
21-
#ed25519-dalek = { git = "https://github.com/dalek-cryptography/curve25519-dalek.git", branch = "rustcrypto-new-releases" }
21+
ed25519-dalek = { git = "https://github.com/dalek-cryptography/curve25519-dalek.git", branch = "rustcrypto-new-releases" }

ssh-key/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ zeroize = { version = "1", default-features = false }
2929
argon2 = { version = "0.6.0-rc.0", optional = true, default-features = false, features = ["alloc"] }
3030
bcrypt-pbkdf = { version = "0.11.0-rc.0", optional = true, default-features = false, features = ["alloc"] }
3131
dsa = { version = "0.7.0-rc.0", optional = true, default-features = false, features = ["hazmat"] }
32-
#ed25519-dalek = { version = "=2.2.0-pre", optional = true, default-features = false }
32+
ed25519-dalek = { version = "=2.2.0-pre", optional = true, default-features = false }
3333
hex = { version = "0.4", optional = true, default-features = false, features = ["alloc"] }
3434
hmac = { version = "0.13.0-rc.0", optional = true }
3535
home = { version = "0.5", optional = true }
@@ -51,10 +51,10 @@ default = ["ecdsa", "rand_core", "std"]
5151
alloc = ["encoding/alloc", "signature/alloc", "zeroize/alloc", ]
5252
std = ["alloc", "p256?/std", "p384?/std", "p521?/std", "rsa?/std", "sec1?/std", "dep:home"]
5353

54-
crypto = ["p256", "p384", "p521", "rsa"] # ... "ed25519" ] NOTE: `dsa` is obsolete/weak
54+
crypto = ["ed25519", "p256", "p384", "p521", "rsa"] # NOTE: `dsa` is obsolete/weak
5555
dsa = ["dep:dsa", "dep:sha1", "alloc", "encoding/bigint", "signature/rand_core"]
5656
ecdsa = ["dep:sec1"]
57-
#ed25519 = ["dep:ed25519-dalek", "rand_core"]
57+
ed25519 = ["dep:ed25519-dalek", "rand_core"]
5858
encryption = [
5959
"dep:bcrypt-pbkdf",
6060
"alloc",

ssh-key/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
66
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
77
)]
8-
#![allow(unexpected_cfgs)] // `ed25519` is temporarily disabled
98
#![forbid(unsafe_code)]
109
#![warn(
1110
clippy::alloc_instead_of_core,

ssh-key/tests/certificate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! OpenSSH certificate tests.
22
33
#![cfg(feature = "alloc")]
4-
#![allow(unexpected_cfgs)] // `ed25519` is temporarily disabled
54

65
use hex_literal::hex;
76
use ssh_key::{Algorithm, Certificate};

ssh-key/tests/certificate_builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Certificate builder tests.
22
3-
#![allow(unexpected_cfgs)] // `ed25519` is temporarily disabled
43
#![cfg(all(
54
feature = "alloc",
65
feature = "rand_core",

ssh-key/tests/private_key.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! SSH private key tests.
22
3-
#![allow(unexpected_cfgs)] // `ed25519` is temporarily disabled
4-
53
use hex_literal::hex;
64
use ssh_key::{Algorithm, Cipher, KdfAlg, PrivateKey};
75

ssh-key/tests/sshsig.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! `sshsig` signature tests.
22
33
#![cfg(feature = "alloc")]
4-
#![allow(unexpected_cfgs)] // `ed25519` is temporarily disabled
54

65
use hex_literal::hex;
76
use ssh_key::{Algorithm, HashAlg, LineEnding, PublicKey, SshSig};

0 commit comments

Comments
 (0)