4 Commits

6 changed files with 10 additions and 9 deletions

2
Cargo.lock generated
View File

@ -303,7 +303,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]] [[package]]
name = "lib" name = "lib"
version = "1.4.1-hotfix" version = "1.4.2-hotfix"
dependencies = [ dependencies = [
"axum", "axum",
"into-response-derive", "into-response-derive",

View File

@ -1,15 +1,16 @@
[workspace] [workspace]
members = ["crates/*"] members = ["crates/*"]
exclude = ["examples"]
[workspace.package] [workspace.package]
edition = "2021" edition = "2021"
rust-version = "1.79.0" rust-version = "1.80.0"
authors = ["Martin Berg Alstad"] authors = ["Martin Berg Alstad"]
homepage = "emberal.github.io" homepage = "emberal.github.io"
[package] [package]
name = "lib" name = "lib"
version = "1.4.1-hotfix" version = "1.4.2-hotfix"
description = "A library with utilities and helper fuctions." description = "A library with utilities and helper fuctions."
edition = { workspace = true } edition = { workspace = true }
rust-version = { workspace = true } rust-version = { workspace = true }

View File

@ -7,8 +7,8 @@ pub fn into_response_derive_impl(input: DeriveInput) -> TokenStream {
let name = &input.ident; let name = &input.ident;
let expanded = quote! { let expanded = quote! {
impl IntoResponse for #name { impl axum::response::IntoResponse for #name {
fn into_response(self) -> Response { fn into_response(self) -> axum::response::Response {
let version = env!("CARGO_PKG_VERSION"); let version = env!("CARGO_PKG_VERSION");
lib::serde::response::BaseResponse::new(version, self) lib::serde::response::BaseResponse::new(version, self)
.into_response() .into_response()

View File

@ -10,4 +10,4 @@ proc-macro = true
[dependencies] [dependencies]
syn = { workspace = true } syn = { workspace = true }
quote = { workspace = true } quote = { workspace = true }
regex = "1.10.5" regex = "1.10"

View File

@ -286,7 +286,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]] [[package]]
name = "lib" name = "lib"
version = "1.3.5" version = "1.4.2-hotfix"
dependencies = [ dependencies = [
"axum", "axum",
"thiserror", "thiserror",

View File

@ -2,8 +2,8 @@
#[cfg(all(feature = "derive", feature = "serde"))] #[cfg(all(feature = "derive", feature = "serde"))]
pub extern crate into_response_derive; pub extern crate into_response_derive;
#[cfg(feature = "load-files")] #[cfg(feature = "read-files")]
pub extern crate load_files; pub extern crate read_files;
#[cfg(feature = "axum")] #[cfg(feature = "axum")]
pub mod axum; pub mod axum;