[package]
edition = "2024"
rust-version = "1.85.1"
name = "module-derive"
version = "0.4.0"
authors = ["threadexio"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Derive macros for the `module` crate.
"""
homepage = "https://github.com/threadexio/module-rs"
documentation = "https://docs.rs/module-derive"
readme = false
keywords = [
"module",
"config",
"nix",
]
categories = [
"command-line-utilities",
"config",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/threadexio/module-rs"
resolver = "2"
[lib]
name = "module_derive"
path = "src/lib.rs"
proc-macro = true
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
[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"