diff --git a/.woodpecker/.rustfmt.yml b/.woodpecker/.rustfmt.yml new file mode 100644 index 0000000..4bfc73d --- /dev/null +++ b/.woodpecker/.rustfmt.yml @@ -0,0 +1,5 @@ +pipeline: + lint: + image: 'rustlang/rust:nightly' + commands: + - cargo fmt -- --check diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml new file mode 100644 index 0000000..9b4780c --- /dev/null +++ b/.woodpecker/.test.yml @@ -0,0 +1,15 @@ +# When block for each step is temporary until top-level when is properly implemented +pipeline: + clippy: + image: 'rust:1.57' + commands: + - cargo clippy -- -D clippy::all --no-deps + when: + event: pull_request + + tests: + image: 'rust:1.57' + commands: + - cargo test + when: + event: pull_request diff --git a/Cargo.toml b/Cargo.toml index 1a739ac..a6fb6b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,16 +9,16 @@ edition = "2018" # Backend web framework rocket = { version = "0.5.0-rc.1", features = [ "json", "uuid" ] } # Used to (de)serialize JSON -serde = { version = "1.0.132", features = [ "derive" ] } +serde = { version = "1.0.133", features = [ "derive" ] } rand = "0.8.4" uuid = { version = "0.8.2", features = ["serde"] } # Authentification jwt = "0.15.0" -hmac = "*" -sha2 = "*" +hmac = "0.11.0" +sha2 = { version = "0.9.0", default_features = false } # Timestamps for JWT tokens -chrono = { version = "*", features = [ "serde" ] } +chrono = { version = "0.4.19", features = [ "serde" ] } # Encoding of refresh tokens base64 = "0.13.0" # Reading in configuration files -figment = { version = "*", features = [ "yaml" ] } +figment = { version = "0.10.6", features = [ "yaml" ] }