[package] name = "associated_list" version = "0.2.0" description = "An associated list, for cases when the key implements neither Hash nor Ord." categories = ["collections"] keywords = ["collections", "assoc_list", "assoc", "map"] authors = ["spamviech "] edition = "2021" license = "MIT" publish = true rust-version = "1.75" repository = "https://github.com/spamviech/associated_list" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = [] # collection of all nightly-only features nightly = ["allocator_api", "doc_auto_cfg"] # add an "allocator"-parameter to the AssocList. Requires the "allocator_api" feature/a nightly toolchain. allocator_api = [] doc_auto_cfg = [] [dependencies] [dev-dependencies] quickcheck_macros = "1.0.0" [dev-dependencies.quickcheck] version = "1.0.3" default-features = false [lints.rust] # Activate all warnings/lints except: box_pointers, non_ascii_idents, unstable_features absolute_paths_not_starting_with_crate = "warn" elided_lifetimes_in_paths = "warn" explicit_outlives_requirements = "warn" keyword_idents = "warn" macro_use_extern_crate = "warn" meta_variable_misuse = "warn" missing_abi = "warn" missing_copy_implementations = "warn" missing_debug_implementations = "warn" missing_docs = "warn" noop_method_call = "warn" pointer_structural_match = "warn" rust_2021_incompatible_closure_captures = "warn" rust_2021_incompatible_or_patterns = "warn" rust_2021_prefixes_incompatible_syntax = "warn" rust_2021_prelude_collisions = "warn" single_use_lifetimes = "warn" trivial_casts = "warn" trivial_numeric_casts = "warn" unreachable_pub = "warn" unsafe_code = "warn" unsafe_op_in_unsafe_fn = "warn" unused_crate_dependencies = "warn" unused_extern_crates = "warn" unused_import_braces = "warn" unused_lifetimes = "warn" unused_qualifications = "warn" unused_results = "warn" variant_size_differences = "warn" box_pointers = "allow" non_ascii_idents = "allow" unstable_features = "allow" [lints.clippy] correctness = "deny" suspicious = "warn" complexity = "warn" perf = "warn" style = "warn" cargo = "warn" pedantic = "warn" # restriction group lints absolute_paths = "warn" alloc_instead_of_core = "warn" allow_attributes = "allow" # expect-attribute still experimental allow_attributes_without_reason = "warn" arithmetic_side_effects = "warn" as_conversions = "warn" as_underscore = "warn" assertions_on_result_states = "warn" big_endian_bytes = "warn" clone_on_ref_ptr = "warn" create_dir = "warn" dbg_macro = "warn" decimal_literal_representation = "warn" default_numeric_fallback = "allow" # annoying default_union_representation = "warn" deref_by_slicing = "allow" # disagree disallowed_script_idents = "allow" # no rescrictions for naming else_if_without_else = "warn" empty_drop = "warn" empty_structs_with_brackets = "warn" error_impl_error = "warn" exhaustive_enums = "allow" # exhaustive should be the default exhaustive_structs = "warn" exit = "warn" expect_used = "allow" # expect used to signal invariants filetype_is_file = "warn" float_arithmetic = "warn" float_cmp_const = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" get_unwrap = "warn" host_endian_bytes = "warn" if_then_some_else_none = "warn" impl_trait_in_params = "allow" # allows to skip naming some type parameters implicit_return = "allow" # idiomatic rust indexing_slicing = "warn" inline_asm_x86_att_syntax = "warn" inline_asm_x86_intel_syntax = "warn" integer_division = "warn" large_include_file = "warn" let_underscore_must_use = "allow" # idiomatic way to disable must_use warning let_underscore_untyped = "allow" # annyoing, every type-change to the called function must be duplicated little_endian_bytes = "warn" lossy_float_literal = "warn" map_err_ignore = "warn" mem_forget = "warn" min_ident_chars = "warn" missing_assert_message = "warn" missing_asserts_for_indexing = "warn" missing_docs_in_private_items = "warn" missing_inline_in_public_items = "warn" missing_trait_methods = "allow" # shall only be active on the trait itself mixed_read_write_in_expression = "warn" mod_module_files = "deny" modulo_arithmetic = "allow" # only a problem in combination with ffi multiple_inherent_impl = "warn" multiple_unsafe_ops_per_block = "warn" mutex_atomic = "warn" needless_raw_strings = "warn" non_ascii_literal = "allow" # if an editor doesn't support unicode, it should not be used... panic = "warn" panic_in_result_fn = "warn" partial_pub_fields = "warn" pattern_type_mismatch = "allow" # match-statements require a lot more boilerplate code print_stderr = "warn" print_stdout = "warn" pub_use = "warn" pub_with_shorthand = "allow" # pub_without_shorthand active pub_without_shorthand = "warn" question_mark_used = "allow" # ?-operator is great rc_buffer = "warn" rc_mutex = "warn" redundant_type_annotations = "warn" ref_patterns = "warn" rest_pat_in_fully_bound_structs = "warn" same_name_method = "warn" self_named_module_files = "allow" # mod_module_files active semicolon_inside_block = "warn" semicolon_outside_block = "allow" # semicolon_inside_block active separated_literal_suffix = "warn" shadow_reuse = "allow" # common rust pattern, otherwise leads to `a1 = a0 + 3`, ... shadow_same = "allow" # useful to get rid of mut, convert to reference, etc. shadow_unrelated = "warn" single_call_fn = "allow" # single use function usually improve code structure single_char_lifetime_names = "allow" # sinlge char lifetime is common std_instead_of_alloc = "warn" std_instead_of_core = "warn" str_to_string = "warn" string_add = "warn" string_lit_chars_any = "warn" string_slice = "warn" string_to_string = "warn" suspicious_xor_used_as_pow = "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" unnecessary_self_imports = "warn" unneeded_field_pattern = "allow" # ignoring fields explicitly helps to avoid "missing" code changes unreachable = "allow" # unreachable used to signal invariants unseparated_literal_suffix = "allow" # separated_literal_suffix active unwrap_in_result = "warn" unwrap_used = "warn" use_debug = "warn" verbose_file_reads = "warn" wildcard_enum_match_arm = "warn" [package.metadata.docs.rs] all-features = true