• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.56"
15name = "pin-project"
16version = "1.1.8"
17build = false
18exclude = [
19    "/.*",
20    "/tools",
21    "/DEVELOPMENT.md",
22]
23autolib = false
24autobins = false
25autoexamples = false
26autotests = false
27autobenches = false
28description = """
29A crate for safe and ergonomic pin-projection.
30"""
31readme = "README.md"
32keywords = [
33    "pin",
34    "macros",
35    "attribute",
36]
37categories = [
38    "no-std",
39    "no-std::no-alloc",
40    "rust-patterns",
41]
42license = "Apache-2.0 OR MIT"
43repository = "https://github.com/taiki-e/pin-project"
44
45[package.metadata.cargo_check_external_types]
46allowed_external_types = ["pin_project_internal::*"]
47
48[package.metadata.docs.rs]
49targets = ["x86_64-unknown-linux-gnu"]
50
51[lib]
52name = "pin_project"
53path = "src/lib.rs"
54doc-scrape-examples = false
55
56[[example]]
57name = "enum-default"
58path = "examples/enum-default.rs"
59
60[[example]]
61name = "enum-default-expanded"
62path = "examples/enum-default-expanded.rs"
63
64[[example]]
65name = "not_unpin"
66path = "examples/not_unpin.rs"
67
68[[example]]
69name = "not_unpin-expanded"
70path = "examples/not_unpin-expanded.rs"
71
72[[example]]
73name = "pinned_drop"
74path = "examples/pinned_drop.rs"
75
76[[example]]
77name = "pinned_drop-expanded"
78path = "examples/pinned_drop-expanded.rs"
79
80[[example]]
81name = "project_replace"
82path = "examples/project_replace.rs"
83
84[[example]]
85name = "project_replace-expanded"
86path = "examples/project_replace-expanded.rs"
87
88[[example]]
89name = "struct-default"
90path = "examples/struct-default.rs"
91
92[[example]]
93name = "struct-default-expanded"
94path = "examples/struct-default-expanded.rs"
95
96[[example]]
97name = "unsafe_unpin"
98path = "examples/unsafe_unpin.rs"
99
100[[example]]
101name = "unsafe_unpin-expanded"
102path = "examples/unsafe_unpin-expanded.rs"
103
104[[test]]
105name = "cfg"
106path = "tests/cfg.rs"
107
108[[test]]
109name = "compiletest"
110path = "tests/compiletest.rs"
111
112[[test]]
113name = "drop_order"
114path = "tests/drop_order.rs"
115
116[[test]]
117name = "expandtest"
118path = "tests/expandtest.rs"
119
120[[test]]
121name = "pin_project"
122path = "tests/pin_project.rs"
123
124[[test]]
125name = "pinned_drop"
126path = "tests/pinned_drop.rs"
127
128[[test]]
129name = "proper_unpin"
130path = "tests/proper_unpin.rs"
131
132[[test]]
133name = "repr_packed"
134path = "tests/repr_packed.rs"
135
136[[test]]
137name = "unsafe_unpin"
138path = "tests/unsafe_unpin.rs"
139
140[dependencies.pin-project-internal]
141version = "=1.1.8"
142
143[dev-dependencies.rustversion]
144version = "1"
145
146[dev-dependencies.static_assertions]
147version = "1"
148
149[lints.clippy]
150all = "warn"
151as_ptr_cast_mut = "warn"
152as_underscore = "warn"
153default_union_representation = "warn"
154inline_asm_x86_att_syntax = "warn"
155pedantic = "warn"
156trailing_empty_array = "warn"
157transmute_undefined_repr = "warn"
158undocumented_unsafe_blocks = "warn"
159
160[lints.clippy.bool_assert_comparison]
161level = "allow"
162priority = 1
163
164[lints.clippy.borrow_as_ptr]
165level = "allow"
166priority = 1
167
168[lints.clippy.cast_lossless]
169level = "allow"
170priority = 1
171
172[lints.clippy.declare_interior_mutable_const]
173level = "allow"
174priority = 1
175
176[lints.clippy.doc_markdown]
177level = "allow"
178priority = 1
179
180[lints.clippy.float_cmp]
181level = "allow"
182priority = 1
183
184[lints.clippy.incompatible_msrv]
185level = "allow"
186priority = 1
187
188[lints.clippy.lint_groups_priority]
189level = "allow"
190priority = 1
191
192[lints.clippy.manual_assert]
193level = "allow"
194priority = 1
195
196[lints.clippy.manual_range_contains]
197level = "allow"
198priority = 1
199
200[lints.clippy.missing_errors_doc]
201level = "allow"
202priority = 1
203
204[lints.clippy.module_name_repetitions]
205level = "allow"
206priority = 1
207
208[lints.clippy.naive_bytecount]
209level = "allow"
210priority = 1
211
212[lints.clippy.nonminimal_bool]
213level = "allow"
214priority = 1
215
216[lints.clippy.range_plus_one]
217level = "allow"
218priority = 1
219
220[lints.clippy.similar_names]
221level = "allow"
222priority = 1
223
224[lints.clippy.single_match]
225level = "allow"
226priority = 1
227
228[lints.clippy.single_match_else]
229level = "allow"
230priority = 1
231
232[lints.clippy.struct_excessive_bools]
233level = "allow"
234priority = 1
235
236[lints.clippy.struct_field_names]
237level = "allow"
238priority = 1
239
240[lints.clippy.too_many_arguments]
241level = "allow"
242priority = 1
243
244[lints.clippy.too_many_lines]
245level = "allow"
246priority = 1
247
248[lints.clippy.type_complexity]
249level = "allow"
250priority = 1
251
252[lints.clippy.unreadable_literal]
253level = "allow"
254priority = 1
255
256[lints.rust]
257deprecated_safe = "warn"
258improper_ctypes = "warn"
259improper_ctypes_definitions = "warn"
260non_ascii_idents = "warn"
261rust_2018_idioms = "warn"
262single_use_lifetimes = "warn"
263unreachable_pub = "warn"
264
265[lints.rust.unexpected_cfgs]
266level = "warn"
267priority = 0
268check-cfg = []
269