-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
39 lines (34 loc) · 1.21 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
[package]
name = "rust-ci-cd-template" # todo!("Change name")
description = "A rust ci/cd template for github" # todo!("Change description")
version = "0.2.8"
edition = "2021"
license = "CC0-1.0 OR MIT OR Apache-2.0" # todo!("Change licenses")
repository = "https://github.com/ameknite/rust-ci-cd-template" # todo!("Change repository")
rust-version = "1.81.0" # todo!("Change MSRV")
[dependencies]
# https://doc.rust-lang.org/cargo/reference/profiles.html
# https://github.com/johnthagen/min-sized-rust
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
panic = "abort"
strip = true
[lints.rust]
# https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#allowed-by-default-lints
unsafe_code = "warn"
unsafe_op_in_unsafe_fn = "warn"
missing-abi = "warn"
missing_docs = "warn"
[lints.clippy]
# https://rust-lang.github.io/rust-clippy/master/
# pedantic
pedantic = { level = "warn", priority = -1 }
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# restriction
undocumented_unsafe_blocks = "warn"
multiple_unsafe_ops_per_block = "warn"
allow_attributes = "warn"