-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathCargo.toml
More file actions
66 lines (56 loc) · 1.53 KB
/
Cargo.toml
File metadata and controls
66 lines (56 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "pin-init"
version = "0.0.10"
edition = "2021"
rust-version = "1.82"
authors = [
"Benno Lossin <lossin@kernel.org>",
"Gary Guo <gary@garyguo.net>",
]
license = "MIT OR Apache-2.0"
description = "Library to facilitate safe pinned initialization"
readme = "README.md"
documentation = "https://docs.rs/pin-init"
repository = "https://github.com/Rust-for-Linux/pin-init"
keywords = ["safe", "pin", "init", "no-std", "rust-patterns"]
categories = ["no-std", "rust-patterns", "embedded"]
[dependencies]
pin-init-internal = { path = "./internal", version = "=0.0.6" }
[features]
default = ["std", "alloc"]
std = []
alloc = []
unsafe-pinned = []
[build-dependencies]
rustc_version = "0.4"
[dev-dependencies]
libc = "0.2"
trybuild = { version = "1.0", features = ["diff"] }
macrotest = "1.0"
[lints.rust]
stable_features = "allow"
unused_features = "allow"
non_ascii_idents = "deny"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(UI_TESTS)',
'cfg(NO_ALLOC_FAIL_TESTS)',
'cfg(kernel)',
] }
unsafe_op_in_unsafe_fn = "deny"
unused_attributes = "deny"
warnings = "deny"
[lints.rustdoc]
missing_crate_level_docs = "deny"
unescaped_backticks = "deny"
[lints.clippy]
# allow this until the modules in examples/ and tests/ are cleaned up
duplicate_mod = "allow"
ignored_unit_patterns = "deny"
mut_mut = "deny"
needless_bitwise_bool = "deny"
needless_continue = "deny"
needless_lifetimes = "deny"
no_mangle_with_rust_abi = "deny"
undocumented_unsafe_blocks = "deny"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"