1
1
# Use MOLD linker where possible, but ONLY in CI applicable targets.
2
- # cspell: words rustflags armv gnueabihf msvc nextest idents rustdocflags
3
- # cspell: words rustdoc lintfix lintrestrict testfast testdocs codegen testci testunit
4
- # cspell: words fmtchk fmtfix testcov
5
2
6
3
# Configure how Docker container targets build.
7
4
8
- # If you want to customize these targets for a local build, then customize them in you :
5
+ # If you want to customize these targets for a local build, then customize them in your :
9
6
# $CARGO_HOME/config.toml
10
7
# NOT in the project itself.
11
8
# These targets are ONLY the targets used by CI and inside docker builds.
@@ -28,48 +25,12 @@ rustflags = [
28
25
" -C" , " target-feature=-crt-static"
29
26
]
30
27
31
- [target .wasm32-unknown-unknown ]
32
- rustflags = [" --cap-lints" , " warn" ]
33
-
34
28
[build ]
35
-
36
- rustflags = [
37
- " -D" ,
38
- " warnings" ,
39
- " -D" ,
40
- " missing_docs" ,
41
- " -D" ,
42
- " let_underscore_drop" ,
43
- " -D" ,
44
- " non_ascii_idents" ,
45
- " -D" ,
46
- " single_use_lifetimes" ,
47
- " -D" ,
48
- " trivial_casts" ,
49
- " -D" ,
50
- " trivial_numeric_casts" ,
51
- ]
52
-
29
+ rustflags = []
53
30
rustdocflags = [
54
31
" --enable-index-page" ,
55
32
" -Z" ,
56
33
" unstable-options" ,
57
- " -D" ,
58
- " warnings" ,
59
- " -D" ,
60
- " missing_docs" ,
61
- " -D" ,
62
- " rustdoc::broken_intra_doc_links" ,
63
- " -D" ,
64
- " rustdoc::invalid_codeblock_attributes" ,
65
- " -D" ,
66
- " rustdoc::invalid_html_tags" ,
67
- " -D" ,
68
- " rustdoc::invalid_rust_codeblocks" ,
69
- " -D" ,
70
- " rustdoc::bare_urls" ,
71
- " -D" ,
72
- " rustdoc::unescaped_backticks" ,
73
34
]
74
35
75
36
[profile .dev ]
@@ -78,7 +39,7 @@ debug = true
78
39
debug-assertions = true
79
40
overflow-checks = true
80
41
lto = false
81
- panic = ' unwind'
42
+ panic = " unwind"
82
43
incremental = true
83
44
codegen-units = 256
84
45
@@ -88,7 +49,7 @@ debug = false
88
49
debug-assertions = false
89
50
overflow-checks = false
90
51
lto = " thin"
91
- panic = ' unwind'
52
+ panic = " unwind"
92
53
incremental = false
93
54
codegen-units = 16
94
55
@@ -110,14 +71,14 @@ incremental = false
110
71
codegen-units = 16
111
72
112
73
[alias ]
113
- lint = " clippy --all-targets -- -D warnings -D clippy::pedantic -D clippy::unwrap_used -D clippy::expect_used -D clippy::exit -D clippy::get_unwrap -D clippy::index_refutable_slice -D clippy::indexing_slicing -D clippy::match_on_vec_items -D clippy::match_wild_err_arm -D clippy::missing_panics_doc -D clippy::panic -D clippy::string_slice -D clippy::unchecked_duration_subtraction -D clippy::unreachable -D clippy::missing_docs_in_private_items "
114
- lintfix = " clippy --all-targets --fix --allow-dirty -- -D warnings -D clippy::pedantic -D clippy::unwrap_used -D clippy::expect_used -D clippy::exit -D clippy::get_unwrap -D clippy::index_refutable_slice -D clippy::indexing_slicing -D clippy::match_on_vec_items -D clippy::match_wild_err_arm -D clippy::missing_panics_doc -D clippy::panic -D clippy::string_slice -D clippy::unchecked_duration_subtraction -D clippy::unreachable -D clippy::missing_docs_in_private_items "
115
- lint-vscode = " clippy --message-format=json-diagnostic-rendered-ansi --all-targets -- -D warnings -D clippy::pedantic -D clippy::unwrap_used -D clippy::expect_used -D clippy::exit -D clippy::get_unwrap -D clippy::index_refutable_slice -D clippy::indexing_slicing -D clippy::match_on_vec_items -D clippy::match_wild_err_arm -D clippy::missing_panics_doc -D clippy::panic -D clippy::string_slice -D clippy::unchecked_duration_subtraction -D clippy::unreachable -D clippy::missing_docs_in_private_items "
74
+ lint = " clippy --all-targets"
75
+ lintfix = " clippy --all-targets --fix --allow-dirty"
76
+ lint-vscode = " clippy --message-format=json-diagnostic-rendered-ansi --all-targets"
116
77
117
78
docs = " doc --release --no-deps --document-private-items --bins --lib --examples"
118
79
# nightly docs build broken... when they are'nt we can enable these docs... --unit-graph --timings=html,json -Z unstable-options"
119
- testunit = " nextest run --release --bins --lib -P ci"
120
- testcov = " llvm-cov nextest --release --bins --lib -P ci"
80
+ testunit = " nextest run --release --bins --lib --tests --benches --no-fail-fast - P ci"
81
+ testcov = " llvm-cov nextest --release --bins --lib --tests --benches --no-fail-fast - P ci"
121
82
testdocs = " test --doc --release"
122
83
123
84
# Rust formatting, MUST be run with +nightly
@@ -127,6 +88,6 @@ fmtfix = "fmt -- -v"
127
88
[term ]
128
89
quiet = false # whether cargo output is quiet
129
90
verbose = false # whether cargo provides verbose output
130
- color = ' auto' # whether cargo colorizes output use `CARGO_TERM_COLOR="off"` to disable.
131
- progress.when = ' never' # whether cargo shows progress bar
91
+ color = " auto" # whether cargo colorizes output use `CARGO_TERM_COLOR="off"` to disable.
92
+ progress.when = " never" # whether cargo shows progress bar
132
93
progress.width = 80 # width of progress bar
0 commit comments