From 2fef0f760fa1cb90ba45fa876923cbd005b99076 Mon Sep 17 00:00:00 2001 From: Martyn Date: Wed, 29 Jul 2026 10:48:16 +0100 Subject: [PATCH] Updates version to 1.2.0 & updates Tungstenite dependency --- .gitignore | 3 +++ CHANGELOG.md | 7 ++++++- Cargo.toml | 8 ++++---- README.md | 2 +- contrib/dyn_templates/README.md | 2 +- contrib/ws/Cargo.toml | 2 +- contrib/ws/README.md | 2 +- core/codegen/src/lib.rs | 2 +- core/lib/src/lib.rs | 6 +++--- core/lib/src/listener/quic.rs | 2 +- core/lib/src/serde/json.rs | 2 +- core/lib/src/serde/msgpack.rs | 2 +- core/lib/src/serde/uuid.rs | 2 +- release.toml | 2 +- website/docs/02-getting-started.md | 2 +- website/docs/04-requests.md | 4 ++-- website/docs/10-configuration.md | 4 ++-- website/docs/12-pastebin.md | 2 +- website/docs/14-faq.md | 2 +- website/docs/index.md | 2 +- website/src/pages/index.js | 2 +- 21 files changed, 35 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 636355078..ba7bd2f9d 100644 --- a/.gitignore +++ b/.gitignore @@ -29,5 +29,8 @@ scripts/redirect.html # Backup files. *.bak +# Roadmap notes (local planning, not tracked). +roadmap/ + # Uploads in pastebin example. examples/pastebin/upload/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e3d6cdcb..b4a857a79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## 1.2.0 - 2026-07-29 ### Added @@ -21,6 +21,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Documentation for capped uploads explaining expected behavior for HTTP/1.1 connections in the event of the upload byte limit being reached. +### Changed + +- Upgrade dependencies: tokio-tungstenite 0.30 + + [PROXY protocol]: https://www.haproxy.org/download/2.9/doc/proxy-protocol.txt ## 1.1.0 - 2026-07-07 diff --git a/Cargo.toml b/Cargo.toml index 57bf7558d..c85589c3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ ] [workspace.package] -version = "1.1.0" +version = "1.2.0" authors = ["Sergio Benitez "] license = "MIT OR Apache-2.0" edition = "2021" @@ -20,9 +20,9 @@ repository = "https://github.com/rustfoo/rkt" readme = "README.md" [workspace.dependencies] -rkt = { version = "1.1.0", path = "core/lib/", default-features = false } -rkt_http = { version = "1.1.0", path = "core/http/" } -rkt_codegen = { version = "1.1.0", path = "core/codegen/" } +rkt = { version = "1.2.0", path = "core/lib/", default-features = false } +rkt_http = { version = "1.2.0", path = "core/http/" } +rkt_codegen = { version = "1.2.0", path = "core/codegen/" } [workspace.lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } diff --git a/README.md b/README.md index 7bc909b43..76597bf3a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Add `rkt` to your `Cargo.toml`: ```toml [dependencies] -rkt = "1.1.0" +rkt = "1.2.0" ``` ## Crates diff --git a/contrib/dyn_templates/README.md b/contrib/dyn_templates/README.md index c27fea7fd..e01a16bd7 100644 --- a/contrib/dyn_templates/README.md +++ b/contrib/dyn_templates/README.md @@ -22,7 +22,7 @@ and automatically reloads templates when compiled in debug mode. It supports [Ha ```toml [dependencies.rkt_dyn_templates] - version = "1.1.0" + version = "1.2.0" features = ["handlebars", "tera", "minijinja"] ``` diff --git a/contrib/ws/Cargo.toml b/contrib/ws/Cargo.toml index 096ba2d4c..ae21410a4 100644 --- a/contrib/ws/Cargo.toml +++ b/contrib/ws/Cargo.toml @@ -20,7 +20,7 @@ default = ["tungstenite"] tungstenite = ["tokio-tungstenite"] [dependencies] -tokio-tungstenite = { version = "0.29", optional = true } +tokio-tungstenite = { version = "0.30", optional = true } [dependencies.rkt] workspace = true diff --git a/contrib/ws/README.md b/contrib/ws/README.md index 6a8fb0e69..e5abaac53 100644 --- a/contrib/ws/README.md +++ b/contrib/ws/README.md @@ -16,7 +16,7 @@ This crate provides WebSocket support for rkt via integration with rkt's ```toml [dependencies] - ws = { package = "rkt_ws", version = "1.1.0" } + ws = { package = "rkt_ws", version = "1.2.0" } ``` 2. Use it! diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index a633c2845..3562a2818 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -19,7 +19,7 @@ //! //! ```toml //! [dependencies] -//! rkt = { version = "1.1.0" } +//! rkt = { version = "1.2.0" } //! ``` //! //! And to import all macros, attributes, and derives via `#[macro_use]` in the diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index f7b870ac5..8aa7b4246 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -25,7 +25,7 @@ //! //! ```toml //! [dependencies] -//! rkt = { package = version = "1.1.0" } +//! rkt = "1.2.0" //! ``` //! //! See the [guide](https://rkt.rs/guide) for more information on how @@ -70,14 +70,14 @@ //! //! ```toml //! [dependencies] -//! rkt = { version = "1.1.0", features = ["secrets", "tls", "json"] } +//! rkt = { version = "1.2.0", features = ["secrets", "tls", "json"] } //! ``` //! //! Conversely, HTTP/2 can be disabled: //! //! ```toml //! [dependencies] -//! rkt = { version = "1.1.0", default-features = false } +//! rkt = { version = "1.2.0", default-features = false } //! ``` //! //! [subscriber]: crate::trace::subscriber diff --git a/core/lib/src/listener/quic.rs b/core/lib/src/listener/quic.rs index 89eb177a7..af5e1e6bb 100644 --- a/core/lib/src/listener/quic.rs +++ b/core/lib/src/listener/quic.rs @@ -6,7 +6,7 @@ //! ```toml //! // Add the following to your Cargo.toml: //! [dependencies] -//! rkt = { version = "1.1.0", features = ["http3-preview"] } +//! rkt = { version = "1.2.0", features = ["http3-preview"] } //! //! // In your Rocket.toml or other equivalent config source: //! [default.tls] diff --git a/core/lib/src/serde/json.rs b/core/lib/src/serde/json.rs index bdde7336d..e3689a829 100644 --- a/core/lib/src/serde/json.rs +++ b/core/lib/src/serde/json.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rkt] -//! version = "1.1.0" +//! version = "1.2.0" //! features = ["json"] //! ``` //! diff --git a/core/lib/src/serde/msgpack.rs b/core/lib/src/serde/msgpack.rs index 970503848..c85bdc6e3 100644 --- a/core/lib/src/serde/msgpack.rs +++ b/core/lib/src/serde/msgpack.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rkt] -//! version = "1.1.0" +//! version = "1.2.0" //! features = ["msgpack"] //! ``` //! diff --git a/core/lib/src/serde/uuid.rs b/core/lib/src/serde/uuid.rs index 1cf68f535..ed3986170 100644 --- a/core/lib/src/serde/uuid.rs +++ b/core/lib/src/serde/uuid.rs @@ -7,7 +7,7 @@ //! //! ```toml //! [dependencies.rkt] -//! version = "1.1.0" +//! version = "1.2.0" //! features = ["uuid"] //! ``` //! diff --git a/release.toml b/release.toml index 0dff4874c..23731be4f 100644 --- a/release.toml +++ b/release.toml @@ -7,7 +7,7 @@ # core/lib/Cargo.toml so they run exactly once (cargo-release otherwise applies # workspace-level replacements once per crate, resolving paths per-crate). # -# Release a new version with, e.g.: cargo release 1.0.2 --execute +# Release a new version with, e.g.: cargo release 1.0.2 --execute --no-publish # (omit --execute for a dry run). # Bump every crate in the workspace together. diff --git a/website/docs/02-getting-started.md b/website/docs/02-getting-started.md index a42e49250..c2d3127ea 100644 --- a/website/docs/02-getting-started.md +++ b/website/docs/02-getting-started.md @@ -38,7 +38,7 @@ Now, add rkt as a dependency in your `Cargo.toml`: ```toml [dependencies] -rkt = "1.1.0" +rkt = "1.2.0" ``` Modify `src/main.rs` so that it contains the code for the rkt `Hello, world!` diff --git a/website/docs/04-requests.md b/website/docs/04-requests.md index dc86a13df..c471d71a4 100644 --- a/website/docs/04-requests.md +++ b/website/docs/04-requests.md @@ -667,7 +667,7 @@ feature: ```toml ## in Cargo.toml -rkt = { version = "1.1.0", features = ["secrets"] } +rkt = { version = "1.2.0", features = ["secrets"] } ``` The API for retrieving, adding, and removing private cookies is identical except @@ -847,7 +847,7 @@ docs](https://docs.rs/rkt/latest/rkt/#features) for a list of available features feature can be enabled in the `Cargo.toml`: ```toml -rkt = { version = "1.1.0", features = ["json"] } +rkt = { version = "1.2.0", features = ["json"] } ``` ::: diff --git a/website/docs/10-configuration.md b/website/docs/10-configuration.md index d92b25ea4..842a1fcc4 100644 --- a/website/docs/10-configuration.md +++ b/website/docs/10-configuration.md @@ -259,7 +259,7 @@ Security). To enable TLS support: ```toml,ignore [dependencies] - rkt = { version = "1.1.0", features = ["tls"] } + rkt = { version = "1.2.0", features = ["tls"] } ``` 2. Configure a TLS certificate chain and private key via the `tls.key` and @@ -335,7 +335,7 @@ enabled and support configured via the `tls.mutual` config parameter: ```toml,ignore [dependencies] - rkt = { version = "1.1.0", features = ["mtls"] } + rkt = { version = "1.2.0", features = ["mtls"] } ``` This implicitly enables the `tls` feature. diff --git a/website/docs/12-pastebin.md b/website/docs/12-pastebin.md index 65176150d..d4a245694 100644 --- a/website/docs/12-pastebin.md +++ b/website/docs/12-pastebin.md @@ -58,7 +58,7 @@ Then add the usual rkt dependencies to the `Cargo.toml` file: ```toml [dependencies] -rkt = "1.1.0" +rkt = "1.2.0" ``` And finally, create a skeleton rkt application to work off of in diff --git a/website/docs/14-faq.md b/website/docs/14-faq.md index a9c51e0fb..f1611d4a8 100644 --- a/website/docs/14-faq.md +++ b/website/docs/14-faq.md @@ -641,7 +641,7 @@ is to depend on a `contrib` library from git while also depending on a `crates.io` version of Rocket or vice-versa: ```toml -rkt = { version = "1.1.0" } +rkt = { version = "1.2.0" } rkt_dyn_templates = { git = "https://github.com/rustfoo/rkt.git" } ``` diff --git a/website/docs/index.md b/website/docs/index.md index bf941fed3..4c75acafe 100644 --- a/website/docs/index.md +++ b/website/docs/index.md @@ -6,7 +6,7 @@ sidebar_position: 1 Welcome to rkt! -This is the official guide for rkt v1.1.0. It is designed to serve as a +This is the official guide for rkt v1.2.0. It is designed to serve as a starting point to writing web applications with rkt and Rust. The guide is also designed to be a reference for experienced Rocket developers. diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 2eb545c0d..637871f2a 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -179,7 +179,7 @@ function QuickStart() {
- {`[dependencies]\nrkt = "1.1.0"`} + {`[dependencies]\nrkt = "1.2.0"`} {TYPED_EXAMPLE}