Cargo.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [package]
  2. name = "cdk-ffi"
  3. version.workspace = true
  4. edition.workspace = true
  5. license.workspace = true
  6. repository.workspace = true
  7. rust-version.workspace = true
  8. description = "FFI bindings for cdk wallet"
  9. homepage = "https://github.com/cashubtc/cdk"
  10. [lib]
  11. crate-type = ["cdylib", "staticlib", "rlib"]
  12. name = "cdk_ffi"
  13. [dependencies]
  14. async-trait = { workspace = true }
  15. bip39 = { workspace = true }
  16. cdk = { workspace = true, default-features = false, features = ["wallet", "auth", "bip353", "nostr"] }
  17. cdk-sqlite = { workspace = true }
  18. cdk-postgres = { workspace = true, optional = true }
  19. cdk-npubcash = { workspace = true, optional = true }
  20. nostr-sdk = { workspace = true, optional = true }
  21. futures = { workspace = true }
  22. once_cell = { workspace = true }
  23. rand = { workspace = true }
  24. cdk-sql-common = { workspace = true }
  25. serde = { workspace = true, features = ["derive", "rc"] }
  26. serde_json = { workspace = true }
  27. thiserror = { workspace = true }
  28. tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }
  29. uniffi = { version = "0.29", features = ["cli", "tokio"] }
  30. url = { workspace = true }
  31. uuid = { workspace = true, features = ["v4"] }
  32. cdk-common.workspace = true
  33. tracing.workspace = true
  34. tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
  35. [target.'cfg(target_os = "android")'.dependencies]
  36. android_logger = "0.15"
  37. log = "0.4"
  38. [features]
  39. default = ["postgres", "npubcash"]
  40. # Enable Postgres-backed wallet database support in FFI
  41. postgres = ["cdk-postgres"]
  42. # Enable NpubCash client bindings
  43. npubcash = ["cdk-npubcash", "nostr-sdk"]
  44. [dev-dependencies]
  45. [[bin]]
  46. name = "uniffi-bindgen"
  47. path = "src/bin/uniffi-bindgen.rs"
  48. [lints]
  49. workspace = true