content: [package]
  name = "wallet_provider_persistence"
  version.workspace = true
  edition.workspace = true
  rust-version.workspace = true
  
  [lints]
  workspace = true
  
  [lib]
  doctest = false
  
  [[test]]
  name = "wallet_user"
  path = "tests/wallet_user.rs"
  required-features = ["db_test"]
  
  [[test]]
  name = "wallet_user_keys"
  path = "tests/wallet_user_key.rs"
  required-features = ["db_test"]
  
  [features]
  # Include mock implementations and constructors for testing
  mock = ["mockall", "dep:rand_core", "wallet_provider_domain/mock"]
  # Include and run test that depend on an external PostgreSQL database
  db_test = [
      "dep:ctor",
      "dep:rand_core",
      "dep:thiserror",
      "tokio/macros",
      "dep:tracing-subscriber",
      "sea-orm/debug-print",
      "wallet_provider_domain/mock",
  ]
  
  [dependencies]
  chrono = { workspace = true, features = ["std", "clock"] }
  derive_more = { workspace = true, features = ["from"] }
  p256 = { workspace = true, features = ["ecdsa", "pkcs8", "std"] }
  sea-orm = { workspace = true, features = [
      "macros",
      "runtime-tokio-rustls",
      "sqlx-postgres",
      "with-chrono",
      "with-uuid",
  ] }
  semver = { workspace = true }
  tokio = { workspace = true, features = ["parking_lot", "rt"] }
  tracing.workspace = true
  uuid.workspace = true
  
  ctor = { workspace = true, optional = true }
  mockall = { workspace = true, optional = true }
  rand_core = { workspace = true, optional = true }
  thiserror = { workspace = true, optional = true }
  tracing-subscriber = { workspace = true, optional = true, features = [
      "std",
      "fmt",
      "tracing-log",
      "smallvec",
      "parking_lot",
      "ansi",
  ] }
  
  apple_app_attest.path = "../../lib/apple_app_attest"
  crypto.path = "../../lib/crypto"
  hsm.path = "../../lib/hsm"
  utils.path = "../../lib/utils"
  wallet_account.path = "../wallet_account"
  wallet_provider_database_settings.path = "../database_settings"
  wallet_provider_domain.path = "../domain"
  
  [dev-dependencies]
  assert_matches.workspace = true
  