Skip to content

Commit 728ab64

Browse files
committed
ssh-key: temporarily remove ed25519 feature
Again: redo of #249 for another prerelease. This makes it possible to publish a prerelease, which we otherwise can't do since we're sourcing `ed25519-dalek` from this git branch: dalek-cryptography/curve25519-dalek#676 This commit can be reverted immediately after we publish a crate release.
1 parent 2859fe4 commit 728ab64

File tree

9 files changed

+12
-72
lines changed

9 files changed

+12
-72
lines changed

.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,ed25519,getrandom,p256,p384,p521,rsa,tdes,std,ppk --release
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
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,rsa,tdes,std,ppk --release
91+
- run: cargo hack test --feature-powerset --exclude-features default,dsa,ed25519,getrandom,p256,p384,p521,ppk,rsa,tdes,std,ppk --release # TODO: ed25519
9292
- run: cargo test --release
9393
- run: cargo test --release --features getrandom
9494
- run: cargo test --release --features std

Cargo.lock

Lines changed: 0 additions & 66 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 = ["ed25519", "p256", "p384", "p521", "rsa"] # NOTE: `dsa` is obsolete/weak
54+
crypto = ["p256", "p384", "p521", "rsa"] # ... "ed25519" ] 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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
89
#![forbid(unsafe_code)]
910
#![warn(
1011
clippy::alloc_instead_of_core,

ssh-key/tests/certificate.rs

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

56
use hex_literal::hex;
67
use ssh_key::{Algorithm, Certificate};

ssh-key/tests/certificate_builder.rs

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

ssh-key/tests/private_key.rs

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

ssh-key/tests/sshsig.rs

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

56
use hex_literal::hex;
67
use ssh_key::{Algorithm, HashAlg, LineEnding, PublicKey, SshSig};

0 commit comments

Comments
 (0)