From 9a716af40002a44906b6efe6be6c6e4ade7348df Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 24 Jan 2024 14:41:08 +0800 Subject: [PATCH] ruaaaa --- ica-rs/Cargo.lock | 11 +++++++++++ ica-rs/Cargo.toml | 1 + ica-rs/src/main.rs | 1 + 3 files changed, 13 insertions(+) diff --git a/ica-rs/Cargo.lock b/ica-rs/Cargo.lock index 0b815533..44beae4d 100644 --- a/ica-rs/Cargo.lock +++ b/ica-rs/Cargo.lock @@ -154,6 +154,16 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "colored" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" +dependencies = [ + "lazy_static", + "windows-sys 0.48.0", +] + [[package]] name = "const-oid" version = "0.9.5" @@ -540,6 +550,7 @@ dependencies = [ name = "ica-rs" version = "0.1.0" dependencies = [ + "colored", "ed25519", "ed25519-dalek", "hex", diff --git a/ica-rs/Cargo.toml b/ica-rs/Cargo.toml index c33d468f..06582f7b 100644 --- a/ica-rs/Cargo.toml +++ b/ica-rs/Cargo.toml @@ -13,6 +13,7 @@ hex = "0.4.3" rust_socketio = "0.4.4" serde_json = "1.0.108" toml = "0.8.8" +colored = "2.1.0" [patch.crates-io] rust_socketio = { path = "../../../rust-socketio/socketio" } diff --git a/ica-rs/src/main.rs b/ica-rs/src/main.rs index 72f3d09d..3551a3e6 100644 --- a/ica-rs/src/main.rs +++ b/ica-rs/src/main.rs @@ -1,5 +1,6 @@ mod client; +use colored::*; use ed25519_dalek::{Signature, Signer, SigningKey}; use rust_socketio::{ClientBuilder, Event, Payload, RawClient}; use serde_json::Value;