cfun 0.2.11

Tidy up common functions
Documentation
[package]

name = "cfun"

version = "0.2.11"

edition = "2021"

authors = ["ys928 <it_yushi@163.com>"]

description = "Tidy up common functions"

license = "MIT"

repository = "https://github.com/ys928/cfun"

readme = "readme.md"

documentation = "https://cfun-pearl.vercel.app/cfun"



[dependencies]

tracing = { version = "^0.1" }

tracing-subscriber = { version = "^0.3", features = [

    "chrono",

    "time",

], optional = true }

tracing-appender = { version = "^0.2", optional = true }

md-5 = { version = "^0.10", optional = true }

sha2 = { version = "^0.10", optional = true }

bzip2 = { version = "^0.5.2", optional = true }

anyhow = "^1.0.97"

sysinfo = { version = "^0.34", optional = true }

tokio = { version = "^1.44.0", features = ["full"], optional = true }

base64 = { version = "^0.22", optional = true }

clap = { version = "4.5.37", optional = true }

anstyle = { version = "^1.0", optional = true }

tokio-util = { version = "^0.7", features = ["codec"], optional = true }

futures = { version = "^0.3", optional = true }

bytes = "^1.10.1"

libloading = { version = "^0.8.6", optional = true }

reqwest = { version = "^0.12.15", default-features = false, features = [

    "blocking",

    "rustls-tls",

    "json",

], optional = true }

serde = { version = "1.0.219", features = ["derive"] }

chardet = { version = "0.2.4", optional = true }

encoding_rs = { version = "0.8.35", optional = true }

rsa = { version = "0.9.8", optional = true }

aes = { version = "0.8", optional = true }

ecb = { version = "0.1.2", optional = true }

rand = { version = "0.9.1", optional = true }

aes-gcm = { version = "0.10", optional = true }



[target.'cfg(windows)'.dependencies.windows]

version = "^0.61.1"

optional = true

features = [

    "Win32_System_Diagnostics_ToolHelp",

    "Win32_System_Services",

    "Win32_System_Com",

    "Win32_UI_Shell",

    "Win32_System_Registry",

    "Win32_UI_WindowsAndMessaging",

    "Win32_System_Threading",

    "Win32_Security",

    "Win32_System_Console",

    "Win32_System_ApplicationInstallationAndServicing",

    "Win32_System_Diagnostics_ToolHelp",

    "Win32_Networking_WinInet",

]



[features]

default = []

net = ["tokio", "tokio-util", "futures", "sysinfo", "reqwest"]

log = ["tracing-subscriber", "tracing-appender"]

dc = ["bzip2"]

crypto = ["md-5", "sha2", "base64", "rsa", "aes", "ecb", "rand", "aes-gcm"]

winapi = ["windows"]

cmd = ["clap", "anstyle", "chardet", "encoding_rs"]

inject = []

dism = ["libloading"]

common = ["net", "log", "dc", "crypto", "cmd"]

full = ["common", "winapi", "dism"]