forked from photino/zino
Release version 0.22.3
This commit is contained in:
parent
2aadf00567
commit
40400cf248
|
@ -14,12 +14,12 @@ version = "4.5.1"
|
|||
default-features = false
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.zino]
|
||||
path = "../../zino"
|
||||
version = "0.21.2"
|
||||
version = "0.21.3"
|
||||
features = [
|
||||
"actix",
|
||||
"i18n",
|
||||
|
@ -29,7 +29,7 @@ features = [
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
features = [
|
||||
"cookie",
|
||||
"env-filter",
|
||||
|
@ -39,8 +39,8 @@ features = [
|
|||
|
||||
[dependencies.zino-derive]
|
||||
path = "../../zino-derive"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
||||
[dependencies.zino-model]
|
||||
path = "../../zino-model"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
|
|
@ -14,12 +14,12 @@ version = "0.7.5"
|
|||
default-features = false
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.zino]
|
||||
path = "../../zino"
|
||||
version = "0.21.2"
|
||||
version = "0.21.3"
|
||||
features = [
|
||||
"axum",
|
||||
"i18n",
|
||||
|
@ -29,7 +29,7 @@ features = [
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
features = [
|
||||
"cookie",
|
||||
"env-filter",
|
||||
|
@ -40,8 +40,8 @@ features = [
|
|||
|
||||
[dependencies.zino-derive]
|
||||
path = "../../zino-derive"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
||||
[dependencies.zino-model]
|
||||
path = "../../zino-model"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "dioxus-desktop"
|
||||
description = "An example for Dioxus desktop integration."
|
||||
version = "0.4.3"
|
||||
version = "0.4.4"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
@ -21,23 +21,23 @@ features = [
|
|||
]
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.zino]
|
||||
path = "../../zino"
|
||||
version = "0.21.2"
|
||||
version = "0.21.3"
|
||||
features = ["dioxus-desktop", "orm"]
|
||||
|
||||
[dependencies.zino-core]
|
||||
path = "../../zino-core"
|
||||
version = "0.22.1"
|
||||
version = "0.22.3"
|
||||
features = ["env-filter", "orm-sqlite", "tls-rustls"]
|
||||
|
||||
[dependencies.zino-model]
|
||||
path = "../../zino-model"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
||||
[dependencies.zino-dioxus]
|
||||
path = "../../zino-dioxus"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
|
|
|
@ -70,7 +70,7 @@ fn StargazerHistory() -> Element {
|
|||
fn StargazerListTable(num_stargazers: usize) -> Element {
|
||||
let mut current_page = use_signal(|| 1);
|
||||
let stargazers = use_resource(move || async move {
|
||||
service::stargazer::list_stargazers(10, *current_page.read()).await
|
||||
service::stargazer::list_stargazers(10, current_page()).await
|
||||
});
|
||||
match &*stargazers.value().read_unchecked() {
|
||||
Some(Ok(stargazers)) => {
|
||||
|
@ -97,7 +97,7 @@ fn StargazerListTable(num_stargazers: usize) -> Element {
|
|||
}
|
||||
Pagination {
|
||||
total: num_stargazers,
|
||||
current_page: *current_page.read(),
|
||||
current_page: current_page(),
|
||||
on_change: move |page| {
|
||||
current_page.set(page);
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ publish = false
|
|||
|
||||
[dependencies.zino]
|
||||
path = "../../zino"
|
||||
version = "0.21.1"
|
||||
version = "0.21.3"
|
||||
features = ["axum"]
|
||||
|
||||
|
|
|
@ -14,12 +14,12 @@ version = "1.2.1"
|
|||
default-features = false
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.zino]
|
||||
path = "../../zino"
|
||||
version = "0.21.2"
|
||||
version = "0.21.3"
|
||||
features = [
|
||||
"i18n",
|
||||
"jwt",
|
||||
|
@ -29,7 +29,7 @@ features = [
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
features = [
|
||||
"cookie",
|
||||
"env-filter",
|
||||
|
@ -39,8 +39,8 @@ features = [
|
|||
|
||||
[dependencies.zino-derive]
|
||||
path = "../../zino-derive"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
||||
[dependencies.zino-model]
|
||||
path = "../../zino-model"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
|
|
@ -25,4 +25,4 @@ features = ["color", "derive"]
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.1"
|
||||
version = "0.22.3"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "zino-core"
|
||||
description = "Core types and traits for zino."
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -179,7 +179,7 @@ view-tera = ["view", "dep:tera"]
|
|||
[dependencies]
|
||||
aes-gcm-siv = "0.11.1"
|
||||
apache-avro = "0.16.0"
|
||||
base64 = "0.22.0"
|
||||
base64 = "0.22.1"
|
||||
bytes = "1.6.0"
|
||||
cfg-if = "1.0"
|
||||
convert_case = "0.6.0"
|
||||
|
@ -194,7 +194,7 @@ http = "1.1.0"
|
|||
md-5 = "0.10.6"
|
||||
mime = "0.3.17"
|
||||
mime_guess = "2.0.4"
|
||||
multer = "3.0.0"
|
||||
multer = "3.1.0"
|
||||
once_cell = "1.19.0"
|
||||
parking_lot = "0.12.2"
|
||||
percent-encoding = "2.3.1"
|
||||
|
@ -311,7 +311,7 @@ version = "0.32.2"
|
|||
optional = true
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.serde_json]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "zino-derive"
|
||||
description = "Derived traits for zino."
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -21,5 +21,5 @@ syn = "2.0.60"
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
features = ["orm"]
|
||||
|
|
|
@ -269,6 +269,8 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
|
|||
let schema_write_only_fields = format_ident!("{}_WRITE_ONLY_FIELDS", model_name_upper_snake);
|
||||
let schema_reader = format_ident!("{}_READER", model_name_upper_snake);
|
||||
let schema_writer = format_ident!("{}_WRITER", model_name_upper_snake);
|
||||
let schema_table_name = format_ident!("{}_TABLE_NAME", model_name_upper_snake);
|
||||
let schema_model_namespace = format_ident!("{}_MODEL_NAMESPACE", model_name_upper_snake);
|
||||
let avro_schema = format_ident!("{}_AVRO_SCHEMA", model_name_upper_snake);
|
||||
let num_columns = columns.len();
|
||||
let num_read_only_fields = read_only_fields.len();
|
||||
|
@ -315,6 +317,8 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
|
|||
zino_core::LazyLock::new(|| [#(#write_only_fields),*]);
|
||||
static #schema_reader: std::sync::OnceLock<&ConnectionPool> = std::sync::OnceLock::new();
|
||||
static #schema_writer: std::sync::OnceLock<&ConnectionPool> = std::sync::OnceLock::new();
|
||||
static #schema_table_name: std::sync::OnceLock<&str> = std::sync::OnceLock::new();
|
||||
static #schema_model_namespace: std::sync::OnceLock<&str> = std::sync::OnceLock::new();
|
||||
|
||||
impl Schema for #name {
|
||||
type PrimaryKey = #schema_primary_key_type;
|
||||
|
@ -463,6 +467,20 @@ pub(super) fn parse_token_stream(input: DeriveInput) -> TokenStream {
|
|||
Ok(connection_pool)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn table_name() -> &'static str {
|
||||
Self::TABLE_NAME.unwrap_or_else(|| {
|
||||
#schema_table_name
|
||||
.get_or_init(|| [Self::table_prefix(), Self::MODEL_NAME].concat().leak())
|
||||
})
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn model_namespace() -> &'static str {
|
||||
#schema_model_namespace
|
||||
.get_or_init(|| [Self::namespace_prefix(), Self::MODEL_NAME].concat().leak())
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for #name {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "zino-dioxus"
|
||||
description = "Dioxus components for zino."
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -40,4 +40,4 @@ features = [
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
|
|
|
@ -42,4 +42,4 @@ optional = true
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "zino-model"
|
||||
description = "Domain models for zino."
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -36,7 +36,7 @@ edition = []
|
|||
tracing = "0.1.40"
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.198"
|
||||
version = "1.0.200"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.sqlx]
|
||||
|
@ -49,7 +49,7 @@ features = ["derive"]
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
features = [
|
||||
"jwt",
|
||||
"orm",
|
||||
|
@ -59,4 +59,4 @@ features = [
|
|||
|
||||
[dependencies.zino-derive]
|
||||
path = "../zino-derive"
|
||||
version = "0.19.2"
|
||||
version = "0.19.3"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "zino"
|
||||
description = "Next-generation framework for composable applications in Rust."
|
||||
version = "0.21.2"
|
||||
version = "0.21.3"
|
||||
rust-version = "1.75"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -162,4 +162,4 @@ optional = true
|
|||
|
||||
[dependencies.zino-core]
|
||||
path = "../zino-core"
|
||||
version = "0.22.2"
|
||||
version = "0.22.3"
|
||||
|
|
Loading…
Reference in New Issue