chore(deps): switch to owo-colors for fixing RUSTSEC-2021-0145

https://github.com/mackwic/colored/issues/131
This commit is contained in:
Orhun Parmaksız 2023-06-26 16:25:47 +03:00
parent d57d211862
commit 6c5b807b39
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
5 changed files with 11 additions and 36 deletions

39
Cargo.lock generated
View file

@ -41,17 +41,6 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "atty"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
"hermit-abi 0.1.19",
"libc",
"winapi",
]
[[package]] [[package]]
name = "autocfg" name = "autocfg"
version = "1.1.0" version = "1.1.0"
@ -132,17 +121,6 @@ dependencies = [
"winapi", "winapi",
] ]
[[package]]
name = "colored"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd"
dependencies = [
"atty",
"lazy_static",
"winapi",
]
[[package]] [[package]]
name = "const-random" name = "const-random"
version = "0.1.15" version = "0.1.15"
@ -443,15 +421,6 @@ version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]] [[package]]
name = "hermit-abi" name = "hermit-abi"
version = "0.2.6" version = "0.2.6"
@ -750,6 +719,12 @@ dependencies = [
"hashbrown", "hashbrown",
] ]
[[package]]
name = "owo-colors"
version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f"
[[package]] [[package]]
name = "parking_lot" name = "parking_lot"
version = "0.12.1" version = "0.12.1"
@ -1072,10 +1047,10 @@ dependencies = [
name = "systeroid-core" name = "systeroid-core"
version = "0.4.2" version = "0.4.2"
dependencies = [ dependencies = [
"colored",
"dirs-next", "dirs-next",
"lazy_static", "lazy_static",
"log", "log",
"owo-colors",
"parseit", "parseit",
"rayon", "rayon",
"rust-ini", "rust-ini",

View file

@ -18,7 +18,7 @@ sysctl = "0.5.4"
thiserror = "1.0.40" thiserror = "1.0.40"
lazy_static = "1.4.0" lazy_static = "1.4.0"
rayon = "1.7.0" rayon = "1.7.0"
colored = "2.0.0" owo-colors = "3.5.0"
serde = { version = "1.0.164", features = ["derive"] } serde = { version = "1.0.164", features = ["derive"] }
serde_json = "1.0.97" serde_json = "1.0.97"
dirs-next = "2.0.0" dirs-next = "2.0.0"

View file

@ -1,8 +1,8 @@
use crate::error::Result; use crate::error::Result;
use crate::sysctl::r#type::{DisplayType, OutputType}; use crate::sysctl::r#type::{DisplayType, OutputType};
use crate::sysctl::section::Section; use crate::sysctl::section::Section;
use colored::Color;
use ini::Ini; use ini::Ini;
use owo_colors::colored::Color;
use std::collections::HashMap; use std::collections::HashMap;
use std::path::PathBuf; use std::path::PathBuf;

View file

@ -2,7 +2,7 @@ use crate::config::Config;
use crate::error::Result; use crate::error::Result;
use crate::sysctl::r#type::DisplayType; use crate::sysctl::r#type::DisplayType;
use crate::sysctl::section::Section; use crate::sysctl::section::Section;
use colored::*; use owo_colors::colored::*;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::fmt::Write as _; use std::fmt::Write as _;
use std::io::Write; use std::io::Write;

View file

@ -1,4 +1,4 @@
use colored::*; use owo_colors::colored::*;
use std::fmt::Display; use std::fmt::Display;
use std::io::{Result as IoResult, Write}; use std::io::{Result as IoResult, Write};