| 1 | [package] |
| 2 | name = "pin-project-lite" |
| 3 | version = "0.2.16" #publish:version |
| 4 | edition = "2018" |
| 5 | rust-version = "1.37" |
| 6 | license = "Apache-2.0 OR MIT" |
| 7 | repository = "https://github.com/taiki-e/pin-project-lite" |
| 8 | keywords = ["pin" , "macros" ] |
| 9 | categories = ["no-std" , "no-std::no-alloc" , "rust-patterns" ] |
| 10 | exclude = ["/.*" , "/tools" , "/DEVELOPMENT.md" ] |
| 11 | description = "" " |
| 12 | A lightweight version of pin-project written with declarative macros. |
| 13 | " "" |
| 14 | |
| 15 | [package.metadata.docs.rs] |
| 16 | targets = ["x86_64-unknown-linux-gnu" ] |
| 17 | |
| 18 | [package.metadata.cargo_check_external_types] |
| 19 | # The following are external types that are allowed to be exposed in our public API. |
| 20 | allowed_external_types = [ |
| 21 | ] |
| 22 | |
| 23 | [lib] |
| 24 | doc-scrape-examples = false |
| 25 | |
| 26 | [dev-dependencies] |
| 27 | macrotest = { git = "https://github.com/taiki-e/macrotest.git" , branch = "dev-old-msrv" } # adjust overwrite behavior + no cargo-expand + lower MSRV |
| 28 | rustversion = "1" |
| 29 | static_assertions = "1" |
| 30 | trybuild = { git = "https://github.com/taiki-e/trybuild.git" , branch = "dev-old-msrv" } # adjust overwrite behavior + lower MSRV |
| 31 | |
| 32 | [lints] |
| 33 | workspace = true |
| 34 | |
| 35 | [workspace] |
| 36 | members = [ |
| 37 | "tests/no-core" , |
| 38 | "tests/no-std" , |
| 39 | "tests/lint" , |
| 40 | ] |
| 41 | |
| 42 | # This table is shared by projects under github.com/taiki-e. |
| 43 | # It is not intended for manual editing. |
| 44 | [workspace.lints.rust] |
| 45 | deprecated_safe = "warn" |
| 46 | improper_ctypes = "warn" |
| 47 | improper_ctypes_definitions = "warn" |
| 48 | non_ascii_idents = "warn" |
| 49 | rust_2018_idioms = "warn" |
| 50 | single_use_lifetimes = "warn" |
| 51 | unexpected_cfgs = { level = "warn" , check-cfg = [ |
| 52 | ] } |
| 53 | unreachable_pub = "warn" |
| 54 | # unsafe_op_in_unsafe_fn = "warn" # Set at crate-level instead since https://github.com/rust-lang/rust/pull/100081 is not available on MSRV |
| 55 | [workspace.lints.clippy] |
| 56 | all = "warn" # Downgrade deny-by-default lints |
| 57 | pedantic = "warn" |
| 58 | as_ptr_cast_mut = "warn" |
| 59 | as_underscore = "warn" |
| 60 | default_union_representation = "warn" |
| 61 | inline_asm_x86_att_syntax = "warn" |
| 62 | trailing_empty_array = "warn" |
| 63 | transmute_undefined_repr = "warn" |
| 64 | undocumented_unsafe_blocks = "warn" |
| 65 | # Suppress buggy or noisy clippy lints |
| 66 | bool_assert_comparison = { level = "allow" , priority = 1 } |
| 67 | borrow_as_ptr = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 |
| 68 | cast_lossless = { level = "allow" , priority = 1 } # https://godbolt.org/z/Pv6vbGG6E |
| 69 | declare_interior_mutable_const = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 |
| 70 | doc_markdown = { level = "allow" , priority = 1 } |
| 71 | float_cmp = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 |
| 72 | incompatible_msrv = { level = "allow" , priority = 1 } # buggy: doesn't consider cfg, https://github.com/rust-lang/rust-clippy/issues/12280, https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187 |
| 73 | lint_groups_priority = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12920 |
| 74 | manual_assert = { level = "allow" , priority = 1 } |
| 75 | manual_range_contains = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395 |
| 76 | missing_errors_doc = { level = "allow" , priority = 1 } |
| 77 | module_name_repetitions = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions |
| 78 | naive_bytecount = { level = "allow" , priority = 1 } |
| 79 | nonminimal_bool = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool |
| 80 | range_plus_one = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one |
| 81 | similar_names = { level = "allow" , priority = 1 } |
| 82 | single_match = { level = "allow" , priority = 1 } |
| 83 | single_match_else = { level = "allow" , priority = 1 } |
| 84 | struct_excessive_bools = { level = "allow" , priority = 1 } |
| 85 | struct_field_names = { level = "allow" , priority = 1 } |
| 86 | too_many_arguments = { level = "allow" , priority = 1 } |
| 87 | too_many_lines = { level = "allow" , priority = 1 } |
| 88 | type_complexity = { level = "allow" , priority = 1 } |
| 89 | unreadable_literal = { level = "allow" , priority = 1 } |
| 90 | |