Cargo.toml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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"] }
  17. cdk-sqlite = { workspace = true }
  18. cdk-postgres = { workspace = true, optional = true }
  19. futures = { workspace = true }
  20. once_cell = { workspace = true }
  21. rand = { workspace = true }
  22. serde = { workspace = true, features = ["derive", "rc"] }
  23. serde_json = { workspace = true }
  24. thiserror = { workspace = true }
  25. tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }
  26. uniffi = { version = "0.29", features = ["cli", "tokio"] }
  27. url = { workspace = true }
  28. uuid = { workspace = true, features = ["v4"] }
  29. [features]
  30. default = ["postgres"]
  31. # Enable Postgres-backed wallet database support in FFI
  32. postgres = ["cdk-postgres"]
  33. [dev-dependencies]
  34. [[bin]]
  35. name = "uniffi-bindgen"
  36. path = "src/bin/uniffi-bindgen.rs"