1 | [package] |
2 | name = "pin-project" |
3 | version = "1.1.5" #publish:version |
4 | edition = "2021" |
5 | rust-version = "1.56" |
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.5" , 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" } # 2021 edition support + syn 2.0 + no cargo-expand + adjust overwrite behavior |
33 | rustversion = "1" |
34 | static_assertions = "1" |
35 | trybuild = { git = "https://github.com/taiki-e/trybuild.git" , branch = "dev" } # adjust overwrite behavior |
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 | # It is not intended for manual editing. |
53 | [workspace.lints.rust] |
54 | improper_ctypes = "warn" |
55 | improper_ctypes_definitions = "warn" |
56 | non_ascii_idents = "warn" |
57 | rust_2018_idioms = "warn" |
58 | single_use_lifetimes = "warn" |
59 | unreachable_pub = "warn" |
60 | # 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 |
61 | [workspace.lints.clippy] |
62 | all = "warn" # Downgrade deny-by-default lints |
63 | pedantic = "warn" |
64 | as_ptr_cast_mut = "warn" |
65 | default_union_representation = "warn" |
66 | inline_asm_x86_att_syntax = "warn" |
67 | trailing_empty_array = "warn" |
68 | transmute_undefined_repr = "warn" |
69 | undocumented_unsafe_blocks = "warn" |
70 | # Suppress buggy or noisy clippy lints |
71 | bool_assert_comparison = { level = "allow" , priority = 1 } |
72 | borrow_as_ptr = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 |
73 | declare_interior_mutable_const = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 |
74 | doc_markdown = { level = "allow" , priority = 1 } |
75 | float_cmp = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 |
76 | manual_assert = { level = "allow" , priority = 1 } |
77 | manual_range_contains = { level = "allow" , priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395 |
78 | missing_errors_doc = { level = "allow" , priority = 1 } |
79 | module_name_repetitions = { level = "allow" , priority = 1 } |
80 | similar_names = { level = "allow" , priority = 1 } |
81 | single_match = { level = "allow" , priority = 1 } |
82 | single_match_else = { level = "allow" , priority = 1 } |
83 | struct_excessive_bools = { level = "allow" , priority = 1 } |
84 | struct_field_names = { level = "allow" , priority = 1 } |
85 | too_many_arguments = { level = "allow" , priority = 1 } |
86 | too_many_lines = { level = "allow" , priority = 1 } |
87 | type_complexity = { level = "allow" , priority = 1 } |
88 | |