[package] name = "dma-heap" version = "0.4.0" authors = ["Maxime Ripard "] description = "Linux DMA-Buf Heap Abstraction Library" edition = "2021" readme = "README.md" license-file = "LICENSE" keywords = ["linux", "dma", "dma-buf", "heap"] categories = ["api-bindings", "os::linux-apis"] repository = "https://github.com/mripard/dma-heap/" [dependencies] log = "0.4.20" rustix = { version = "0.38.31", features = ["fs"] } strum_macros = "0.26.1" thiserror = "1.0.56" [features] nightly = [] [lints.rust] # Groups future_incompatible = { level = "warn", priority = -1 } nonstandard_style = { level = "warn", priority = -1 } rust_2018_idioms = { level = "warn", priority = -1 } # Individual Lints absolute_paths_not_starting_with_crate = "warn" keyword_idents = "warn" let_underscore_drop = "warn" macro_use_extern_crate = "warn" missing_abi = "deny" missing_debug_implementations = "warn" missing_docs = "warn" non_ascii_idents = "warn" rust_2021_incompatible_closure_captures = "deny" rust_2021_incompatible_or_patterns = "deny" 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 = "deny" unsafe_op_in_unsafe_fn = "warn" unused_crate_dependencies = "warn" unused_import_braces = "warn" unused_lifetimes = "warn" unused_macro_rules = "warn" unused_qualifications = "warn" variant_size_differences = "warn" [lints.clippy] # Groups all = { level = "deny", priority = -1 } cargo = { level = "warn", priority = -1 } complexity = { level = "warn", priority = -1 } correctness = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = -1 } perf = { level = "warn", priority = -1 } style = { level = "warn", priority = -1 } suspicious = { level = "warn", priority = -1 } # Individual Lints ## Restriction Clippy Lints alloc_instead_of_core = "warn" assertions_on_result_states = "warn" dbg_macro = "warn" decimal_literal_representation = "warn" empty_drop = "warn" empty_structs_with_brackets = "warn" error_impl_error = "warn" exit = "warn" float_cmp_const = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" get_unwrap = "warn" infinite_loop = "warn" let_underscore_must_use = "warn" let_underscore_untyped = "warn" lossy_float_literal = "warn" map_err_ignore = "warn" mem_forget = "warn" missing_assert_message = "warn" missing_asserts_for_indexing = "warn" mixed_read_write_in_expression = "warn" mod_module_files = "warn" modulo_arithmetic = "warn" multiple_inherent_impl = "warn" multiple_unsafe_ops_per_block = "warn" mutex_atomic = "warn" needless_raw_strings = "warn" non_ascii_literal = "warn" panic_in_result_fn = "warn" partial_pub_fields = "warn" print_stdout = "warn" redundant_type_annotations = "warn" ref_patterns = "warn" rest_pat_in_fully_bound_structs = "warn" same_name_method = "warn" semicolon_outside_block = "warn" separated_literal_suffix = "warn" std_instead_of_alloc = "warn" std_instead_of_core = "warn" str_to_string = "warn" string_add = "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" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unnecessary_self_imports = "warn" unneeded_field_pattern = "warn" unwrap_in_result = "warn" unwrap_used = "warn" use_debug = "warn" wildcard_enum_match_arm = "warn" ## Other Lints cognitive_complexity = "warn" debug_assert_with_mut_call = "warn" fallible_impl_from = "warn" imprecise_flops = "warn" mutex_integer = "warn" path_buf_push_overwrite = "warn" string_lit_as_bytes = "warn" trait_duplication_in_bounds = "warn" verbose_file_reads = "warn"