Cargo.toml 1.2 KB

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