module 0.4.0

Modular NixOS-style configuration crate.
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"
rust-version = "1.85.1"
name = "module"
version = "0.4.0"
authors = ["threadexio"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Modular NixOS-style configuration crate.
"""
homepage = "https://github.com/threadexio/module-rs"
documentation = "https://docs.rs/module"
readme = "README.md"
keywords = [
    "module",
    "config",
    "nix",
]
categories = [
    "command-line-utilities",
    "config",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/threadexio/module-rs"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustc-args = [
    "--cfg",
    "module_nightly",
]
rustdoc-args = [
    "--cfg",
    "module_nightly",
]

[features]
default = ["std"]
derive = ["dep:module-derive"]
serde = ["dep:serde"]
std = []

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

[dependencies.module-derive]
version = "0.4.0"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

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

[lints.clippy]
cast_lossless = "warn"
cast_possible_wrap = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
elidable_lifetime_names = "warn"
expect_used = "allow"
iter_without_into_iter = "warn"
missing_assert_message = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "warn"
new_without_default = "allow"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
redundant_closure_for_method_calls = "warn"
self_named_module_files = "warn"
str_to_string = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"
useless_conversion = "warn"
wrong_self_convention = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "warn"
priority = -1

[lints.rust]
arithmetic_overflow = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unexpected_cfgs = "allow"
unreachable_pub = "warn"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "warn"
unused_extern_crates = "allow"
unused_import_braces = "warn"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rustdoc]
all = "warn"
broken_intra_doc_links = "warn"