Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. regex.workspace = true
  35. strum.workspace = true
  36. strum_macros.workspace = true
  37. nostr-sdk = { workspace = true, optional = true }
  38. zeroize = "1"
  39. web-time.workspace = true
  40. [target.'cfg(target_arch = "wasm32")'.dependencies]
  41. uuid = { workspace = true, features = ["js"], optional = true }
  42. [dev-dependencies]
  43. bip39.workspace = true
  44. nostr-sdk.workspace = true
  45. [lints.rust]
  46. unsafe_code = "forbid"
  47. unreachable_pub = "warn"
  48. missing_debug_implementations = "warn"
  49. missing_docs = "warn"
  50. [lints.clippy]
  51. # pedantic = { level = "warn", priority = -1 }
  52. # nursery = { level = "warn", priority = -1 }
  53. unwrap_used = "deny"
  54. clone_on_ref_ptr = "warn"
  55. # missing_errors_doc = "warn"
  56. missing_panics_doc = "warn"
  57. missing_safety_doc = "warn"
  58. large_enum_variant = "warn"
  59. redundant_else = "warn"
  60. redundant_closure_for_method_calls = "warn"
  61. unneeded_field_pattern = "warn"
  62. use_debug = "warn"
  63. [lints.rustdoc]
  64. bare_urls = "warn"