|
1 | 1 | [package]
|
2 | 2 | name = "libc"
|
3 | 3 | version = "1.0.0-alpha.1"
|
4 |
| -authors = ["The Rust Project Developers"] |
5 |
| -license = "MIT OR Apache-2.0" |
6 |
| -readme = "README.md" |
7 |
| -edition = "2021" |
8 |
| -repository = "https://github.com/rust-lang/libc" |
9 |
| -homepage = "https://github.com/rust-lang/libc" |
10 |
| -documentation = "https://docs.rs/libc/" |
11 | 4 | keywords = ["libc", "ffi", "bindings", "operating", "system"]
|
12 | 5 | categories = ["external-ffi-bindings", "no-std", "os"]
|
13 |
| -build = "build.rs" |
14 | 6 | exclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"]
|
15 |
| -rust-version = "1.63" |
16 | 7 | description = "Raw FFI bindings to platform libraries like libc."
|
17 | 8 | publish = false # On the main branch, we don't want to publish anything
|
| 9 | +authors.workspace = true |
| 10 | +edition.workspace = true |
| 11 | +license.workspace = true |
| 12 | +repository.workspace = true |
| 13 | +rust-version.workspace = true |
18 | 14 |
|
19 | 15 | [package.metadata.docs.rs]
|
20 | 16 | features = ["extra_traits"]
|
@@ -140,9 +136,36 @@ std = []
|
140 | 136 | rustc-dep-of-std = ["rustc-std-workspace-core"]
|
141 | 137 | extra_traits = []
|
142 | 138 |
|
| 139 | +[lints] |
| 140 | +workspace = true |
| 141 | + |
143 | 142 | [workspace]
|
144 | 143 | members = [
|
145 | 144 | "ctest",
|
146 | 145 | "ctest-test",
|
147 | 146 | "libc-test",
|
148 | 147 | ]
|
| 148 | + |
| 149 | +[workspace.package] |
| 150 | +authors = ["The Rust Project Developers"] |
| 151 | +license = "MIT OR Apache-2.0" |
| 152 | +edition = "2021" |
| 153 | +repository = "https://github.com/rust-lang/libc" |
| 154 | +rust-version = "1.64" |
| 155 | + |
| 156 | +[workspace.lints.rust] |
| 157 | +# TODO: make idents consistent in each file |
| 158 | +# unused_qualifications = "warn" |
| 159 | + |
| 160 | +[workspace.lints.clippy] |
| 161 | +# TODO: all these are default lints and should probably be fixed |
| 162 | +identity_op = "allow" |
| 163 | +if_same_then_else = "allow" |
| 164 | +missing_safety_doc = "allow" |
| 165 | +non_minimal_cfg = "allow" |
| 166 | +precedence = "allow" |
| 167 | +redundant_field_names = "allow" |
| 168 | +redundant_static_lifetimes = "allow" |
| 169 | +unnecessary_cast = "allow" |
| 170 | +unused_unit = "allow" |
| 171 | +zero_ptr = "allow" |
0 commit comments