Add project files.

This commit is contained in:
Bauke 2022-10-06 14:48:31 +02:00
commit 6f142f5c39
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
4 changed files with 55 additions and 0 deletions

5
.env.example Normal file
View File

@ -0,0 +1,5 @@
# The database connection string for PostgreSQL.
# DATABASE_URL="postgres://user:password@127.0.0.1:5432/database"
# The User-Agent string for HTTP requests, replace the email with yours.
# USER_AGENT="Tildes Statistics (your-email@example.org)"

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
# Generated by Cargo
debug/
target/
# Code coverage results
coverage/
# Environment configuration
.env

39
Makefile.toml Normal file
View File

@ -0,0 +1,39 @@
[tasks.fmt]
command = "cargo"
args = ["fmt", "${@}"]
[tasks.check]
command = "cargo"
args = ["check", "${@}"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "${@}"]
[tasks.test]
command = "cargo"
args = ["test", "${@}"]
[tasks.doc]
command = "cargo"
args = ["doc", "${@}"]
[tasks.build]
command = "cargo"
args = ["build", "${@}"]
[tasks.complete-check]
dependencies = ["fmt", "check", "clippy", "test", "doc", "build"]
[tasks.code-coverage]
workspace = false
install_crate = "cargo-tarpaulin"
command = "cargo"
args = [
"tarpaulin",
"--exclude-files=target/*",
"--out=html",
"--output-dir=coverage",
"--skip-clean",
"--target-dir=target/tarpaulin"
]

2
rustfmt.toml Normal file
View File

@ -0,0 +1,2 @@
max_width = 80
tab_spaces = 2