[package]
edition = "2024"
name = "magic-args"
version = "0.1.4"
authors = ["threadexio"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
"Magic" declarative-style function arguments.
"""
homepage = "https://git.31c0.org/threadexio/magic-args-rs"
documentation = "https://docs.rs/magic-args"
readme = "README.md"
keywords = [
"magic",
"function",
"argument",
]
categories = [
"rust-patterns",
"no-std",
]
license = "MIT"
repository = "https://git.31c0.org/threadexio/magic-args-rs"
[package.metadata.docs.rs]
all-features = true
rustc-args = [
"--cfg",
"docsrs",
]
rustdoc-args = [
"--cfg",
"docsrs",
"--html-in-header",
"./src/docs-header.html",
]
[features]
default = ["derive"]
derive = ["dep:magic-args-derive"]
[lib]
name = "magic_args"
path = "src/lib.rs"
[dependencies.magic-args-derive]
version = "0.1.4"
optional = true
[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 = "deny"
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"