-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: pk5ls20 <pk5ls20@outlook.com>
- Loading branch information
1 parent
5615317
commit 4eb78e2
Showing
9 changed files
with
152 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
linker = "rust-lld" | ||
linker = "rust-lld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
default: | ||
@just --list | ||
|
||
info: | ||
@echo JUST PATH: {{ just_executable() }} | ||
@echo GIT PATH: {{ require('git') }} | ||
@echo CARGO PATH: {{ require('cargo') }} | ||
@echo GREP PATH: {{ require('grep') }} | ||
@echo XARGS PATH: {{ require('xargs') }} | ||
@echo TYPOS PATH: {{ require('typos') }} | ||
@echo DENO PATH: {{ require('deno') }} | ||
@echo TAPLO PATH: {{ require('taplo') }} | ||
@echo SHFMT PATH: {{ require('shfmt') }} | ||
|
||
check: info typoCheck fmtCheck clippyCheck buildCheck docCheck testCheck | ||
|
||
typoCheck: | ||
typos -c ./typos.toml | ||
|
||
fmtCheck: rustFmtCheck justFmtCheck mdFmtCheck tomlFmtCheck ymlFmtCheck shFmtCheck | ||
|
||
fmt: rustFmt justFmt mdFmt tomlFmt ymlFmt shFmt | ||
|
||
buildCheck: | ||
cargo build --locked | ||
|
||
clippyCheck: | ||
cargo clippy --locked --all-targets -- --deny warnings | ||
|
||
docCheck: | ||
cargo doc --no-deps --locked | ||
|
||
testCheck: | ||
cargo test --locked | ||
|
||
rustFmtCheck: | ||
cargo fmt --check | ||
|
||
rustFmt: | ||
cargo fmt | ||
|
||
justFmtCheck: | ||
just --unstable --fmt --check | ||
|
||
justFmt: | ||
just --unstable --fmt | ||
|
||
mdFmtCheck: | ||
git ls-files | grep -E '^.*\.(md|MD)$' | xargs deno fmt --check --ext md | ||
|
||
mdFmt: | ||
git ls-files | grep -E '^.*\.(md|MD)$' | xargs deno fmt --ext md | ||
|
||
ymlFmtCheck: | ||
git ls-files | grep -E '^.*\.yml$' | xargs deno fmt --check --ext yml | ||
|
||
ymlFmt: | ||
git ls-files | grep -E '^.*\.yml$' | xargs deno fmt --ext yml | ||
|
||
tomlFmtCheck: | ||
git ls-files | grep -E '^.*\.toml$' | xargs taplo format --check | ||
|
||
tomlFmt: | ||
git ls-files | grep -E '^.*\.toml$' | xargs taplo format | ||
|
||
shFmt: | ||
git ls-files | grep -E '^scripts/.*$' | xargs shfmt -p -s -i 2 -ci -sr -kp -fn -w | ||
|
||
shFmtCheck: | ||
git ls-files | grep -E '^scripts/.*$' | xargs shfmt -p -s -i 2 -ci -sr -kp -fn -d | ||
|
||
alias c := check | ||
alias i := info | ||
alias f := fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
## Protos | ||
The vast majority of the proto files originate from [LagrangeDev/LagrangeProto](https://github.com/LagrangeDev/LagrangeProto). | ||
|
||
The vast majority of the proto files originate from | ||
[LagrangeDev/LagrangeProto](https://github.com/LagrangeDev/LagrangeProto). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
channel = "nightly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters