| 1 | [package] |
| 2 | name = "pin-project" |
| 3 | version = "1.1.10" #publish:version |
| 4 | edition = "2021" |
| 5 | rust-version = "1.56" # Align to pin-project-internal |
| 6 | license = "Apache-2.0 OR MIT" |
| 7 | repository = "https://github.com/taiki-e/pin-project" |
| 8 | keywords = ["pin" , "macros" , "attribute" ] |
| 9 | categories = ["no-std" , "no-std::no-alloc" , "rust-patterns" ] |
| 10 | exclude = ["/.*" , "/tools" , "/DEVELOPMENT.md" ] |
| 11 | description = "" " |
| 12 | A crate for safe and ergonomic pin-projection. |
| 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 | "pin_project_internal::*" , |
| 22 | ] |
| 23 | |
| 24 | [lib] |
| 25 | doc-scrape-examples = false |
| 26 | |
| 27 | [dependencies] |
| 28 | pin-project-internal = { version = "=1.1.10" , path = "pin-project-internal" } |
| 29 | |
| 30 | [dev-dependencies] |
| 31 | pin-project-auxiliary-macro = { path = "tests/auxiliary/macro" } |
| 32 | macrotest = { git = "https://github.com/taiki-e/macrotest.git" , branch = "dev-old-msrv-syn2" } # adjust overwrite behavior + no cargo-expand |
| 33 | rustversion = "1" |
| 34 | static_assertions = "1" |
| 35 | trybuild = { git = "https://github.com/taiki-e/trybuild.git" , branch = "dev-old-msrv-syn2" } # adjust overwrite behavior + lower MSRV |
| 36 | |
| 37 | [lints] |
| 38 | workspace = true |
| 39 | |
| 40 | [workspace] |
| 41 | resolver = "2" |
| 42 | members = [ |
| 43 | "pin-project-internal" , |
| 44 | "tests/auxiliary/macro" , |
| 45 | "tests/no-core" , |
| 46 | "tests/no-std" , |
| 47 | "tests/lint" , |
| 48 | "tests/rust-2015" , |
| 49 | ] |
| 50 | |
| 51 | # This table is shared by projects under github.com/taiki-e. |
| 52 | # Expect for unexpected_cfgs.check-cfg, it is not intended for manual editing. |
| 53 | [workspace.lints.rust] |
| 54 | deprecated_safe = "warn" |
| 55 | improper_ctypes = "warn" |
| 56 | improper_ctypes_definitions = "warn" |
| 57 | non_ascii_idents = "warn" |
| 58 | rust_2018_idioms = "warn" |
| 59 | single_use_lifetimes = "warn" |
| 60 | unexpected_cfgs = { level = "warn" , check-cfg = [ |
| 61 | ] } |
| 62 | unnameable_types = "warn" |
| 63 | unreachable_pub = "warn" |
| 64 | # unsafe_op_in_unsafe_fn = "warn" # Set at crate-level instead since https://github.com/rust-lang/rust/pull/100081 merged in Rust 1.65 is not available on MSRV |
| 65 | [workspace.lints.clippy] |
| 66 | all = "warn" # Downgrade deny-by-default lints |
| 67 | pedantic = "warn" |
| 68 | as_ptr_cast_mut = "warn" |
| 69 | as_underscore = "warn" |
| 70 | default_union_representation = "warn" |
| 71 | inline_asm_x86_att_syntax = "warn" |
| 72 | trailing_empty_array = "warn" |
| 73 | transmute_undefined_repr = "warn" |
| 74 | undocumented_unsafe_blocks = "warn" |
| 75 | unused_trait_names = "warn" |
| 76 | # Suppress buggy or noisy clippy lints |
| 77 | bool_assert_comparison = { level = "allow" , priority = 1 } |
| 78 | borrow_as_ptr = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 |
| 79 | cast_lossless = { level = "allow" , priority = 1 } # https://godbolt.org/z/Pv6vbGG6E |
| 80 | declare_interior_mutable_const = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 |
| 81 | doc_markdown = { level = "allow" , priority = 1 } |
| 82 | float_cmp = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 |
| 83 | 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 |
| 84 | lint_groups_priority = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12920 |
| 85 | manual_assert = { level = "allow" , priority = 1 } |
| 86 | manual_range_contains = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395 |
| 87 | missing_errors_doc = { level = "allow" , priority = 1 } |
| 88 | module_name_repetitions = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions |
| 89 | naive_bytecount = { level = "allow" , priority = 1 } |
| 90 | nonminimal_bool = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool |
| 91 | range_plus_one = { level = "allow" , priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one |
| 92 | similar_names = { level = "allow" , priority = 1 } |
| 93 | single_match = { level = "allow" , priority = 1 } |
| 94 | single_match_else = { level = "allow" , priority = 1 } |
| 95 | struct_excessive_bools = { level = "allow" , priority = 1 } |
| 96 | struct_field_names = { level = "allow" , priority = 1 } |
| 97 | too_many_arguments = { level = "allow" , priority = 1 } |
| 98 | too_many_lines = { level = "allow" , priority = 1 } |
| 99 | type_complexity = { level = "allow" , priority = 1 } |
| 100 | unreadable_literal = { level = "allow" , priority = 1 } |
| 101 | |