[package] name = "craft-core" version = "1.0.0" edition = "2021" description = "CraftLabs 授权核心库 — Rust 实现,导出 craft_* C ABI。目标平台:Linux(主)> Windows(次)> macOS(最低)" [lib] crate-type = ["cdylib", "staticlib", "lib"] name = "craftlabs_auth_core" [dependencies] obfstr = "0.4" sha2 = "0.10" libloading = "0.8" once_cell = "1" rsa = { version = "0.9", features = ["sha2"] } aes-gcm = "0.10" hkdf = "0.12" base64 = "0.22" serde = { version = "1", features = ["derive"] } serde_json = "1" chrono = { version = "0.4", features = ["serde"] } reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false } tokio = { version = "1", features = ["rt", "macros"] } hex = "0.4" hmac = "0.12" rand = "0.8" [target.'cfg(target_os = "windows")'.dependencies] windows-sys = { version = "0.52", features = ["Win32_System_Diagnostics_Debug"], optional = true } [dev-dependencies] rand = "0.8" [build-dependencies] sha2 = "0.10" [features] default = ["security-hardening"] security-hardening = []