# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "ndr-ffi"
version = "0.0.100"
authors = ["Martti Malmi"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "UniFFI bindings for nostr-double-ratchet (iOS/Android)"
readme = "README.md"
license = "MIT"
repository = "https://files.iris.to/#/npub1xdhnr9mrv47kkrn95k6cwecearydeh8e895990n3acntwvmgk2dsdeeycm/nostr-double-ratchet"

[features]
bindgen-cli = [
    "uniffi/cargo-metadata",
    "uniffi/cli",
]

[lib]
name = "ndr_ffi"
crate-type = [
    "lib",
    "cdylib",
    "staticlib",
]
path = "src/lib.rs"

[[bin]]
name = "uniffi-bindgen"
path = "src/bin/uniffi-bindgen.rs"
required-features = ["bindgen-cli"]

[[test]]
name = "app_keys_ffi_compat_test"
path = "tests/app_keys_ffi_compat_test.rs"

[[test]]
name = "session_manager_inspection_test"
path = "tests/session_manager_inspection_test.rs"

[[test]]
name = "vectors_tests"
path = "tests/vectors_tests.rs"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.hex]
version = "0.4"
features = ["serde"]

[dependencies.nostr]
version = "0.37"
features = [
    "std",
    "nip44",
]
default-features = false

[dependencies.nostr-double-ratchet]
version = "0.0.100"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.uniffi]
version = "0.28"
default-features = false

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.uniffi]
version = "0.28"
features = ["bindgen-tests"]

[build-dependencies.uniffi]
version = "0.28"
features = ["build"]
