1[package]
2name = "pin-project-lite"
3version = "0.2.16" #publish:version
4edition = "2018"
5rust-version = "1.37"
6license = "Apache-2.0 OR MIT"
7repository = "https://github.com/taiki-e/pin-project-lite"
8keywords = ["pin", "macros"]
9categories = ["no-std", "no-std::no-alloc", "rust-patterns"]
10exclude = ["/.*", "/tools", "/DEVELOPMENT.md"]
11description = """
12A lightweight version of pin-project written with declarative macros.
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]
22
23[lib]
24doc-scrape-examples = false
25
26[dev-dependencies]
27macrotest = { git = "https://github.com/taiki-e/macrotest.git", branch = "dev-old-msrv" } # adjust overwrite behavior + no cargo-expand + lower MSRV
28rustversion = "1"
29static_assertions = "1"
30trybuild = { git = "https://github.com/taiki-e/trybuild.git", branch = "dev-old-msrv" } # adjust overwrite behavior + lower MSRV
31
32[lints]
33workspace = true
34
35[workspace]
36members = [
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]
45deprecated_safe = "warn"
46improper_ctypes = "warn"
47improper_ctypes_definitions = "warn"
48non_ascii_idents = "warn"
49rust_2018_idioms = "warn"
50single_use_lifetimes = "warn"
51unexpected_cfgs = { level = "warn", check-cfg = [
52] }
53unreachable_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]
56all = "warn" # Downgrade deny-by-default lints
57pedantic = "warn"
58as_ptr_cast_mut = "warn"
59as_underscore = "warn"
60default_union_representation = "warn"
61inline_asm_x86_att_syntax = "warn"
62trailing_empty_array = "warn"
63transmute_undefined_repr = "warn"
64undocumented_unsafe_blocks = "warn"
65# Suppress buggy or noisy clippy lints
66bool_assert_comparison = { level = "allow", priority = 1 }
67borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286
68cast_lossless = { level = "allow", priority = 1 } # https://godbolt.org/z/Pv6vbGG6E
69declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665
70doc_markdown = { level = "allow", priority = 1 }
71float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725
72incompatible_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
73lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12920
74manual_assert = { level = "allow", priority = 1 }
75manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395
76missing_errors_doc = { level = "allow", priority = 1 }
77module_name_repetitions = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions
78naive_bytecount = { level = "allow", priority = 1 }
79nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool
80range_plus_one = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one
81similar_names = { level = "allow", priority = 1 }
82single_match = { level = "allow", priority = 1 }
83single_match_else = { level = "allow", priority = 1 }
84struct_excessive_bools = { level = "allow", priority = 1 }
85struct_field_names = { level = "allow", priority = 1 }
86too_many_arguments = { level = "allow", priority = 1 }
87too_many_lines = { level = "allow", priority = 1 }
88type_complexity = { level = "allow", priority = 1 }
89unreadable_literal = { level = "allow", priority = 1 }
90