[package]
edition = "2024"
name = "flexi-parse"
version = "0.11.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple, flexible parsing"
documentation = "https://docs.rs/flexi-parse/latest/"
readme = "README.md"
keywords = [
"parsing",
"parse",
]
categories = ["parsing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Spartan2909/flexi-parse"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--cfg",
"doc_cfg",
"--generate-link-to-definition",
]
[features]
ariadne = ["dep:ariadne"]
default = [
"ariadne",
"scan-strings",
]
proc-macro = [
"proc-macro2",
"proc-macro2/proc-macro",
"quote/proc-macro",
]
proc-macro2 = [
"dep:proc-macro2",
"dep:quote",
"scan-strings",
]
scan-strings = []
[lib]
name = "flexi_parse"
path = "src/lib.rs"
[[example]]
name = "calc"
path = "examples/calc.rs"
test = true
[[example]]
name = "lox"
path = "examples/lox/main.rs"
test = true
[dependencies.ariadne]
version = "0.6.0"
optional = true
[dependencies.proc-macro2]
version = "1.0.106"
optional = true
[dependencies.quote]
version = "1.0.44"
optional = true
default-features = false
[lints.clippy]
cast_possible_truncation = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
significant_drop_in_scrutinee = "allow"
too_many_lines = "allow"
use_self = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"