Compare commits
86 Commits
v0.33.0
...
feature/re
Author | SHA1 | Date | |
---|---|---|---|
|
78078132ce | ||
|
6aa253d44e | ||
|
d461a8f6a1 | ||
|
4847cc4f1f | ||
|
bef518d594 | ||
|
c22cc59924 | ||
|
a4e28984ef | ||
|
f4372c3248 | ||
|
e9554a20a7 | ||
|
7862446e16 | ||
|
b4a7444442 | ||
|
66861cb4d3 | ||
e6b1dfece8
|
|||
|
6837660a79 | ||
|
109886ad9a | ||
|
dcadae98b6 | ||
|
4845826023 | ||
ce9db6b4a7
|
|||
24f2d43550
|
|||
|
43bbf4d377 | ||
|
23d346d899 | ||
|
9186de3b53 | ||
|
59b1ff41fc | ||
|
17016c39bf | ||
|
6041c5367b | ||
|
5914f9d1ad | ||
|
ee069dd079 | ||
|
82bc044321 | ||
|
f4895d8c3b | ||
|
0d9be14496 | ||
|
ef769c9d5a | ||
bcf21906c8
|
|||
|
abe637f878 | ||
|
bcc9d77622 | ||
ac88f591b0
|
|||
|
38cf6cbf6b | ||
|
1b06818a66 | ||
7de5a420d2
|
|||
|
b546ee6682 | ||
|
19fb89b5a2 | ||
|
90bb04386e | ||
|
eb35e745de | ||
|
41ecaa8ac9 | ||
|
6f23f4c13d | ||
|
f1640fdc36 | ||
|
3f6fb6bac9 | ||
3b51b2c7df
|
|||
|
d0ce2c7f89 | ||
|
b14e6cbf71 | ||
|
a9b7368847 | ||
|
b3cc22af6c | ||
037e520beb
|
|||
|
119dcd4cff | ||
081ca836bc
|
|||
62114219e2
|
|||
|
38b86aa490 | ||
|
88eab864b1 | ||
|
864cbe1c73 | ||
|
ced16e2e6b | ||
|
834085df92 | ||
|
fd3746e781 | ||
|
45b45eebc2 | ||
|
914ee4b637 | ||
|
e57294ff4c | ||
|
7129c8f9c4 | ||
|
80235319b8 | ||
|
68b31cbcdb | ||
|
1fabfdc27c | ||
|
02c6a7ccc8 | ||
|
5652f46e2f | ||
|
140074171b | ||
|
519925762a | ||
|
e669499a6f | ||
|
7ef2f8f87c | ||
|
30ef5cf41f | ||
|
5c5b848177 | ||
|
ba72053fa1 | ||
|
79c94f964f | ||
|
36c0b08067 | ||
|
78383c291b | ||
|
fe271c764e | ||
|
29f9765254 | ||
|
70d21bd0db | ||
|
fdd2883f3b | ||
|
aff5ba2e0b | ||
|
5b2d1e9016 |
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
@@ -10,3 +10,15 @@ updates:
|
|||||||
- vbrandl
|
- vbrandl
|
||||||
labels:
|
labels:
|
||||||
- dependencies
|
- dependencies
|
||||||
|
- dependabot
|
||||||
|
|
||||||
|
- package-ecosystem: 'github-actions'
|
||||||
|
directory: '/'
|
||||||
|
schedule:
|
||||||
|
interval: 'daily'
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
assignees:
|
||||||
|
- vbrandl
|
||||||
|
labels:
|
||||||
|
- dependabot
|
||||||
|
- dependencies
|
||||||
|
26
.github/workflows/dependabot-changelog.yml
vendored
Normal file
26
.github/workflows/dependabot-changelog.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: 'Dependabot Changelog'
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
- labeled
|
||||||
|
- unlabeled
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changelog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ACTION_TOKEN }}
|
||||||
|
- uses: dangoslen/dependabot-changelog-helper@v3
|
||||||
|
with:
|
||||||
|
activationLabel: 'dependabot'
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: "Update Changelog"
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Cache cargo registry, index and build directory
|
- name: Cache cargo registry, index and build directory
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry
|
~/.cargo/registry
|
||||||
|
62
CHANGELOG.md
62
CHANGELOG.md
@@ -4,6 +4,68 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Dependencies
|
||||||
|
- Bump `serde` from 1.0.160 to 1.0.163 (#613, #617)
|
||||||
|
- Bump `actions/cache` from 2 to 3 (#616)
|
||||||
|
- Bump `tokio` from 1.28.0 to 1.28.1 (#618)
|
||||||
|
|
||||||
|
|
||||||
|
## [0.35.0] 2023-05-04
|
||||||
|
|
||||||
|
* Updated [`h2`](https://github.com/hyperium/h2) from 0.3.16 to 0.3.17, fixes [SEC#11] ([#599])
|
||||||
|
* Updated [`git2`](https://github.com/rust-lang/git2-rs) from 0.16.1 to 0.17.0 ([#602])
|
||||||
|
* Updated [`git2`](https://github.com/rust-lang/git2-rs) from 0.17.0 to 0.17.1 ([#603])
|
||||||
|
* Updated [`tracing-subscriber`](https://github.com/tokio-rs/tracing) from 0.3.16 to 0.3.17 ([#604])
|
||||||
|
* Updated [`tokio`](https://github.com/tokio-rs/tokio) from 1.27.0 to 1.28.0 ([#605])
|
||||||
|
* Updated [`tracing`](https://github.com/tokio-rs/tracing) from 0.1.37 to 0.1.38 ([#607])
|
||||||
|
* Updated [`vergen`](https://github.com/rustyhorde/vergen) from 8.1.1 to 8.1.3 ([#608])
|
||||||
|
* Downgrade yanked [`tracing`](https://github.com/tokio-rs/tracing) 0.1.38 to 0.1.37 ([#611])
|
||||||
|
* Updated [`reqwest`](https://github.com/seanmonstar/reqwest) from 0.11.16 to 0.11.17 ([#609])
|
||||||
|
* Updated [`anyhow`](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.71 ([#610])
|
||||||
|
|
||||||
|
[#599]: https://github.com/vbrandl/hoc/pull/599
|
||||||
|
[#602]: https://github.com/vbrandl/hoc/pull/602
|
||||||
|
[#603]: https://github.com/vbrandl/hoc/pull/603
|
||||||
|
[#604]: https://github.com/vbrandl/hoc/pull/604
|
||||||
|
[#605]: https://github.com/vbrandl/hoc/pull/605
|
||||||
|
[#607]: https://github.com/vbrandl/hoc/pull/607
|
||||||
|
[#608]: https://github.com/vbrandl/hoc/pull/608
|
||||||
|
[#611]: https://github.com/vbrandl/hoc/pull/611
|
||||||
|
[#609]: https://github.com/vbrandl/hoc/pull/609
|
||||||
|
[#610]: https://github.com/vbrandl/hoc/pull/610
|
||||||
|
|
||||||
|
[SEC#11]: https://github.com/vbrandl/hoc/security/dependabot/11
|
||||||
|
|
||||||
|
|
||||||
|
## [0.34.0] 2023-04-13
|
||||||
|
|
||||||
|
* Updated [`tracing-actix-web`](https://github.com/LukeMathWalker/tracing-actix-web) from 0.7.2 to 0.7.3 ([#578])
|
||||||
|
* Updated [`serde`](https://github.com/serde-rs/serde) from 1.0.156 to 1.0.158 ([#580])
|
||||||
|
* Updated [`mime`](https://github.com/hyperium/mime) from 0.3.16 to 0.3.17 ([#582])
|
||||||
|
* Updated [`dotenvy`](https://github.com/allan2/dotenvy) from 0.15.6 to 0.15.7 ([#583])
|
||||||
|
* Updated [`reqwest`](https://github.com/seanmonstar/reqwest) from 0.11.14 to 0.11.16 ([#586])
|
||||||
|
* Updated [`tokio`](https://github.com/tokio-rs/tokio) from 1.26.0 to 1.27.0 ([#588])
|
||||||
|
* Updated [`tempfile`](https://github.com/Stebalien/tempfile) from 3.4.0 to 3.5.0 ([#590])
|
||||||
|
* Updated [`tracing-bunyan-formatter`](https://github.com/LukeMathWalker/tracing-bunyan-formatter) from 0.3.6 to 0.3.7 ([#593])
|
||||||
|
* Updated [`serde`](https://github.com/serde-rs/serde) from 1.0.158 to 1.0.160 ([#594])
|
||||||
|
* Updated [`serde_json`](https://github.com/serde-rs/json) from 1.0.94 to 1.0.96 ([#595])
|
||||||
|
* Updated [`openssl`](https://github.com/sfackler/rust-openssl) from 0.10.40 to 0.10.50, fixes [SEC#6], [SEC#7], and [SEC#8] ([#596])
|
||||||
|
|
||||||
|
[#578]: https://github.com/vbrandl/hoc/pull/578
|
||||||
|
[#580]: https://github.com/vbrandl/hoc/pull/580
|
||||||
|
[#582]: https://github.com/vbrandl/hoc/pull/582
|
||||||
|
[#583]: https://github.com/vbrandl/hoc/pull/583
|
||||||
|
[#586]: https://github.com/vbrandl/hoc/pull/586
|
||||||
|
[#588]: https://github.com/vbrandl/hoc/pull/588
|
||||||
|
[#590]: https://github.com/vbrandl/hoc/pull/590
|
||||||
|
[#593]: https://github.com/vbrandl/hoc/pull/593
|
||||||
|
[#594]: https://github.com/vbrandl/hoc/pull/594
|
||||||
|
[#595]: https://github.com/vbrandl/hoc/pull/595
|
||||||
|
[#596]: https://github.com/vbrandl/hoc/pull/596
|
||||||
|
|
||||||
|
[SEC#6]: https://github.com/vbrandl/hoc/security/dependabot/6
|
||||||
|
[SEC#7]: https://github.com/vbrandl/hoc/security/dependabot/7
|
||||||
|
[SEC#8]: https://github.com/vbrandl/hoc/security/dependabot/8
|
||||||
|
|
||||||
|
|
||||||
## [0.33.0] 2023-03-16
|
## [0.33.0] 2023-03-16
|
||||||
|
1744
Cargo.lock
generated
1744
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
23
Cargo.toml
23
Cargo.toml
@@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "hoc"
|
name = "hoc"
|
||||||
version = "0.33.0"
|
version = "0.35.0"
|
||||||
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
|
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
build = "build.rs"
|
build = "src/build.rs"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
@@ -18,30 +18,31 @@ actix-web = "4.3.1"
|
|||||||
badgers = "1.2.0"
|
badgers = "1.2.0"
|
||||||
bytes = "1.4.0"
|
bytes = "1.4.0"
|
||||||
config = { version = "0.13.3", features = ["toml"] }
|
config = { version = "0.13.3", features = ["toml"] }
|
||||||
dotenvy = "0.15.6"
|
dotenvy = "0.15.7"
|
||||||
futures = "0.3.27"
|
futures = "0.3.27"
|
||||||
git2 = "0.16.1"
|
git2 = "0.17.1"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
mime = "0.3"
|
mime = "0.3"
|
||||||
number_prefix = "0.4.0"
|
number_prefix = "0.4.0"
|
||||||
openssl-probe = "0.1.5"
|
openssl-probe = "0.1.5"
|
||||||
reqwest = "0.11.14"
|
reqwest = "0.11.17"
|
||||||
serde = "1.0.156"
|
serde = "1.0.163"
|
||||||
serde_derive = "1.0.137"
|
serde_derive = "1.0.137"
|
||||||
serde_json = "1.0.94"
|
serde_json = "1.0.94"
|
||||||
tracing = "0.1.37"
|
tracing = "0.1.37"
|
||||||
tracing-actix-web = "0.7.2"
|
tracing-actix-web = "0.7.3"
|
||||||
tracing-bunyan-formatter = "0.3.6"
|
tracing-bunyan-formatter = "0.3.6"
|
||||||
tracing-futures = "0.2.5"
|
tracing-futures = "0.2.5"
|
||||||
tracing-log = "0.1.3"
|
tracing-log = "0.1.3"
|
||||||
tracing-subscriber = { version = "0.3.16", features = ["registry", "env-filter"] }
|
tracing-subscriber = { version = "0.3.17", features = ["registry", "env-filter"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
anyhow = "1.0.71"
|
||||||
ructe = { version = "0.16.1", features = ["mime03"] }
|
ructe = { version = "0.16.1", features = ["mime03"] }
|
||||||
vergen = { version = "7.5.1", default-features = false, features = ["git"] }
|
vergen = { version = "8.1.3", default-features = false, features = ["git", "gitoxide"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
awc = "3.1.1"
|
awc = "3.1.1"
|
||||||
ructe = "0.16.1"
|
ructe = "0.16.1"
|
||||||
tempfile = "3.4.0"
|
tempfile = "3.5.0"
|
||||||
tokio = "1.26.0"
|
tokio = "1.28.1"
|
||||||
|
@@ -10,7 +10,7 @@ RUN echo 'fn main() { println!("Hello, world!"); }' >> src/main.rs
|
|||||||
COPY ./Cargo.lock ./Cargo.lock
|
COPY ./Cargo.lock ./Cargo.lock
|
||||||
COPY ./Cargo.toml ./Cargo.toml
|
COPY ./Cargo.toml ./Cargo.toml
|
||||||
# HACK: remove build-dependencies so we have at least some caching
|
# HACK: remove build-dependencies so we have at least some caching
|
||||||
RUN head -n $(($(grep -n "\[build-dependencies\]" Cargo.toml | cut -f1 -d:) - 1)) Cargo.toml | sed '/build.rs/d' > \
|
RUN head -n $(($(grep -n "\[build-dependencies\]" Cargo.toml | cut -f1 -d:) - 1)) Cargo.toml | sed '/src\/build.rs/d' > \
|
||||||
Cargo.toml2 && rm Cargo.toml && mv Cargo.toml2 Cargo.toml
|
Cargo.toml2 && rm Cargo.toml && mv Cargo.toml2 Cargo.toml
|
||||||
# build to cache dependencies
|
# build to cache dependencies
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
@@ -24,7 +24,6 @@ COPY ./.git ./.git
|
|||||||
# copy source code
|
# copy source code
|
||||||
COPY ./static ./static
|
COPY ./static ./static
|
||||||
COPY ./templates ./templates
|
COPY ./templates ./templates
|
||||||
COPY ./build.rs ./build.rs
|
|
||||||
COPY ./src ./src
|
COPY ./src ./src
|
||||||
# build source code
|
# build source code
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
15
build.rs
15
build.rs
@@ -1,15 +0,0 @@
|
|||||||
extern crate ructe;
|
|
||||||
extern crate vergen;
|
|
||||||
|
|
||||||
use ructe::{Ructe, RucteError};
|
|
||||||
use vergen::{vergen, Config, ShaKind};
|
|
||||||
|
|
||||||
fn main() -> Result<(), RucteError> {
|
|
||||||
let mut config = Config::default();
|
|
||||||
*config.git_mut().sha_kind_mut() = ShaKind::Short;
|
|
||||||
vergen(config).expect("Unable to generate static repo info");
|
|
||||||
let mut ructe = Ructe::from_env()?;
|
|
||||||
let mut statics = ructe.statics()?;
|
|
||||||
statics.add_files("static")?;
|
|
||||||
ructe.compile_templates("templates")
|
|
||||||
}
|
|
12
src/build.rs
Normal file
12
src/build.rs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
use anyhow::Result;
|
||||||
|
use ructe::Ructe;
|
||||||
|
use vergen::EmitBuilder;
|
||||||
|
|
||||||
|
fn main() -> Result<()> {
|
||||||
|
EmitBuilder::builder().git_sha(true).emit()?;
|
||||||
|
|
||||||
|
let mut ructe = Ructe::from_env()?;
|
||||||
|
let mut statics = ructe.statics()?;
|
||||||
|
statics.add_files("static")?;
|
||||||
|
Ok(ructe.compile_templates("templates")?)
|
||||||
|
}
|
@@ -4,7 +4,7 @@ pub struct VersionInfo<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) const VERSION_INFO: VersionInfo = VersionInfo {
|
pub(crate) const VERSION_INFO: VersionInfo = VersionInfo {
|
||||||
commit: env!("VERGEN_GIT_SHA_SHORT"),
|
commit: env!("VERGEN_GIT_SHA"),
|
||||||
version: env!("CARGO_PKG_VERSION"),
|
version: env!("CARGO_PKG_VERSION"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user