Cargo.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [package]
  2. name = "kuatia"
  3. description = "Append-only, auditable, multi-asset UTXO-style ledger: async resource and atomic commit engine."
  4. version.workspace = true
  5. edition.workspace = true
  6. rust-version.workspace = true
  7. license.workspace = true
  8. repository.workspace = true
  9. authors.workspace = true
  10. keywords.workspace = true
  11. categories.workspace = true
  12. [lints]
  13. workspace = true
  14. [features]
  15. default = []
  16. # The SQL backend, re-exported as `kuatia::sql` so a caller needs no second
  17. # crate. Off by default: an in-memory or custom store should not compile sqlx.
  18. sql = ["dep:kuatia-storage-sql"]
  19. sqlite = ["sql", "kuatia-storage-sql/sqlite"]
  20. postgres = ["sql", "kuatia-storage-sql/postgres"]
  21. # Bubble the i128 Cent backing up to the outermost crate. Enabling
  22. # `kuatia/i128` swaps the integer width across the whole dependency chain.
  23. i128 = [
  24. "kuatia-types/i128",
  25. "kuatia-core/i128",
  26. "kuatia-storage/i128",
  27. "kuatia-storage-sql?/i128",
  28. ]
  29. [dependencies]
  30. kuatia-types.workspace = true
  31. kuatia-core.workspace = true
  32. kuatia-storage.workspace = true
  33. kuatia-storage-sql = { workspace = true, optional = true }
  34. tokio = { workspace = true, features = ["sync", "rt", "macros"] }
  35. serde.workspace = true
  36. serde_json.workspace = true
  37. ciborium.workspace = true
  38. async-trait.workspace = true
  39. tracing.workspace = true
  40. [dev-dependencies]
  41. tokio = { workspace = true, features = ["full"] }
  42. # Listed explicitly because the SQLite-backed ones need the feature that
  43. # re-exports the backend, and naming any example turns autodiscovery off.
  44. [[example]]
  45. name = "quickstart"
  46. [[example]]
  47. name = "create_accounts"
  48. required-features = ["sqlite"]
  49. [[example]]
  50. name = "fund_and_trade"
  51. required-features = ["sqlite"]
  52. [[example]]
  53. name = "withdraw"
  54. required-features = ["sqlite"]
  55. [[example]]
  56. name = "overdraft"
  57. required-features = ["sqlite"]
  58. [[example]]
  59. name = "inflight_hold"
  60. required-features = ["sqlite"]
  61. [[example]]
  62. name = "escrow"
  63. required-features = ["sqlite"]