- Added `argon2` v0.5 dependency to `spire_ffi/Cargo.toml` - Implemented `argon2id_derive` FFI function in `spire_ffi/src/lib.rs` with C-ABI. - Added Deno FFI binding `deriveArgon2idKey` in `server/spire_ffi.ts` with `nonblocking: true` to prevent stalling the event loop. - Pre-allocates output buffer on the Deno side as the standard FFI pattern. - Included fallback mock behavior when `libspire_ffi.so` is not loaded, returning a 32-byte 0xaa filled array. - Updated unit tests in `server/spire_ffi.test.ts` to test mock usage and successful generation. Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
26 lines
530 B
TOML
26 lines
530 B
TOML
[package]
|
|
name = "spire_ffi"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
argon2 = { version = "0.5", features = ["std"] }
|
|
tonic = "0.11"
|
|
prost = "0.12"
|
|
tokio = { version = "1.37", features = ["full"] }
|
|
tokio-stream = { version = "0.1", features = ["net"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
hyper = "1.3"
|
|
hyper-util = "0.1"
|
|
tower = "0.4"
|
|
tower-service = "0.3"
|
|
prost-types = "0.12.6"
|
|
|
|
[build-dependencies]
|
|
tonic-build = "0.11"
|