module-util 0.3.1

Utilities for working with module.
Documentation
[dependencies.module]
default-features = false
version = "0.3"

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

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

[dependencies.serde_yaml]
optional = true
version = "0.9"

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

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

[features]
default = ["std"]
file = ["std", "serde", "serde/std", "serde/derive"]
json = ["file", "dep:serde_json"]
serde = ["dep:serde"]
std = []
toml = ["file", "dep:toml"]
yaml = ["file", "dep:serde_yaml"]

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

[lints.clippy]
cast_lossless = "warn"
cast_possible_wrap = "warn"
missing_assert_message = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
new_without_default = "allow"
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"

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

[package]
authors = ["threadexio"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["command-line-utilities", "config", "no-std"]
description = """
Utilities for working with module.
"""
documentation = "https://docs.rs/module-util"
edition = "2024"
homepage = "https://github.com/threadexio/module-rs"
keywords = ["module", "config", "nix"]
license = "Apache-2.0"
name = "module-util"
readme = "README.md"
repository = "https://github.com/threadexio/module-rs"
resolver = "2"
version = "0.3.1"

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

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

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

[[test]]
name = "test_file_format_yaml"
path = "tests/test_file_format_yaml.rs"
required-features = ["yaml"]