pablo ecd1be3b9e
feat: prepare for logos module consumption
- add flake.nix for Nix builds (cdylib + header generation)
- switch crate-type from dylib to cdylib for C FFI
- replace placeholder delivery addresses with real derived addresses
- switch FFI inputs from owned to borrowed
- expose local_delivery_address() so caller knows where to subscribe
2026-03-27 10:11:57 +01:00

33 lines
770 B
TOML

[package]
name = "libchat"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["rlib","staticlib","cdylib"]
[features]
headers = ["safer-ffi/headers"]
[[bin]]
name = "generate-libchat-headers"
required-features = ["headers"]
[dependencies]
base64 = "0.22"
blake2.workspace = true
chat-proto = { git = "https://github.com/logos-messaging/chat_proto" }
crypto = { path = "../crypto" }
double-ratchets = { path = "../double-ratchets" }
hex = "0.4.3"
prost = "0.14.1"
rand_core = { version = "0.6" }
safer-ffi = "0.1.13"
thiserror = "2.0.17"
x25519-dalek = { version = "2.0.1", features = ["static_secrets", "reusable_secrets", "getrandom"] }
storage = { path = "../storage" }
zeroize = { version = "1.8.2", features = ["derive"] }
[dev-dependencies]
tempfile = "3"