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