build(native): rename lib to craftlabs_auth_core, add crypto deps

feat(rust): extend error codes for selfhosted licensing (crypto/license state variants)
This commit is contained in:
2026-05-18 22:02:28 +08:00
parent 9bb5cbba64
commit b7a947409a
2 changed files with 82 additions and 71 deletions
+8 -1
View File
@@ -6,13 +6,20 @@ description = "CraftLabs 授权核心库 — Rust 实现,导出 craft_* C ABI
[lib]
crate-type = ["cdylib", "staticlib"]
name = "craftlabs_auth_bitanswer"
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"] }
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_System_Diagnostics_Debug"], optional = true }