content: [package]
  name = "http_utils"
  version.workspace = true
  edition.workspace = true
  rust-version.workspace = true
  
  [lints]
  workspace = true
  
  [lib]
  doctest = false
  
  [features]
  # Allow the disclosure return URL and its prefix to use http://
  allow_insecure_url = []
  # Include implementations for http clients
  client = ["dep:reqwest", "serde_with/base64"]
  # Implement the HttpConfig type for insecurely fetching configurations.
  insecure_http_client = ["client"]
  # Include implementations of the axum IntoResponse trait.
  server = ["dep:axum", "dep:axum-server", "dep:tower-http", "serde_with/base64"]
  
  [dependencies]
  cfg-if.workspace = true
  base64 = { workspace = true }
  data-url = { workspace = true }
  derive_more = { workspace = true, features = ["as_ref", "debug", "constructor"] }
  http.workspace = true
  itertools.workspace = true
  mime.workspace = true
  nutype = { workspace = true, features = ["regex", "serde"] }
  regex.workspace = true
  serde = { workspace = true, features = ["derive"] }
  serde_json = { workspace = true, features = ["std"] }
  serde_with.workspace = true
  strum = { workspace = true, features = ["derive"] }
  thiserror.workspace = true
  trait-variant.workspace = true
  url = { workspace = true, features = ["serde"] }
  
  axum = { workspace = true, optional = true, features = ["json"] }
  axum-server = { workspace = true, optional = true, features = ["tls-rustls-no-provider"] }
  reqwest = { workspace = true, optional = true, features = ["rustls-tls-no-provider"] }
  tower-http = { workspace = true, optional = true, features = ["cors"] }
  
  [dev-dependencies]
  rstest.workspace = true
  tokio = { workspace = true, features = ["macros", "rt"] }
  toml.workspace = true
  