[package]
edition = "2024"
rust-version = "1.92"
name = "perl-token"
version = "0.13.2"
authors = ["Steven Zimmerman, CPA <git@effortlesssteven.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Token definitions for Perl parser"
homepage = "https://github.com/EffortlessMetrics/perl-lsp"
documentation = "https://docs.rs/perl-token"
readme = "README.md"
keywords = [
"perl",
"token",
"parser",
"lexer",
"tokenization",
]
categories = [
"parsing",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/EffortlessMetrics/perl-lsp"
resolver = "2"
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "perl_token"
path = "src/lib.rs"
[[test]]
name = "borrowed_token_tests"
path = "tests/borrowed_token_tests.rs"
[[test]]
name = "comprehensive_unit_tests"
path = "tests/comprehensive_unit_tests.rs"
[[test]]
name = "conformance_guards"
path = "tests/conformance_guards.rs"
[[test]]
name = "display_name_snapshot_tests"
path = "tests/display_name_snapshot_tests.rs"
[[test]]
name = "extended_unit_tests"
path = "tests/extended_unit_tests.rs"
[[test]]
name = "span_invariant_tests"
path = "tests/span_invariant_tests.rs"
[[test]]
name = "token_kind_mapping_tests"
path = "tests/token_kind_mapping_tests.rs"
[[test]]
name = "token_kinds_and_display"
path = "tests/token_kinds_and_display.rs"
[[test]]
name = "token_metadata_snapshot_tests"
path = "tests/token_metadata_snapshot_tests.rs"
[[test]]
name = "token_role_tests"
path = "tests/token_role_tests.rs"
[[bench]]
name = "token_scorecard"
path = "benches/token_scorecard.rs"
harness = false
[dependencies]
[lints.clippy]
collapsible_if = "allow"
dbg_macro = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(ci)",
'cfg(feature, values("slow_tests"))',
]