Skip to content

Commit

Permalink
Release v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Oct 25, 2024
1 parent bdc73a2 commit f06a4eb
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 68 deletions.
229 changes: 175 additions & 54 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "kvarn"
# also bump all other versions (e.g. `grep 0\\.3`)
# remove "#![doc(html_root_url = "https://doc.kvarn.org/")]" from lib.rs
version = "0.6.1"
version = "0.6.2"
authors = ["Icelk <[email protected]>"]
edition = "2021"
rust-version = "1.64"
Expand Down Expand Up @@ -43,9 +43,9 @@ mime_guess = "2"
tree_magic_mini = { version = "3", features = ["tree_magic_db"] }
percent-encoding = "2"

kvarn_async = { path = "async", version = "0.6.0" }
kvarn_utils = { path = "utils", version = "0.6.0" }
kvarn_signal = { path = "signal", version = "0.2", optional = true }
kvarn_async = { path = "async", version = "0.6.1" }
kvarn_utils = { path = "utils", version = "0.6.1" }
kvarn_signal = { path = "signal", version = "0.2.1", optional = true }
tokio = { version = "1.24", features = ["rt", "io-util", "fs", "sync", "parking_lot", "time", "macros"] }
# tokio-uring = { git = "https://github.com/Icelk/tokio-uring", branch = "recvmsg-msg_control", features = ["bytes"], optional = true }
tokio-uring = { version = "0.4.0-alpha1", package = "kvarn-tokio-uring", features = ["bytes"], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions async/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kvarn_async"
version = "0.6.0"
version = "0.6.1"
authors = ["Icelk <[email protected]>"]
edition = "2021"
rust-version = "1.56"
Expand All @@ -15,5 +15,5 @@ categories = ["web-programming", "asynchronous"]
[dependencies]
bytes = "1"
http = "1.0"
kvarn_utils = { path = "../utils", version = "0.6" }
kvarn_utils = { path = "../utils", version = "0.6.1" }
tokio = { version = "1.24", features = ["rt", "io-util", "fs", "sync", "parking_lot", "time"] }
4 changes: 2 additions & 2 deletions ctl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kvarnctl"
version = "0.2.0"
version = "0.2.1"
authors = ["Icelk <[email protected]>"]
edition = "2021"
rust-version = "1.56"
Expand All @@ -16,7 +16,7 @@ categories = ["command-line-utilities"]
clap = { version = "4", features = ["cargo"] }
clap_autocomplete = { version = "0.4.1", optional = true }
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
kvarn_signal = { path = "../signal", version = "0.2" }
kvarn_signal = { path = "../signal", version = "0.2.1" }
kvarn_utils = { path = "../utils", version = "0.6" }
log = "0.4"
tokio = { version = "1.24", features = ["rt", "io-util", "macros", "time"] }
Expand Down
2 changes: 1 addition & 1 deletion extensions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kvarn-extensions"
version = "0.6.1"
version = "0.6.2"
authors = ["Icelk <[email protected]>"]
edition = "2021"
description = "Extensions for the Kvarn web server. Features HTTP/2 automatic push and a templating engine."
Expand Down
2 changes: 1 addition & 1 deletion extensions/src/fastcgi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub async fn connect(
.remote_addr(&remote_addr)
.remote_port(address.port())
.server_addr("0.0.0.0")
.server_name("Kvarn/0.5.0")
.server_name(extensions::SERVER_NAME_VERSION)
.content_type(content_type)
.content_length(body.len());

Expand Down
2 changes: 1 addition & 1 deletion signal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kvarn_signal"
version = "0.2.0"
version = "0.2.1"
authors = ["Icelk <[email protected]>"]
edition = "2021"
rust-version = "1.64"
Expand Down
7 changes: 5 additions & 2 deletions src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use crate::prelude::{internals::*, *};

/// Used for the `server` header etc
pub const SERVER_NAME_VERSION: &str = "Kvarn/0.6.2";

/// A return type for a `dyn` [`Future`].
///
/// Used as the return type for all extensions,
Expand Down Expand Up @@ -445,7 +448,7 @@ impl Extensions {
.with_no_referrer()
.with_disallow_cors()
.with_csp(Csp::default().arc())
.with_server_header("Kvarn/0.5.0", false, true);
.with_server_header(SERVER_NAME_VERSION, false, true);

#[cfg(feature = "nonce")]
{
Expand Down Expand Up @@ -669,7 +672,7 @@ impl Extensions {
);
self
}
/// Set the `server` header to `server_name`.
/// Set the `server` header to `server_name` (e.g. [`SERVER_NAME_VERSION`]).
/// This is called by default when creating a new [`Extensions`] (except when calling
/// [`Extensions::empty`]).
///
Expand Down
2 changes: 1 addition & 1 deletion utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kvarn_utils"
version = "0.6.0"
version = "0.6.1"
authors = ["Icelk <[email protected]>"]
edition = "2021"
rust-version = "1.56"
Expand Down

0 comments on commit f06a4eb

Please sign in to comment.