apollo-configuration 0.4.0

A typed, friendly configuration system for Apollo products.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "apollo-configuration"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A typed, friendly configuration system for Apollo products."
readme = false
keywords = [
    "apollo-platform",
    "config",
    "configuration",
    "yaml",
]
categories = ["config"]
license = "Elastic-2.0"
repository = "https://github.com/apollographql/apollo-platform-rs"
resolver = "2"

[features]
default = [
    "duration",
    "grpc",
    "http",
    "regex",
    "url",
]
duration = ["dep:humantime-serde"]
grpc = ["dep:tonic"]
http = ["dep:http"]
regex = ["dep:regex"]
url = [
    "schemars/url2",
    "dep:url",
]

[lib]
name = "apollo_configuration"
path = "src/lib.rs"

[[example]]
name = "custom_validation"
path = "examples/custom_validation.rs"

[[example]]
name = "router_config"
path = "examples/router_config.rs"

[[test]]
name = "defaults"
path = "tests/defaults.rs"

[[test]]
name = "enums"
path = "tests/enums.rs"

[[test]]
name = "root"
path = "tests/root.rs"

[[test]]
name = "structs"
path = "tests/structs.rs"

[[test]]
name = "validation"
path = "tests/validation.rs"

[dependencies.apollo-configuration-macros]
version = "0.1.1"

[dependencies.apollo-errors]
version = "0.7.0"

[dependencies.apollo-redaction]
version = "0.2.0"
features = ["schemars"]

[dependencies.derive_more]
version = "2"
features = [
    "deref",
    "from",
    "from_str",
    "display",
]
default-features = false

[dependencies.http]
version = "1"
optional = true

[dependencies.humantime-serde]
version = "1"
optional = true

[dependencies.jsonschema]
version = "0.45"
default-features = false

[dependencies.miette]
version = "7.0"
features = ["fancy"]

[dependencies.regex]
version = "1"
optional = true

[dependencies.saphyr]
version = "=0.0.7-apollo.0"
package = "apollo-saphyr"

[dependencies.saphyr-parser]
version = "=0.0.7-apollo.0"
package = "apollo-saphyr-parser"

[dependencies.schemars]
version = "1"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_path_to_error]
version = "0.1.20"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.shellexpand]
version = "3.1.1"

[dependencies.tonic]
version = "0.14"
optional = true

[dependencies.url]
version = "2"
features = ["serde"]
optional = true

[dev-dependencies.insta]
version = "1.0"
features = [
    "json",
    "yaml",
]

[dev-dependencies.miette]
version = "7.0"
features = [
    "fancy",
    "fancy",
]

[dev-dependencies.tinystr]
version = "0.8.2"
features = ["serde"]