File tree Expand file tree Collapse file tree 10 files changed +99
-65
lines changed Expand file tree Collapse file tree 10 files changed +99
-65
lines changed Original file line number Diff line number Diff line change
1
+ [build ]
2
+ incremental = true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
8
8
env :
9
9
CARGO_TERM_COLOR : always
10
+ CARGO_INCREMENTAL : false
10
11
11
12
jobs :
12
13
build-test :
@@ -15,16 +16,26 @@ jobs:
15
16
16
17
matrix :
17
18
include :
18
- - os : windows-latest
19
- target : x86_64-pc-windows-msvc
20
-
21
19
- os : ubuntu-latest
22
20
target : x86_64-unknown-linux-gnu
23
-
21
+ toolchain : stable
22
+ - os : ubuntu-latest
23
+ target : x86_64-unknown-linux-gnu
24
+ toolchain : nightly
24
25
- os : macos-latest
25
26
target : x86_64-apple-darwin
27
+ toolchain : stable
28
+ - os : macos-latest
29
+ target : x86_64-apple-darwin
30
+ toolchain : nightly
31
+ - os : windows-latest
32
+ target : x86_64-pc-windows-msvc
33
+ toolchain : stable
34
+ - os : windows-latest
35
+ target : x86_64-pc-windows-msvc
36
+ toolchain : nightly
26
37
27
- name : Build & Test (${{ matrix.target }})
38
+ name : Build & Test (${{ matrix.target }} - ${{ matrix.toolchain }} )
28
39
runs-on : ${{ matrix.os }}
29
40
30
41
env :
37
48
- name : Install Rust toolchain
38
49
uses : actions-rs/toolchain@v1
39
50
with :
40
- toolchain : stable
51
+ toolchain : ${{ matrix.toolchain }}
41
52
target : ${{ matrix.target }}
42
53
profile : minimal
43
54
override : true
46
57
if : matrix.target == 'x86_64-unknown-linux-gnu'
47
58
uses : actions-rs/toolchain@v1
48
59
with :
49
- toolchain : stable
60
+ toolchain : ${{ matrix.toolchain }}
50
61
target : ${{ matrix.target }}
51
62
profile : minimal
52
63
override : true
Original file line number Diff line number Diff line change 2
2
# will have compiled files and executables
3
3
/target /
4
4
5
- # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6
- # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7
- # Cargo.lock
8
-
9
5
# These are backup files generated by rustfmt
10
6
** /* .rs.bk
11
7
8
+ # Environment variables
9
+ * .env
10
+
12
11
# Log files
13
12
* .log
14
13
15
- # JetBrains project config folder
14
+ # JetBrains project config folder.
16
15
.idea
16
+ .fleet
17
+
18
+ # Ignore Vim temporary and swap files.
19
+ * .sw ?
20
+ * ~
17
21
18
- # Custom config, copied from `default-config.toml`
19
- config.toml
22
+ # Ignore nix build output
23
+ result
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.6 .0
3
+ rev : v5.0 .0
4
4
hooks :
5
5
- id : check-merge-conflict
6
6
- id : check-toml
@@ -14,8 +14,29 @@ repos:
14
14
- id : cargo-fmt
15
15
name : cargo fmt
16
16
entry : cargo fmt --
17
- language : rust
17
+ language : system
18
18
types : [rust]
19
+ pass_filenames : false # This makes it a lot faster
20
+
21
+ # `actionlint` hook, for verifying correct syntax in GitHub Actions workflows.
22
+ # Some additional configuration for `actionlint` can be found in `.github/actionlint.yaml`.
23
+ - repo : https://github.com/rhysd/actionlint
24
+ rev : v1.7.7
25
+ hooks :
26
+ - id : actionlint
27
+ stages :
28
+ # This hook is disabled by default, since it's quite slow.
29
+ # To run all hooks *including* this hook, use `uvx pre-commit run -a --hook-stage=manual`.
30
+ # To run *just* this hook, use `uvx pre-commit run -a actionlint --hook-stage=manual`.
31
+ - manual
32
+ args :
33
+ - " -ignore=SC2129" # ignorable stylistic lint from shellcheck
34
+ - " -ignore=SC2016" # another shellcheck lint: seems to have false positives?
35
+ additional_dependencies :
36
+ # actionlint has a shellcheck integration which extracts shell scripts in `run:` steps from GitHub Actions
37
+ # and checks these with shellcheck. This is arguably its most useful feature,
38
+ # but the integration only works if shellcheck is installed
39
+ - " github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.10.0"
19
40
20
41
ci :
21
42
autofix_commit_msg : |
26
47
autoupdate_branch : " "
27
48
autoupdate_commit_msg : " [pre-commit.ci] pre-commit autoupdate"
28
49
autoupdate_schedule : weekly
29
- skip : []
50
+ skip : [cargo-fmt ]
30
51
submodules : false
Original file line number Diff line number Diff line change 1
1
{
2
2
"[rust]" : {
3
- "editor.defaultFormatter" : " rust-lang.rust-analyzer" ,
3
+ "editor.defaultFormatter" : " rust-lang.rust-analyzer"
4
4
},
5
5
"rust-analyzer.check.command" : " clippy" ,
6
- "rust-analyzer.diagnostics.enable " : true ,
6
+ "rust-analyzer.rustfmt.extraArgs " : [ " +nightly " ] ,
7
7
"workbench.colorCustomizations" : {
8
8
"editor.inlayHints.fontSize" : 14 ,
9
9
"editorInlayHint.background" : " #00000000" ,
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ edition = "2021"
6
6
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
7
8
8
[dependencies ]
9
- serde = { version = " 1.0.203 " , features = [ " derive" ] }
10
- toml = " 0.8.14 "
9
+ serde = { version = " 1.0.219 " , features = [ " derive" ] }
10
+ toml = " 0.8.20 "
11
11
color-eyre = " 0.6.3"
12
12
13
13
[profile .dev .package .backtrace ]
@@ -19,4 +19,8 @@ path = "src/main.rs"
19
19
name = " rust-binary-project-template"
20
20
21
21
[profile .release ]
22
- lto = " thin"
22
+ panic = " abort"
23
+ codegen-units = 1
24
+ lto = true
25
+ opt-level = " s"
26
+ strip = true
Original file line number Diff line number Diff line change
1
+ edition = " 2024"
1
2
newline_style = " Unix"
2
3
use_try_shorthand = true
3
4
use_field_init_shorthand = true
5
+ group_imports = " StdExternalCrate"
6
+ imports_granularity = " Crate"
Original file line number Diff line number Diff line change
1
+ #![ forbid( unsafe_code) ]
1
2
#![ warn( clippy:: nursery, clippy:: pedantic) ]
2
3
#![ allow( clippy:: module_name_repetitions, clippy:: future_not_send) ]
3
4
You can’t perform that action at this time.
0 commit comments