Skip to content

Commit 55fdd6a

Browse files
committed
0.4.2
1 parent 075a64a commit 55fdd6a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.4.2
2+
## Changes
3+
1. entity_timestamp macro need to import `chrono` manually.
4+
15
# 0.4.1
26
## Fix
37
1. rustls provider will be set by default.

actix-cloud-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-cloud-codegen"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
authors = ["MXWXZ <matrixwxz@gmail.com>"]
66
description = "Proc macros for Actix Cloud."

actix-cloud-codegen/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn entity_timestamp(_: TokenStream, input: TokenStream) -> TokenStream {
8181
entity.items.push(syn::parse_quote!(
8282
fn entity_timestamp(&self, e: &mut Self, insert: bool) {
8383
let tm: sea_orm::ActiveValue<i64> =
84-
sea_orm::ActiveValue::set(actix_cloud::chrono::Utc::now().timestamp_millis());
84+
sea_orm::ActiveValue::set(chrono::Utc::now().timestamp_millis());
8585
if insert {
8686
e.created_at = tm.clone();
8787
e.updated_at = tm.clone();

actix-cloud/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-cloud"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
edition = "2021"
55
authors = ["MXWXZ <matrixwxz@gmail.com>"]
66
description = "Actix Cloud is an all-in-one web framework based on Actix Web."
@@ -67,7 +67,7 @@ anyhow = "1.0.86"
6767
rand = "0.8.5"
6868
hex = "0.4.3"
6969

70-
actix-cloud-codegen = { version = "0.2.1", path = "../actix-cloud-codegen" }
70+
actix-cloud-codegen = { version = "0.2.2", path = "../actix-cloud-codegen" }
7171

7272
# serde
7373
serde = { version = "1.0.208", features = ["derive"], optional = true }

0 commit comments

Comments
 (0)