forked from awslabs/mountpoint-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rustfmt and clippy into Makefile targets
- Loading branch information
1 parent
44c1223
commit 7f31af8
Showing
7 changed files
with
54 additions
and
28 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Most of these targets just exist so we can avoid running clippy and rustfmt on the vendored | ||
# fuser crate. If those tools ever get stabilized `ignore` features, or we stop vendoring, this can | ||
# go away. | ||
|
||
CRATES = aws-crt-s3-sys aws-crt-s3 s3-client s3-file-connector | ||
|
||
.PHONY: all | ||
all: | ||
cargo build --all-targets | ||
|
||
.PHONY: release | ||
release: | ||
cargo build --release --all-targets | ||
|
||
.PHONY: fmt | ||
fmt: | ||
@for crate in $(CRATES); do \ | ||
cargo fmt --manifest-path $$crate/Cargo.toml; \ | ||
done | ||
|
||
.PHONY: fmt-check | ||
fmt-check: | ||
@fail=0; \ | ||
for crate in $(CRATES); do \ | ||
cargo fmt --manifest-path $$crate/Cargo.toml -- --check || fail=1; \ | ||
done; \ | ||
exit $$fail | ||
|
||
.PHONY: clippy | ||
clippy: | ||
packages=`echo "$(CRATES)" | sed -E 's/(^| )/ -p /g'`; \ | ||
cargo clippy $$packages --no-deps --all-targets -- -D clippy::all |
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 @@ | ||
max_width = 120 | ||
ignore = ["vendor/"] |
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,5 +1,5 @@ | ||
[package] | ||
name = "aws-s3-fuse" | ||
name = "s3-file-connector" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
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