[workspace]
members = ["derive"]
[package]
name = "token-parser"
version = "0.10.1"
description = "Utilities for parsing texts into data structures"
authors = ["p <p@p11c.xyz>"]
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://gitlab.com/porky11/token-parser"
[features]
radix-parsing = ["scalars"]
derive = ["dep:token-parser-derive"]
[dependencies]
scalars = { version = "0.3", features = ["std"], optional = true }
thiserror = "2.0.12"
token-parser-derive = { version = "0.6.0", path = "derive", optional = true }
[workspace.lints.rust]
warnings = { level = "deny", priority = -2 }
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
missing_transmute_annotations = "deny"
unwrap_used = "deny"
expect_used = "deny"
indexing_slicing = "deny"
string_slice = "deny"
panic = "deny"
panic_in_result_fn = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
exit = "deny"
cognitive_complexity = "allow"
suboptimal_flops = "allow"
similar_names = "allow"
wildcard_imports = "allow"
inline_always = "allow"
module_name_repetitions = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
enum_glob_use = "allow"
cast_possible_wrap = "allow"
items_after_statements = "allow"
fn_params_excessive_bools = "allow"
too_many_arguments = "allow"
cast_lossless = "allow"
range_plus_one = "allow"
option_if_let_else = "allow"
semicolon_if_nothing_returned = "allow"
many_single_char_names = "allow"
suspicious_operation_groupings = "allow"
return_self_not_must_use = "allow"
struct_field_names = "allow"
implicit_hasher = "allow"
while_float = "allow"
trait_duplication_in_bounds = "allow"
boxed_local = "allow"
float_cmp = "allow"
case_sensitive_file_extension_comparisons = "allow"
unchecked_time_subtraction = "allow"
suspicious_arithmetic_impl = "allow"
future_not_send = "allow"
[lints]
workspace = true