Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Add Gotcha to your `Cargo.toml`:

```toml
[dependencies]
gotcha = "0.3"
gotcha = "0.4"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
serde = { version = "1", features = ["derive"] }
```
Expand All @@ -119,7 +119,7 @@ Enable additional features as needed:

```toml
[dependencies]
gotcha = { version = "0.3", features = ["openapi", "prometheus", "cors", "static_files", "task"] }
gotcha = { version = "0.4", features = ["openapi", "prometheus", "cors", "static_files", "task"] }
```

Available features:
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gotcha = {version="0.3", path = "../../gotcha"}
gotcha = {version="0.4", path = "../../gotcha"}
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
serde = {version="1", features=["derive"]}
2 changes: 1 addition & 1 deletion examples/configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gotcha = {version="0.3", path = "../../gotcha", features = ["http1"]}
gotcha = {version="0.4", path = "../../gotcha", features = ["http1"]}
serde = {version="1", features=["derive"]}
serde_json = "1"
tokio = {version = "1", features = ["macros", 'rt-multi-thread', 'fs']}
Expand Down
2 changes: 1 addition & 1 deletion examples/message/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gotcha = {version="0.3", path = "../../gotcha"}
gotcha = {version="0.4", path = "../../gotcha"}
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
serde = {version="1", features=["derive"]}
2 changes: 1 addition & 1 deletion examples/openapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gotcha = {version="0.3", path = "../../gotcha", features = ["openapi", "http1"]}
gotcha = {version="0.4", path = "../../gotcha", features = ["openapi", "http1"]}
# Required because `#[derive(Schematic)]` expands to `::gotcha_core::` paths.
gotcha_core = { path = "../../gotcha_core" }
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
Expand Down
2 changes: 1 addition & 1 deletion examples/task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gotcha = {version="0.3", path = "../../gotcha", features = ["task", "http1"]}
gotcha = {version="0.4", path = "../../gotcha", features = ["task", "http1"]}
tokio = {version = "1", features = ["macros", 'rt-multi-thread']}
serde = {version="1", features=["derive"]}
8 changes: 4 additions & 4 deletions gotcha/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "gotcha"
description = "Enhanced web framework built on top of Axum with OpenAPI, metrics, and configuration management"
edition = "2021"
version = "0.3.0"
version = "0.4.0"
license = "MIT"
repository = "https://github.com/Kilerd/gotcha/"
# Symlinked to the repository README so the crate documentation and the landing page are the same
Expand Down Expand Up @@ -35,8 +35,8 @@ task = ["dep:cron", "tokio/time"]

[dependencies]
async-trait = "0.1.60"
gotcha_macro = { version = "0.3", path = "../gotcha_macro" }
gotcha_core = { version = "0.3", path = "../gotcha_core", optional = true }
gotcha_macro = { version = "0.4", path = "../gotcha_macro" }
gotcha_core = { version = "0.4", path = "../gotcha_core", optional = true }
serde = {version = "1", features = ["derive"]}
# `rt` is needed by the message system, which is always available (it gated nothing but a
# 160-line module and this one tokio feature).
Expand Down Expand Up @@ -76,7 +76,7 @@ trybuild = "1.0"
assert-json-diff = "2"
# Non-optional so trybuild-generated test crates (which derive Schematic and thus
# emit `::gotcha_core::` paths) have gotcha_core in their extern prelude.
gotcha_core = { version = "0.3", path = "../gotcha_core" }
gotcha_core = { version = "0.4", path = "../gotcha_core" }
# So `#[tokio::main]` doc examples compile (the lib's own tokio dep is minimal).
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
futures-core = "0.3.33"
Expand Down
2 changes: 1 addition & 1 deletion gotcha/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

pub use async_trait::async_trait;
/// WebSocket upgrade and the socket itself. The frame type stays behind `ws::Message`, since
/// [`Message`](crate::Message) is already the message-system trait.
/// [`Message`] is already the message-system trait.
pub use axum::extract::ws::{self, WebSocket, WebSocketUpgrade};
use axum::extract::FromRef;
pub use axum::extract::{Extension, Form, Json, Multipart, Path, Query, State};
Expand Down
4 changes: 2 additions & 2 deletions gotcha_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "gotcha_core"
description = "Lightweight schema core (Schematic trait + data-type impls) for the Gotcha web framework"
edition = "2021"
version = "0.3.0"
version = "0.4.0"
license = "MIT"
repository = "https://github.com/Kilerd/gotcha/"

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

[dependencies]
gotcha_macro = { version = "0.3", path = "../gotcha_macro" }
gotcha_macro = { version = "0.4", path = "../gotcha_macro" }
oas = "0.1"
axum = { version = "0.8", default-features = false, features = ["json", "query", "multipart"], optional = true }
# `TypedHeader<T>` lives here since axum 0.7; the impl must be in this crate because that is where
Expand Down
2 changes: 1 addition & 1 deletion gotcha_macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gotcha_macro"
description = "gotcha web framework macro"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "MIT"

Expand Down
Loading