module-util 0.4.0

Utilities for working with module.
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-util"
version = "0.4.0"
authors = ["threadexio"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Utilities for working with module.
"""
homepage = "https://github.com/threadexio/module-rs"
documentation = "https://docs.rs/module-util"
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"]
file = [
    "std",
    "serde",
    "serde/std",
    "serde/derive",
]
json = [
    "file",
    "dep:serde_json",
]
serde = ["dep:serde"]
std = []
toml = [
    "file",
    "dep:toml",
]

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

[[test]]
name = "test_file"
path = "tests/test_file.rs"
required-features = [
    "json",
    "module/serde",
]

[[test]]
name = "test_file_format_toml"
path = "tests/test_file_format_toml.rs"
required-features = [
    "toml",
    "module/serde",
]

[dependencies.module]
version = "0.4.0"
default-features = false

[dependencies.serde]
version = "1"
optional = true
default-features = false

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

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

[dev-dependencies.module]
version = "0.4.0"
features = ["derive"]

[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"