Skip to content

Commit de29e4b

Browse files
Kilerdclaude
andauthored
chore(release): 0.4.0 (#59)
Bumps all three crates and the internal dependency ranges to 0.4.0, plus the README and the examples that pin a version. 0.4 completes Tiers 0-2 of the maturation roadmap (#41): the framework shell (config, errors, state, tasks, messager) is trustworthy, and the OpenAPI output covers components/$ref, error responses, spec customization, field metadata, validation-driven constraints and header/cookie parameters. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 73c688f commit de29e4b

10 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Add Gotcha to your `Cargo.toml`:
108108

109109
```toml
110110
[dependencies]
111-
gotcha = "0.3"
111+
gotcha = "0.4"
112112
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
113113
serde = { version = "1", features = ["derive"] }
114114
```
@@ -119,7 +119,7 @@ Enable additional features as needed:
119119

120120
```toml
121121
[dependencies]
122-
gotcha = { version = "0.3", features = ["openapi", "prometheus", "cors", "static_files", "task"] }
122+
gotcha = { version = "0.4", features = ["openapi", "prometheus", "cors", "static_files", "task"] }
123123
```
124124

125125
Available features:

examples/basic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ version = "0.1.0"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
gotcha = {version="0.3", path = "../../gotcha"}
9+
gotcha = {version="0.4", path = "../../gotcha"}
1010
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
1111
serde = {version="1", features=["derive"]}

examples/configuration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
gotcha = {version="0.3", path = "../../gotcha", features = ["http1"]}
9+
gotcha = {version="0.4", path = "../../gotcha", features = ["http1"]}
1010
serde = {version="1", features=["derive"]}
1111
serde_json = "1"
1212
tokio = {version = "1", features = ["macros", 'rt-multi-thread', 'fs']}

examples/message/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
gotcha = {version="0.3", path = "../../gotcha"}
9+
gotcha = {version="0.4", path = "../../gotcha"}
1010
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
1111
serde = {version="1", features=["derive"]}

examples/openapi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = "0.1.0"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
gotcha = {version="0.3", path = "../../gotcha", features = ["openapi", "http1"]}
9+
gotcha = {version="0.4", path = "../../gotcha", features = ["openapi", "http1"]}
1010
# Required because `#[derive(Schematic)]` expands to `::gotcha_core::` paths.
1111
gotcha_core = { path = "../../gotcha_core" }
1212
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}

examples/task/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ version = "0.1.0"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
gotcha = {version="0.3", path = "../../gotcha", features = ["task", "http1"]}
9+
gotcha = {version="0.4", path = "../../gotcha", features = ["task", "http1"]}
1010
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
1111
serde = {version="1", features=["derive"]}

gotcha/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "gotcha"
33
description = "Enhanced web framework built on top of Axum with OpenAPI, metrics, and configuration management"
44
edition = "2021"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
license = "MIT"
77
repository = "https://github.com/Kilerd/gotcha/"
88
# Symlinked to the repository README so the crate documentation and the landing page are the same
@@ -35,8 +35,8 @@ task = ["dep:cron", "tokio/time"]
3535

3636
[dependencies]
3737
async-trait = "0.1.60"
38-
gotcha_macro = { version = "0.3", path = "../gotcha_macro" }
39-
gotcha_core = { version = "0.3", path = "../gotcha_core", optional = true }
38+
gotcha_macro = { version = "0.4", path = "../gotcha_macro" }
39+
gotcha_core = { version = "0.4", path = "../gotcha_core", optional = true }
4040
serde = {version = "1", features = ["derive"]}
4141
# `rt` is needed by the message system, which is always available (it gated nothing but a
4242
# 160-line module and this one tokio feature).
@@ -76,7 +76,7 @@ trybuild = "1.0"
7676
assert-json-diff = "2"
7777
# Non-optional so trybuild-generated test crates (which derive Schematic and thus
7878
# emit `::gotcha_core::` paths) have gotcha_core in their extern prelude.
79-
gotcha_core = { version = "0.3", path = "../gotcha_core" }
79+
gotcha_core = { version = "0.4", path = "../gotcha_core" }
8080
# So `#[tokio::main]` doc examples compile (the lib's own tokio dep is minimal).
8181
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
8282
futures-core = "0.3.33"

gotcha/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
pub use async_trait::async_trait;
1212
/// WebSocket upgrade and the socket itself. The frame type stays behind `ws::Message`, since
13-
/// [`Message`](crate::Message) is already the message-system trait.
13+
/// [`Message`] is already the message-system trait.
1414
pub use axum::extract::ws::{self, WebSocket, WebSocketUpgrade};
1515
use axum::extract::FromRef;
1616
pub use axum::extract::{Extension, Form, Json, Multipart, Path, Query, State};

gotcha_core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "gotcha_core"
33
description = "Lightweight schema core (Schematic trait + data-type impls) for the Gotcha web framework"
44
edition = "2021"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
license = "MIT"
77
repository = "https://github.com/Kilerd/gotcha/"
88

@@ -23,7 +23,7 @@ doctest = true
2323
axum = ["dep:axum", "dep:axum-extra", "dep:regex", "dep:either"]
2424

2525
[dependencies]
26-
gotcha_macro = { version = "0.3", path = "../gotcha_macro" }
26+
gotcha_macro = { version = "0.4", path = "../gotcha_macro" }
2727
oas = "0.1"
2828
axum = { version = "0.8", default-features = false, features = ["json", "query", "multipart"], optional = true }
2929
# `TypedHeader<T>` lives here since axum 0.7; the impl must be in this crate because that is where

gotcha_macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "gotcha_macro"
33
description = "gotcha web framework macro"
4-
version = "0.3.0"
4+
version = "0.4.0"
55
edition = "2021"
66
license = "MIT"
77

0 commit comments

Comments
 (0)