Skip to content

Commit

Permalink
Release version 0.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
photino committed Jan 13, 2025
1 parent 4aaba29 commit 4c084d7
Show file tree
Hide file tree
Showing 29 changed files with 104 additions and 97 deletions.
10 changes: 5 additions & 5 deletions crates/zino-actix/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-actix"
description = "Integrations with actix-web for zino."
version = "0.5.0"
version = "0.5.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -36,19 +36,19 @@ features = ["actix-web"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["runtime-tokio"]

[dependencies.zino-http]
path = "../zino-http"
version = "0.3.0"
version = "0.3.1"
features = ["http02"]

[dependencies.zino-orm]
path = "../zino-orm"
version = "0.3.0"
version = "0.3.1"
optional = true

[dependencies.zino-openapi]
path = "../zino-openapi"
version = "0.2.0"
version = "0.2.1"
2 changes: 1 addition & 1 deletion crates/zino-amis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ readme = "README.md"
[dependencies]
hyper-staticfile = "0.10.1"
phf = "0.11.2"
serde_json = "1.0.134"
serde_json = "1.0.135"
tracing = "0.1.41"

[dependencies.hyper]
Expand Down
4 changes: 2 additions & 2 deletions crates/zino-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ version = "0.4.2"
optional = true

[dependencies.sqids]
version = "0.4.1"
version = "0.4.2"
optional = true

[dependencies.toml]
Expand All @@ -90,4 +90,4 @@ default-features = false

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
4 changes: 1 addition & 3 deletions crates/zino-auth/src/ldap_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ impl LdapClient {
}
Ok(())
});
let mut plugin = Plugin::new("ldap-client");
plugin.set_loader(loader);
plugin
Plugin::with_loader("ldap-client", loader)
}

/// Returns an existing LDAP connection from the pool or creates a new one if required.
Expand Down
4 changes: 1 addition & 3 deletions crates/zino-auth/src/rauthy_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ impl RauthyClient {
}
Ok(())
});
let mut plugin = Plugin::new("rauthy-client");
plugin.set_loader(loader);
plugin
Plugin::with_loader("rauthy-client", loader)
}
}
10 changes: 5 additions & 5 deletions crates/zino-axum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-axum"
description = "Integrations with axum for zino."
version = "0.5.0"
version = "0.5.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -62,18 +62,18 @@ features = ["axum"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["runtime-tokio"]

[dependencies.zino-http]
path = "../zino-http"
version = "0.3.0"
version = "0.3.1"

[dependencies.zino-orm]
path = "../zino-orm"
version = "0.3.0"
version = "0.3.1"
optional = true

[dependencies.zino-openapi]
path = "../zino-openapi"
version = "0.2.0"
version = "0.2.1"
6 changes: 3 additions & 3 deletions crates/zino-channel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-channel"
description = "Cloud events and subscriptions for zino."
version = "0.3.0"
version = "0.3.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand All @@ -26,7 +26,7 @@ flume = [
]

[dependencies]
serde_json = "1.0.134"
serde_json = "1.0.135"

[dependencies.ahash]
version = "0.8.11"
Expand All @@ -50,4 +50,4 @@ features = ["derive"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
6 changes: 3 additions & 3 deletions crates/zino-chatbot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-chatbot"
description = "Unified access to chatbot services for zino."
version = "0.3.0"
version = "0.3.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand All @@ -13,7 +13,7 @@ documentation = "https://docs.rs/zino-chatbot"
readme = "README.md"

[dependencies]
async-openai = "0.26.0"
async-openai = "0.27.0"
futures = "0.3.31"
tracing = "0.1.41"

Expand All @@ -23,5 +23,5 @@ default-features = false

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["http-client"]
4 changes: 2 additions & 2 deletions crates/zino-connector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-connector"
description = "Unified connector to data sources for zino."
version = "0.2.0"
version = "0.2.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -106,4 +106,4 @@ optional = true

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
2 changes: 1 addition & 1 deletion crates/zino-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-core"
description = "Core types and traits for zino."
version = "0.31.0"
version = "0.31.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down
4 changes: 1 addition & 3 deletions crates/zino-core/src/application/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
//! }
//! Ok(())
//! });
//! let mut plugin = Plugin::new("casbin");
//! plugin.set_loader(loader);
//! plugin
//! Plugin::with_loader("casbin", loader)
//! }
//! }
//!
Expand Down
11 changes: 11 additions & 0 deletions crates/zino-core/src/application/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ impl Plugin {
}
}

/// Creates a new instance with the loader.
#[inline]
pub fn with_loader(name: &'static str, loader: BoxFuture<'static, Result<(), Error>>) -> Self {
Self {
name,
loader: Some(loader),
environments: SmallVec::new(),
dependencies: SmallVec::new(),
}
}

/// Sets an asynchronous loader for the plugin.
#[inline]
pub fn set_loader(&mut self, loader: BoxFuture<'static, Result<(), Error>>) {
Expand Down
6 changes: 3 additions & 3 deletions crates/zino-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ readme = "README.md"
proc-macro = true

[dependencies]
convert_case = "0.6.0"
convert_case = "0.7.1"
proc-macro2 = "1.0.92"
quote = "1.0.38"
syn = "2.0.95"

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"

[dependencies.zino-orm]
path = "../zino-orm"
version = "0.3.0"
version = "0.3.1"
10 changes: 6 additions & 4 deletions crates/zino-derive/src/model.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::parser;
use convert_case::{Boundary::LowerUpper, Case, Casing};
use convert_case::{Boundary, Case, Casing};
use proc_macro2::TokenStream;
use quote::{format_ident, quote};
use syn::DeriveInput;
Expand Down Expand Up @@ -209,7 +209,9 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
if enable_setter && !RESERVED_FIELDS.contains(&name.as_str()) {
let setter = if type_name == "String" {
if is_inherent {
let name_snake = name.with_boundaries(&[LowerUpper]).to_case(Case::Snake);
let name_snake = name
.with_boundaries(&[Boundary::LOWER_UPPER])
.to_case(Case::Snake);
let parser_ident = format_ident!("parse_{}", name_snake);
quote! {
if let Some(value) = data.parse_string(#name) {
Expand Down Expand Up @@ -265,7 +267,7 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
}
} else if let Some(type_generics) = parser::parse_option_type(&type_name) {
let type_generics_snake = type_generics
.with_boundaries(&[LowerUpper])
.with_boundaries(&[Boundary::LOWER_UPPER])
.to_case(Case::Snake);
let parser_ident = format_ident!("parse_{}", type_generics_snake);
quote! {
Expand All @@ -285,7 +287,7 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
}
} else {
let type_name_snake = type_name
.with_boundaries(&[LowerUpper])
.with_boundaries(&[Boundary::LOWER_UPPER])
.to_case(Case::Snake);
let parser_ident = format_ident!("parse_{}", type_name_snake);
quote! {
Expand Down
6 changes: 3 additions & 3 deletions crates/zino-dioxus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-dioxus"
description = "Dioxus components for zino."
version = "0.12.0"
version = "0.12.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -73,9 +73,9 @@ features = [

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["runtime-tokio"]

[dependencies.zino-storage]
path = "../zino-storage"
version = "0.3.0"
version = "0.3.1"
8 changes: 4 additions & 4 deletions crates/zino-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-http"
description = "HTTP requests and responses for zino."
version = "0.3.0"
version = "0.3.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -132,14 +132,14 @@ optional = true

[dependencies.zino-channel]
path = "../zino-channel"
version = "0.3.0"
version = "0.3.1"

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["http-client"]

[dependencies.zino-storage]
path = "../zino-storage"
version = "0.3.0"
version = "0.3.1"
features = ["http-client"]
4 changes: 2 additions & 2 deletions crates/zino-model/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ features = ["jwt"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["validator-email"]

[dependencies.zino-derive]
Expand All @@ -63,4 +63,4 @@ version = "0.29.1"

[dependencies.zino-orm]
path = "../zino-orm"
version = "0.3.0"
version = "0.3.1"
8 changes: 4 additions & 4 deletions crates/zino-ntex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-ntex"
description = "Integrations with ntex for zino."
version = "0.5.0"
version = "0.5.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand All @@ -27,14 +27,14 @@ features = ["compress", "tokio"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
features = ["runtime-tokio"]

[dependencies.zino-http]
path = "../zino-http"
version = "0.3.0"
version = "0.3.1"

[dependencies.zino-orm]
path = "../zino-orm"
version = "0.3.0"
version = "0.3.1"
optional = true
8 changes: 4 additions & 4 deletions crates/zino-openapi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-openapi"
description = "OpenAPI support for zino."
version = "0.2.0"
version = "0.2.1"
rust-version = "1.80"
edition = "2021"
license = "MIT"
Expand All @@ -21,8 +21,8 @@ debug = [

[dependencies]
ahash = "0.8.11"
convert_case = "0.6.0"
serde_json = "1.0.134"
convert_case = "0.7.1"
serde_json = "1.0.135"
tracing = "0.1.41"

[dependencies.toml]
Expand All @@ -40,4 +40,4 @@ features = [

[dependencies.zino-core]
path = "../zino-core"
version = "0.31.0"
version = "0.31.1"
Loading

0 comments on commit 4c084d7

Please sign in to comment.