-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
249 additions
and
223 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,42 +1,6 @@ | ||
install: install-rust install-typeshare install-postgres install-diesel | ||
@echo Install Rust | ||
@curl curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
install: install-rust | ||
|
||
install-rust: | ||
@echo Install Rust | ||
@curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
@cargo install cargo-machete | ||
|
||
install-typeshare: | ||
@echo Install typeshare-cli | ||
@cargo install typeshare-cli --version 1.11.0 --force | ||
|
||
install-diesel: | ||
@cargo install diesel_cli --no-default-features --features postgres --version 2.2.4 --force | ||
|
||
install-postgres: | ||
brew install libpq postgresql@15 | ||
brew link postgresql@15 | ||
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib" | ||
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include" | ||
|
||
test: | ||
cargo test --workspace --quiet | ||
|
||
format: | ||
cargo fmt -q --all | ||
|
||
lint: | ||
cargo clippy --version | ||
cargo clippy -- -D warnings | ||
fix: | ||
cargo clippy --fix --allow-dirty --allow-staged --workspace --quiet | ||
|
||
unused: | ||
cargo machete | ||
|
||
migrate: | ||
diesel migration run | ||
|
||
localize: | ||
@sh scripts/localize.sh core crates/localizer/i18n | ||
@curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
cargo install just |
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
Oops, something went wrong.