[package]
edition = "2024"
rust-version = "1.95.0"
name = "mago-type-syntax"
version = "1.28.0"
authors = ["Seifeddine Gmati <azjezz@carthage.software>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides core utilities useful for building lexers and parsers within Mago."
homepage = "https://mago.carthage.software"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/carthage-software/mago"
[lib]
name = "mago_type_syntax"
path = "src/lib.rs"
[[bench]]
name = "parser"
path = "benches/parser.rs"
harness = false
[dependencies.bumpalo]
version = "3"
features = [
"collections",
"serde",
]
[dependencies.mago-database]
version = "1.28.0"
[dependencies.mago-span]
version = "1.28.0"
[dependencies.mago-syntax-core]
version = "1.28.0"
[dependencies.ordered-float]
version = "5.0"
features = [
"serde",
"serde",
"rand",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.strum]
version = "0.28"
features = ["derive"]
[dev-dependencies.criterion]
version = "4.5.0"
package = "codspeed-criterion-compat"
[lints.clippy]
absolute_paths = "allow"
allow_attributes = "allow"
allow_attributes_without_reason = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "allow"
as_conversions = "allow"
blanket_clippy_restriction_lints = "allow"
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
comparison_chain = "allow"
default_numeric_fallback = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
doc_paragraphs_missing_punctuation = "allow"
else_if_without_else = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
explicit_iter_loop = "allow"
field_scoped_visibility_modifiers = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
if_then_some_else_none = "allow"
ignored_unit_patterns = "allow"
impl_trait_in_params = "allow"
implicit_clone = "allow"
implicit_return = "allow"
indexing_slicing = "allow"
inline_always = "allow"
inline_modules = "allow"
integer_division = "allow"
integer_division_remainder_used = "allow"
items_after_statements = "allow"
iter_over_hash_type = "allow"
let_underscore_must_use = "allow"
let_underscore_untyped = "allow"
literal_string_with_formatting_args = "allow"
manual_assert = "allow"
manual_string_new = "allow"
manual_unwrap_or_default = "allow"
many_single_char_names = "allow"
map_err_ignore = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "allow"
min_ident_chars = "allow"
missing_const_for_fn = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
missing_trait_methods = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
multiple_inherent_impl = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
non_ascii_literal = "allow"
non_send_fields_in_send_ty = "allow"
option_if_let_else = "allow"
option_option = "allow"
or_fun_call = "allow"
panic = "allow"
partial_pub_fields = "allow"
pattern_type_mismatch = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
redundant_test_prefix = "allow"
ref_as_ptr = "allow"
renamed_function_params = "allow"
return_and_then = "allow"
same_name_method = "allow"
self_named_module_files = "allow"
semicolon_if_nothing_returned = "allow"
semicolon_inside_block = "allow"
semicolon_outside_block = "allow"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
significant_drop_tightening = "allow"
single_call_fn = "allow"
single_char_pattern = "allow"
single_match = "allow"
single_match_else = "allow"
single_option_map = "allow"
stable_sort_primitive = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "allow"
str_to_string = "allow"
string_slice = "allow"
struct_excessive_bools = "allow"
tests_outside_test_module = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unchecked_time_subtraction = "allow"
uninlined_format_args = "allow"
unnecessary_trailing_comma = "allow"
unnecessary_wraps = "allow"
unneeded_field_pattern = "allow"
unnested_or_patterns = "allow"
unreachable = "allow"
unseparated_literal_suffix = "allow"
unused_self = "allow"
unused_trait_names = "allow"
use_self = "allow"
useless_attribute = "allow"
useless_let_if_seq = "allow"
wildcard_enum_match_arm = "allow"
zero_sized_map_values = "allow"
[lints.clippy.dbg_macro]
level = "deny"
priority = 0
[lints.clippy.large_enum_variant]
level = "deny"
priority = 0
[lints.clippy.let_underscore_lock]
level = "deny"
priority = 0
[lints.clippy.nursery]
level = "deny"
priority = -4
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -3
[lints.clippy.print_stderr]
level = "deny"
priority = 0
[lints.clippy.print_stdout]
level = "deny"
priority = 0
[lints.clippy.restriction]
level = "deny"
priority = -2