From aa6c4f325d49ad15c6286bfc81951fcd495e27aa Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Wed, 18 Oct 2023 00:30:26 +0800 Subject: [PATCH] feat: fix compile imcompat warnning --- Cargo.lock | 12 +++--------- Cargo.toml | 3 +++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b0b7239..0270300 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1352,13 +1352,13 @@ dependencies = [ [[package]] name = "rust-crypto" version = "0.2.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f76d05d3993fd5f4af9434e8e436db163a12a9d40e1a58a726f27a01dfd12a2a" +source = "git+https://github.com/jht5945/rust-crypto.git#71627b888929297f3eb0b5c685f516aa0764d540" dependencies = [ + "base64", "gcc", + "hex", "libc", "rand 0.3.23", - "rustc-serialize", "time 0.1.45", ] @@ -1380,12 +1380,6 @@ version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" -[[package]] -name = "rustc-serialize" -version = "0.3.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" - [[package]] name = "rustc_version" version = "0.4.0" diff --git a/Cargo.toml b/Cargo.toml index 10453ba..ecb50ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,9 @@ x509-parser = "0.15" yubikey = { version = "0.8", features = ["untested"] } zeroize = "1.6" +[patch.crates-io] +rust-crypto = { git="https://github.com/jht5945/rust-crypto.git" } + [profile.release] codegen-units = 1 opt-level = 'z'