Cargo.toml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [package]
  2. name = "cashu"
  3. version.workspace = true
  4. edition.workspace = true
  5. authors = ["CDK Developers"]
  6. description = "Cashu shared types and crypto utilities, used as the foundation for the CDK and their crates"
  7. homepage = "https://github.com/cashubtc/cdk"
  8. repository = "https://github.com/cashubtc/cdk.git"
  9. rust-version.workspace = true # MSRV
  10. license.workspace = true
  11. readme = "README.md"
  12. [features]
  13. default = ["mint", "wallet"]
  14. swagger = ["dep:utoipa"]
  15. mint = []
  16. wallet = []
  17. nostr = ["dep:nostr-sdk"]
  18. bench = []
  19. [dependencies]
  20. uuid.workspace = true
  21. bitcoin.workspace = true
  22. cbor-diag.workspace = true
  23. ciborium.workspace = true
  24. once_cell.workspace = true
  25. serde.workspace = true
  26. lightning-invoice.workspace = true
  27. lightning.workspace = true
  28. thiserror.workspace = true
  29. tracing.workspace = true
  30. url.workspace = true
  31. utoipa = { workspace = true, optional = true }
  32. serde_json.workspace = true
  33. serde_with.workspace = true
  34. strum.workspace = true
  35. strum_macros.workspace = true
  36. nostr-sdk = { workspace = true, optional = true }
  37. zeroize = "1"
  38. web-time.workspace = true
  39. [target.'cfg(target_arch = "wasm32")'.dependencies]
  40. uuid = { workspace = true, features = ["js"], optional = true }
  41. [dev-dependencies]
  42. bip39.workspace = true
  43. nostr-sdk.workspace = true
  44. [lints.rust]
  45. unsafe_code = "forbid"
  46. unreachable_pub = "warn"
  47. missing_debug_implementations = "warn"
  48. missing_docs = "warn"
  49. [lints.clippy]
  50. # pedantic = { level = "warn", priority = -1 }
  51. # nursery = { level = "warn", priority = -1 }
  52. unwrap_used = "deny"
  53. clone_on_ref_ptr = "warn"
  54. # missing_errors_doc = "warn"
  55. missing_panics_doc = "warn"
  56. missing_safety_doc = "warn"
  57. large_enum_variant = "warn"
  58. redundant_else = "warn"
  59. redundant_closure_for_method_calls = "warn"
  60. unneeded_field_pattern = "warn"
  61. use_debug = "warn"
  62. [lints.rustdoc]
  63. bare_urls = "warn"