[package] name = "alkale" version = "2.0.0" edition = "2021" description = "A simple LL(1) lexer library for Rust." readme = "README.md" repository = "https://codeberg.org/AshliKatt/Alkale" license = "MIT OR Apache-2.0" keywords = ["token", "tokenizer", "lexer"] authors = ["Ashli Katt "] categories = ["parsing"] [dependencies] num-traits = { version = "0.2.19", optional = true } [dev-dependencies] criterion = "0.5.1" [features] default = ["common"] common = ["dep:num-traits"] # docs.rs configuration [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [[bench]] name = "benches_main" harness = false [lints.rust] missing_docs = "warn" [lints.rustdoc] broken_intra_doc_links = "warn" invalid_html_tags = "warn" unescaped_backticks = "warn" [lints.clippy] # Groups correctness = { level = "deny", priority = -1 } perf = { level = "deny", priority = -1 } cargo = { level = "deny", priority = -1 } suspicious = { level = "warn", priority = -1 } complexity = { level = "warn", priority = -1 } style = { level = "warn", priority = -1 } # Nursery as_ptr_cast_mut = "warn" branches_sharing_code = "warn" clear_with_drain = "warn" cognitive_complexity = "warn" collection_is_never_read = "warn" debug_assert_with_mut_call = "warn" derive_partial_eq_without_eq = "warn" equatable_if_let = "warn" fallible_impl_from = "warn" imprecise_flops = "warn" iter_on_empty_collections = "warn" iter_on_single_items = "warn" iter_with_drain = "warn" large_stack_frames = "warn" missing_const_for_fn = "warn" mutex_integer = "warn" needless_collect = "warn" needless_pass_by_ref_mut = "warn" non_send_fields_in_send_ty = "warn" nonstandard_macro_braces = "warn" option_if_let_else = "warn" or_fun_call = "warn" read_zero_byte_vec = "warn" redundant_clone = "warn" redundant_pub_crate = "warn" set_contains_or_insert = "warn" string_lit_as_bytes = "warn" suboptimal_flops = "warn" suspicious_operation_groupings = "warn" too_long_first_doc_paragraph = "warn" trait_duplication_in_bounds = "warn" tuple_array_conversions = "warn" type_repetition_in_bounds = "warn" uninhabited_references = "warn" unnecessary_struct_initialization = "warn" unused_peekable = "warn" use_self = "warn" useless_let_if_seq = "warn" while_float = "warn" # Pedantic assigning_clones = "warn" bool_to_int_with_if = "warn" borrow_as_ptr = "warn" case_sensitive_file_extension_comparisons = "warn" cast_lossless = "warn" cast_ptr_alignment = "warn" checked_conversions = "warn" cloned_instead_of_copied = "warn" copy_iterator = "warn" default_trait_access = "warn" doc_link_with_quotes = "warn" enum_glob_use = "warn" expl_impl_clone_on_copy = "warn" explicit_deref_methods = "warn" explicit_into_iter_loop = "warn" explicit_iter_loop = "warn" filter_map_next = "warn" flat_map_option = "warn" float_cmp = "warn" fn_params_excessive_bools = "warn" from_iter_instead_of_collect = "warn" if_not_else = "warn" ignored_unit_patterns = "warn" implicit_clone = "warn" implicit_hasher = "warn" inconsistent_struct_constructor = "warn" index_refutable_slice = "warn" inefficient_to_string = "warn" invalid_upcast_comparisons = "warn" items_after_statements = "warn" iter_filter_is_ok = "warn" iter_filter_is_some = "warn" iter_not_returning_iterator = "warn" large_digit_groups = "warn" large_futures = "warn" large_stack_arrays = "warn" large_types_passed_by_value = "warn" linkedlist = "warn" macro_use_imports = "warn" manual_assert = "warn" manual_instant_elapsed = "warn" manual_is_variant_and = "warn" manual_let_else = "warn" manual_ok_or = "warn" manual_string_new = "warn" many_single_char_names = "warn" map_unwrap_or = "warn" match_bool = "warn" match_on_vec_items = "warn" match_same_arms = "warn" match_wild_err_arm = "warn" missing_errors_doc = "warn" missing_panics_doc = "warn" must_use_candidate = "warn" mut_mut = "warn" needless_bitwise_bool = "warn" needless_for_each = "warn" needless_pass_by_value = "warn" no_effect_underscore_binding = "warn" option_as_ref_cloned = "warn" option_option = "warn" pub_underscore_fields = "warn" range_minus_one = "warn" range_plus_one = "warn" redundant_closure_for_method_calls = "warn" ref_binding_to_reference = "warn" ref_option_ref = "warn" return_self_not_must_use = "warn" same_functions_in_if_condition = "warn" semicolon_if_nothing_returned = "warn" similar_names = "warn" single_char_pattern = "warn" single_match_else = "warn" stable_sort_primitive = "warn" str_split_at_newline = "warn" string_add_assign = "warn" struct_excessive_bools = "warn" struct_field_names = "warn" too_many_lines = "warn" trivially_copy_pass_by_ref = "warn" unchecked_duration_subtraction = "warn" unicode_not_nfc = "warn" uninlined_format_args = "warn" unnecessary_box_returns = "warn" unnecessary_join = "warn" unnecessary_wraps = "warn" unnested_or_patterns = "warn" unused_async = "warn" unused_self = "warn" used_underscore_binding = "warn" verbose_bit_mask = "warn" wildcard_imports = "warn" zero_sized_map_values = "warn" # Restriction absolute_paths = "warn" alloc_instead_of_core = "warn" allow_attributes = "warn" arithmetic_side_effects = "warn" as_underscore = "warn" assertions_on_result_states = "warn" cfg_not_test = "warn" clone_on_ref_ptr = "warn" create_dir = "warn" dbg_macro = "warn" decimal_literal_representation = "warn" default_numeric_fallback = "warn" empty_drop = "warn" error_impl_error = "warn" exit = "warn" filetype_is_file = "warn" float_cmp_const = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" if_then_some_else_none = "warn" little_endian_bytes = "warn" big_endian_bytes = "warn" impl_trait_in_params = "warn" indexing_slicing = "warn" infinite_loop = "warn" inline_asm_x86_att_syntax = "warn" iter_over_hash_type = "warn" lossy_float_literal = "warn" mem_forget = "warn" missing_assert_message = "warn" missing_docs_in_private_items = "warn" mixed_read_write_in_expression = "warn" self_named_module_files = "warn" modulo_arithmetic = "warn" mutex_atomic = "warn" partial_pub_fields = "warn" pathbuf_init_then_push = "warn" rc_buffer = "warn" rc_mutex = "warn" renamed_function_params = "warn" same_name_method = "warn" single_char_lifetime_names = "warn" std_instead_of_core = "warn" str_to_string = "warn" string_add = "warn" string_lit_chars_any = "warn" string_to_string = "warn" tests_outside_test_module = "warn" todo = "warn" try_err = "warn" undocumented_unsafe_blocks = "warn" unimplemented = "warn" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unneeded_field_pattern = "warn" unreachable = "warn" unwrap_used = "warn" verbose_file_reads = "warn"