-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
58 lines (48 loc) · 1.53 KB
/
Cargo.toml
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
[package]
name = "pin-init"
version = "0.0.9"
edition = "2021"
authors = ["y86-dev"]
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]
paste = "1.0"
pin-init-internal = { path = "./internal", version = "=0.0.5" }
[features]
default = ["std", "alloc"]
std = []
alloc = []
[build-dependencies]
rustc_version = "0.4"
[dev-dependencies]
libc = "0.2"
trybuild = { version = "1.0", features = ["diff"] }
macrotest = "1.0"
# needed for macrotest, have to enable verbatim feature to be able to format `&raw` expressions.
prettyplease = { version = "0.2", features = ["verbatim"] }
[lints.rust]
non_ascii_idents = "deny"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(NO_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"