From b4ea396b36268279df55f3e4a500899f45a38687 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 26 Dec 2021 20:35:22 +0100 Subject: [PATCH 1/3] Properly pinned dependencies --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a739ac..9ad50d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,11 +14,11 @@ 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" ] } From 5bb7214a2d743400b0f1ec3b3c30254be93f367b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 1 Jan 2022 22:01:09 +0000 Subject: [PATCH 2/3] Update Rust crate serde to 1.0.133 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9ad50d5..a6fb6b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ 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 From ca9d44e7dba4bdc65a2099a78ef4c3aced51c76e Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Mon, 3 Jan 2022 12:46:29 +0100 Subject: [PATCH 3/3] Added CI configuration --- .woodpecker/.rustfmt.yml | 5 +++++ .woodpecker/.test.yml | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .woodpecker/.rustfmt.yml create mode 100644 .woodpecker/.test.yml 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