lintspec-core 0.17.0

Core library for lintspec
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94.1"
name = "lintspec-core"
version = "0.17.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for lintspec"
readme = "README.md"
keywords = [
    "documentation",
    "linter",
    "natspec",
    "solidity",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/beeb/lintspec"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
clap = ["dep:clap"]
default = ["solar"]
slang = [
    "dep:regex",
    "dep:slang_solidity",
]
solar = ["dep:solar-parse"]

[lib]
name = "lintspec_core"
path = "src/lib.rs"

[[test]]
name = "common"
path = "tests/common.rs"

[[test]]
name = "tests-basic-sample"
path = "tests/tests-basic-sample.rs"

[[test]]
name = "tests-fuzzers"
path = "tests/tests-fuzzers.rs"

[[test]]
name = "tests-interface-sample"
path = "tests/tests-interface-sample.rs"

[[test]]
name = "tests-library-sample"
path = "tests/tests-library-sample.rs"

[[test]]
name = "tests-parser-test"
path = "tests/tests-parser-test.rs"

[[test]]
name = "tests-slang"
path = "tests/tests-slang.rs"

[[test]]
name = "tests-unicode-sample"
path = "tests/tests-unicode-sample.rs"

[[bench]]
name = "lint"
path = "benches/lint.rs"
harness = false

[[bench]]
name = "parser"
path = "benches/parser.rs"
harness = false

[dependencies.bon]
version = "3.3.2"

[dependencies.clap]
version = "4.5.29"
features = ["derive"]
optional = true

[dependencies.derive_more]
version = "2.0.1"
features = [
    "add",
    "display",
    "from",
    "from_str",
    "is_variant",
    "try_into",
]

[dependencies.dunce]
version = "1.0.5"

[dependencies.fastrand]
version = "2.3.0"

[dependencies.figment]
version = "0.10.19"
features = [
    "env",
    "toml",
]

[dependencies.ignore]
version = "0.4.24"

[dependencies.inturn]
version = "0.1.2"

[dependencies.lintspec-macros]
version = "0.3.0"

[dependencies.regex]
version = "1.11.1"
optional = true

[dependencies.semver]
version = "1.0.25"

[dependencies.serde]
version = "1.0.217"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.138"

[dependencies.slang_solidity]
version = "1.3.0"
optional = true

[dependencies.solar-parse]
version = "0.1.4"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.11"

[dependencies.thiserror-ext]
version = "0.3.0"

[dependencies.wide]
version = "1.1.1"

[dependencies.winnow]
version = "1.0.2"
features = [
    "ascii",
    "std",
]
default-features = false

[dependencies.zerocopy]
version = "0.8.27"

[dev-dependencies.divan]
version = "4.0.5"
package = "codspeed-divan-compat"

[dev-dependencies.insta]
version = "1.42.1"

[dev-dependencies.miette]
version = "7.5.0"
features = ["fancy"]

[dev-dependencies.similar-asserts]
version = "2.0.0"

[dev-dependencies.temp-dir]
version = "0.2.0"

[lints.clippy]
allow_attributes = "warn"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mod_module_files = "warn"
module_name_repetitions = "allow"
unwrap_used = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1