From b0f0c92a1b339cc43fd2cbe9445c9b1e562dfee1 Mon Sep 17 00:00:00 2001 From: XuNeal Date: Mon, 2 Sep 2024 09:44:18 +0800 Subject: [PATCH] security: remove rustc serialize --- Cargo.lock | 7 ------- imkey-core/ikc-common/Cargo.toml | 1 - imkey-core/ikc-common/src/apdu.rs | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dc6d48c3..b0d0d773 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2001,7 +2001,6 @@ dependencies = [ "prost", "prost-types", "regex", - "rustc-serialize", "secp256k1", "serde", "serde_derive", @@ -3384,12 +3383,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" -[[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/imkey-core/ikc-common/Cargo.toml b/imkey-core/ikc-common/Cargo.toml index a3dc774a..58a4b825 100644 --- a/imkey-core/ikc-common/Cargo.toml +++ b/imkey-core/ikc-common/Cargo.toml @@ -10,7 +10,6 @@ edition = "2018" hyper = { version = "=0.14.23", features = ["full"] } hyper-tls = "=0.5.0" hyper-timeout = "=0.4.1" -rustc-serialize = "=0.3.24" serde = { version = "=1.0.147", features = ["derive"] } serde_derive = "=1.0.147" serde_json = "=1.0.89" diff --git a/imkey-core/ikc-common/src/apdu.rs b/imkey-core/ikc-common/src/apdu.rs index 72de20e2..a7ec71f7 100644 --- a/imkey-core/ikc-common/src/apdu.rs +++ b/imkey-core/ikc-common/src/apdu.rs @@ -1,8 +1,8 @@ use crate::constants::{BTC_AID, COSMOS_AID, EOS_AID, ETH_AID, LC_MAX}; use crate::error::ApduError; +use crate::hex::ToHex; use crate::Result; use hex; -use rustc_serialize::hex::ToHex; pub trait CoinCommonApdu: Default { fn select_applet() -> String;