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