# 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 = "rpkl"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings and codegen for Apple's Pkl configuration language"
readme = "README.md"
keywords = [
    "pkl",
    "apple",
    "codegen",
]
license = "MIT"
repository = "https://github.com/z-jxy/rpkl"

[features]
build-script = ["codegen"]
codegen = ["convert_case"]
codegen-experimental = ["codegen"]
default = []
indexmap = ["dep:indexmap"]
trace = ["tracing"]

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

[[example]]
name = "codegen"
path = "examples/codegen/codegen.rs"
required-features = ["codegen-experimental"]

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

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

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

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

[[example]]
name = "external_resource_reader"
path = "examples/external_resource_reader/reader.rs"

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

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

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

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

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

[dependencies.convert_case]
version = "0.11.0"
optional = true

[dependencies.indexmap]
version = "2.13.0"
features = ["serde"]
optional = true

[dependencies.rmp-serde]
version = "1.3.1"

[dependencies.rmpv]
version = "1.3.1"

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

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.22"
optional = true

[dev-dependencies.regex]
version = "1.11.1"

[dev-dependencies.serde_json]
version = "1.0.117"

[target."cfg(windows)".dependencies.dunce]
version = "1.0.4"

[lints.clippy]
all = "warn"
