Skip to content

Commit 64882e0

Browse files
committed
fix(ci): use crates.io paserk dependency instead of local path
The CI was failing because paserk was referenced via a local path (../paserk) that doesn't exist in the GitHub Actions environment. - Update paserk dependency to version 0.4.0 from crates.io - Add #[allow(deprecated)] for K1 re-export to maintain backward compatibility while acknowledging RUSTSEC-2023-0071
1 parent 551d0b8 commit 64882e0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ zeroize = { version = "1.4", features = ["zeroize_derive"] }
7777
time = { version = "0.3", features = ["parsing", "formatting"] }
7878
rand_core = "0.9"
7979
digest = "0.10"
80-
paserk = { version = "0.1.0", path = "../paserk", optional = true }
80+
paserk = { version = "0.4.0", optional = true }
8181

8282
[lints.rust]
8383
unsafe_code = "forbid"

src/paserk.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ pub use paserk::core::types::{
3737
PaserkLocal, PaserkLocalId, PaserkLocalPw, PaserkLocalWrap, PaserkPublic, PaserkPublicId,
3838
PaserkSeal, PaserkSecret, PaserkSecretId, PaserkSecretPw, PaserkSecretWrap,
3939
};
40+
// K1 is deprecated due to RUSTSEC-2023-0071 (Marvin Attack on RSA) but re-exported
41+
// for users who need backward compatibility with v1_public_insecure tokens.
42+
#[allow(deprecated)]
4043
pub use paserk::core::version::{K1, K2, K3, K4, PaserkVersion};
4144

4245
// Re-export Argon2 params when using V2 or V4 (which support Argon2)

0 commit comments

Comments
 (0)