[package]
edition = "2024"
rust-version = "1.88"
name = "lute"
version = "0.1.0"
authors = ["Kyle Chen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Immutable maps and sets built from fixed entries"
documentation = "https://docs.rs/lute"
readme = "README.md"
keywords = [
"map",
"phf",
"set",
]
categories = [
"data-structures",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/astral4/lute"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
codegen = ["lute_core/codegen"]
construct = ["lute_core/construct"]
default = ["construct"]
macros = ["dep:lute_macros"]
[lib]
name = "lute"
path = "src/lib.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[[bench]]
name = "lute"
path = "benches/lute.rs"
harness = false
required-features = ["construct"]
[[bench]]
name = "phf"
path = "benches/phf.rs"
harness = false
required-features = ["construct"]
[dependencies.lute_core]
version = "=0.1.0"
default-features = false
[dependencies.lute_macros]
version = "=0.1.0"
optional = true
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.phf]
version = "0.14"
[dev-dependencies.phf_generator]
version = "0.14"
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
pedantic = "warn"
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1
[lints.rust]
async_fn_in_trait = "allow"
ffi_unwind_calls = "warn"
let_underscore_drop = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_abi = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "forbid"
non_local_definitions = "warn"
redundant_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unit_bindings = "deny"
unreachable_pub = "deny"
unused_import_braces = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
[lints.rust.nonstandard_style]
level = "deny"
priority = 1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = 1
[lints.rustdoc]
redundant_explicit_links = "allow"