[package] name = "nigig-site-core" version = "0.1.0" edition = "2021" description = "Nigig Site core — UI-free domain, storage, and hardening contracts (SITE-02..SITE-19)." # This crate is the scope's "Rust core crate ... shared across platforms; # testable; safe" (`construction-site-app-scope.md` §5) and the plan's target # architecture boundary (`EXECUTION_PLAN.md` §6). It deliberately depends on no # UI framework so the domain, repository, crypto, and hardening contracts can be # compiled and unit-tested on a memory-limited runner without building Makepad. # # There is exactly one copy of each module source: the files live here and # `nigig-site` re-exports them, so a production build and a core test build # compile the same bytes. [dependencies] serde = { version = "1", features = ["derive"] } serde_json = "1" chrono = { version = "0.4", features = ["serde"] } uuid = { version = "1", features = ["v4", "serde"] } robius-directories = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" } # Fail-closed authenticated storage (see src/crypto.rs and src/repository.rs). # `aes-gcm` 0.10 does not propagate its optional zeroization into the AES and # GHASH backends, so the feature-only direct pins below deliberately unify those # already-transitive crates with their drop-time zeroization support enabled. aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc", "zeroize"] } aes = { version = "0.8.4", features = ["zeroize"] } ghash = { version = "0.5.1", features = ["zeroize"] } polyval = { version = "0.6.2", features = ["zeroize"] } aead = "0.5" getrandom = "0.2" zeroize = "1" keyring-core = "1" # Use one explicit native credential-store provider per desktop platform. The # all-in-one `keyring` facade is intentionally not linked by production code. [target.'cfg(target_os = "linux")'.dependencies] zbus-secret-service-keyring-store = { version = "1", features = ["crypto-rust"] } [target.'cfg(target_os = "macos")'.dependencies] apple-native-keyring-store = { version = "1", features = ["keychain"] } [target.'cfg(target_os = "windows")'.dependencies] windows-native-keyring-store = { version = "1", default-features = false } windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Storage_FileSystem"] } [target.'cfg(unix)'.dependencies] libc = "0.2"