[package]
edition = "2024"
rust-version = "1.85.0"
name = "bare-config"
version = "0.2.0"
authors = ["bare-rs contributors"]
build = false
include = [
"src/**/*",
"LICENSE-*",
"README.md",
"CHANGELOG.md",
"NOTICE.md",
"examples/**/*",
"benches/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The type-safe configuration authority for Rust. A pluggable framework for full CRUD operations across multiple backends with 'Parse, don't validate' philosophy."
homepage = "https://github.com/bare-rs/bare-config"
documentation = "https://docs.rs/bare-config"
readme = "README.md"
keywords = [
"config",
"crud",
"json",
"yaml",
"toml",
]
categories = [
"config",
"data-structures",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bare-rs/bare-config"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[features]
default = []
full = [
"json",
"yaml",
"toml",
"properties",
]
ini = []
json = ["dep:serde_json"]
properties = []
toml = ["dep:toml"]
yaml = ["dep:serde_yaml"]
[lib]
name = "bare_config"
path = "src/lib.rs"
[[example]]
name = "config_migrator"
path = "examples/config_migrator.rs"
required-features = ["json"]
[[example]]
name = "ini_basic"
path = "examples/ini_basic.rs"
required-features = ["ini"]
[[example]]
name = "json_basic"
path = "examples/json_basic.rs"
required-features = ["json"]
[[example]]
name = "properties_basic"
path = "examples/properties_basic.rs"
required-features = ["properties"]
[[example]]
name = "toml_basic"
path = "examples/toml_basic.rs"
required-features = ["toml"]
[[example]]
name = "yaml_basic"
path = "examples/yaml_basic.rs"
required-features = ["yaml"]
[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false
required-features = [
"json",
"yaml",
"toml",
"properties",
"ini",
]
[dependencies.nom]
version = "8.0.0"
[dependencies.serde_json]
version = "1.0.145"
optional = true
[dependencies.serde_yaml]
version = "0.11"
optional = true
package = "serde_yaml_neo"
[dependencies.thiserror]
version = "2.0.12"
[dependencies.toml]
version = "0.9.8"
optional = true
[dev-dependencies.cargo-fuzz]
version = "0.13"
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[lints.clippy]
as_conversions = "allow"
cast_lossless = "allow"
cast_possible_wrap = "allow"
comparison_chain = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
expect_used = "allow"
implicit_return = "allow"
incompatible_msrv = "allow"
indexing_slicing = "allow"
integer_division_remainder_used = "allow"
map_err_ignore = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
min_ident_chars = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
ptr_arg = "allow"
question_mark_used = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
same_name_method = "allow"
single_call_fn = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unwrap_used = "allow"
use_self = "allow"
[lints.rust]
absolute-paths-not-starting-with-crate = "warn"
ambiguous-associated-items = "deny"
ambiguous-negative-literals = "warn"
arithmetic-overflow = "deny"
binary-asm-labels = "deny"
bindings-with-variant-name = "deny"
dangerous-implicit-autorefs = "deny"
dead-code = "warn"
dependency-on-unit-never-type-fallback = "deny"
deprecated = "deny"
deprecated-in-future = "warn"
deref-nullptr = "deny"
elided-lifetimes-in-associated-constant = "deny"
enum-intrinsics-non-enums = "deny"
ill-formed-attribute-input = "deny"
improper-ctypes = "warn"
invalid-atomic-ordering = "deny"
invalid-from-utf8 = "warn"
invalid-value = "warn"
keyword-idents-2018 = "warn"
keyword-idents-2024 = "warn"
late-bound-lifetime-arguments = "deny"
let-underscore-drop = "warn"
linker-messages = "warn"
macro-use-extern-crate = "warn"
malformed-diagnostic-attributes = "warn"
missing-abi = "warn"
missing-copy-implementations = "warn"
missing-debug-implementations = "warn"
missing-unsafe-on-extern = "warn"
missing_docs = "warn"
mixed-script-confusables = "warn"
non-ascii-idents = "warn"
non-camel-case-types = "warn"
non-snake-case = "warn"
non-upper-case-globals = "warn"
noop-method-call = "warn"
path-statements = "warn"
redundant-imports = "warn"
redundant-semicolons = "warn"
rust-2021-incompatible-closure-captures = "warn"
rust-2021-incompatible-or-patterns = "warn"
rust-2021-prefixes-incompatible-syntax = "warn"
rust-2021-prelude-collisions = "warn"
single-use-lifetimes = "warn"
unnameable-types = "warn"
unreachable-pub = "warn"
unsafe-op-in-unsafe-fn = "warn"
unsafe_code = "forbid"
unstable-features = "warn"
unused-crate-dependencies = "allow"
unused-extern-crates = "warn"
unused-import-braces = "warn"
unused-lifetimes = "warn"
unused-qualifications = "warn"
unused-results = "warn"
variant-size-differences = "warn"