forked from boustrophedon/pgtemp
-
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.
Initial commit with two passing tests
- Loading branch information
0 parents
commit 79bbb46
Showing
9 changed files
with
937 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
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,14 @@ | ||
[package] | ||
name = "pgtemp" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
tempfile = "^3" | ||
libc = "^0.2" | ||
url = "^2.5" | ||
tokio = { version = "^1", features = ["rt"] } | ||
|
||
[dev-dependencies] | ||
# add extra features for dev dependencies | ||
tokio = { version = "^1", features = ["rt", "fs"] } |
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,36 @@ | ||
build: | ||
cargo build --all-features | ||
|
||
# Run all tests and examples | ||
test: | ||
cargo test --tests --examples --all-features | ||
|
||
# Run all tests with and without all features | ||
test-ci: | ||
cargo test --target=$(TARGET_TRIPLE) --tests --examples --all-features | ||
cargo test --target=$(TARGET_TRIPLE) --tests --examples --no-default-features | ||
|
||
# Run cargo fmt | ||
fmt: | ||
cargo fmt | ||
|
||
# Run clippy and fmt --check | ||
lint: | ||
cargo clippy --no-deps --all-targets --all-features -- -W clippy::pedantic \ | ||
-A clippy::let-unit-value \ | ||
-A clippy::wildcard-imports \ | ||
-A clippy::module-name-repetitions \ | ||
-A clippy::uninlined-format-args | ||
cargo fmt --check | ||
|
||
# Generate docs | ||
doc: | ||
RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps | ||
|
||
# Compute test coverage for CI with llvm-cov | ||
coverage-ci: | ||
cargo llvm-cov --tests --examples --all-targets --all-features --workspace --lcov --output-path lcov.info | ||
|
||
# Compute test coverage with HTML output | ||
coverage: | ||
cargo llvm-cov --tests --examples --all-targets --all-features --workspace --html |
Oops, something went wrong.