[package]
edition = "2021"
rust-version = "1.95"
name = "marginalia"
version = "0.2.1"
authors = ["Stephen Diehl <stephen.m.diehl@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trivia-preserving parsing and formatting for logos + lalrpop"
homepage = "https://github.com/sdiehl/marginalia"
documentation = "https://docs.rs/marginalia"
readme = "README.md"
keywords = [
"parser",
"formatter",
"lalrpop",
"logos",
"cst",
]
categories = [
"parser-implementations",
"development-tools",
]
license = "MIT"
repository = "https://github.com/sdiehl/marginalia"
[lib]
name = "marginalia"
path = "src/lib.rs"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
needless_for_each = "allow"
panic = "deny"
ptr_arg = "deny"
similar_names = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
unwrap_used = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.let_underscore]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[profile.release]
lto = "thin"
codegen-units = 1