content: [package]
  name = "server_utils"
  version.workspace = true
  edition.workspace = true
  rust-version.workspace = true
  
  [lints]
  workspace = true
  
  [lib]
  doctest = false
  
  [features]
  parsed_key_pair_conversion = []
  # Include session storage in PostgreSQL
  postgres = ["dep:serde_json", "dep:sea-orm", "dep:strum"]
  
  [dependencies]
  anyhow.workspace = true
  axum = { workspace = true, features = ["form", "http1", "json", "query", "tokio", "tower-log", "tracing"] }
  base64.workspace = true
  chrono = { workspace = true, features = ["clock", "serde", "std"] }
  config = { workspace = true, features = ["toml"] }
  http.workspace = true
  nutype.workspace = true
  p256 = { workspace = true, features = ["ecdsa", "pkcs8"] }
  ring.workspace = true
  rustls-pki-types.workspace = true
  serde = { workspace = true, features = ["derive"] }
  serde_with = { workspace = true, features = ["base64"] }
  thiserror.workspace = true
  tokio = { workspace = true, features = ["parking_lot", "rt-multi-thread", "net"] }
  tower-http = { workspace = true, features = ["auth", "cors", "set-header", "trace"] }
  tracing.workspace = true
  tracing-subscriber = { workspace = true, features = [
      "std",
      "fmt",
      "tracing-log",
      "smallvec",
      "parking_lot",
      "env-filter",
      "json",
      "ansi",
  ] }
  url = { workspace = true, features = ["serde"] }
  
  sea-orm = { workspace = true, optional = true, features = [
      "macros",
      "runtime-tokio-rustls",
      "sqlx-postgres",
      "with-chrono",
      "with-json",
  ] }
  serde_json = { workspace = true, optional = true }
  strum = { workspace = true, optional = true, features = ["derive"] }
  
  attestation_data.path = "../../lib/attestation_data"
  crypto.path = "../../lib/crypto"
  hsm = { path = "../../lib/hsm", features = ["settings"] }
  http_utils = { path = "../../lib/http_utils", features = ["server"] }
  openid4vc = { path = "../../lib/openid4vc", features = ["axum"] }
  sd_jwt_vc_metadata.path = "../../lib/sd_jwt_vc_metadata"
  utils = { path = "../../lib/utils" }
  
  [dev-dependencies]
  attestation_data = { path = "../../lib/attestation_data", features = ["generate", "mock"] }
  