Skip to content

Commit

Permalink
Changelog updates and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonkle committed Dec 20, 2023
1 parent 6f24bab commit 547bf2c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Updated
### Added

- Updated `mockall` and `tokio-tungstenite` requirements, and removed temporary tokio-tungstenite fork.
- `nakago-warp`: A new Warp adapter that works in a similar way to the Axum adapter.
- `nakago-examples-simple-warp`: A new example project that uses the Warp adapter.
- `nakago`: Added a copy of Axum's `FromRef` utility, so that it can be used without importing Axum itself.
- `nakago-derive`: Updated to support the FromRef utility.

### Added
### Changed

- Updated `mockall` and `tokio-tungstenite` requirements, and removed temporary tokio-tungstenite fork.
- `nakago-axum`: Simplified the route Init Hook.
- `nakago-axum`, `nakago-async-graphql`, `nakago-sea-orm`: Updated to use the new FromRef utility.

## [0.18.0]

Expand Down
6 changes: 3 additions & 3 deletions examples/async-graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago = "0.19"
nakago-axum = "0.18"
nakago-axum = "0.19"
nakago-derive = "0.19"
nakago-sea-orm = "0.18"
nakago-async-graphql = "0.18"
nakago-sea-orm = "0.19"
nakago-async-graphql = "0.19"
oso = "0.27"
pico-args = "0.5.0"
pretty_env_logger = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago = "0.19"
nakago-axum = "0.18"
nakago-axum = "0.19"
nakago-derive = "0.19"
pico-args = "0.5.0"
pretty_env_logger = "0.5"
Expand Down
9 changes: 0 additions & 9 deletions nakago/src/utils/from_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@

/// Used to do reference-to-value conversions thus not consuming the input value.
///
/// This is mainly used with [`State`] to extract "substates" from a reference to main application
/// state.
///
/// See [`State`] for more details on how library authors should use this trait.
///
/// This trait can be derived using `#[derive(FromRef)]`.
///
/// [`State`]: https://docs.rs/axum/0.7/axum/extract/struct.State.html
// NOTE: This trait is defined in axum-core, even though it is mainly used with `State` which is
// defined in axum. That allows crate authors to use it when implementing extractors.
pub trait FromRef<T> {
/// Converts to this type from a reference to the input type.
fn from_ref(input: &T) -> Self;
Expand Down
4 changes: 2 additions & 2 deletions nakago_async_graphql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-async-graphql"
version = "0.18.0"
version = "0.19.0"
authors = ["Brandon Konkle <[email protected]>"]
edition = "2021"
description = "An Async-GraphQL integration for Nakago"
Expand Down Expand Up @@ -29,7 +29,7 @@ figment = { version = "0.10", features = ["env"] }
hyper = "1.0"
log = "0.4"
nakago = "0.19"
nakago-axum = "0.18"
nakago-axum = "0.19"
nakago-derive = "0.19"
pretty_env_logger = "0.5"
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion nakago_axum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-axum"
version = "0.18.0"
version = "0.19.0"
authors = ["Brandon Konkle <[email protected]>"]
edition = "2021"
description = "An Axum HTTP routes integration for Nakago"
Expand Down
2 changes: 1 addition & 1 deletion nakago_sea_orm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-sea-orm"
version = "0.18.0"
version = "0.19.0"
authors = ["Brandon Konkle <[email protected]>"]
edition = "2021"
description = "A SeaORM integration for Nakago"
Expand Down

0 comments on commit 547bf2c

Please sign in to comment.