diff --git a/Cargo.toml b/Cargo.toml index f6beddcad..e617d67b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "Apache-2.0" [package] name = "loco-rs" -version = "0.7.0" +version = "0.8.0" description = "The one-person framework for Rust" homepage = "https://loco.rs/" documentation = "https://docs.rs/loco-rs" diff --git a/loco-extras/Cargo.toml b/loco-extras/Cargo.toml index 1af4f464b..2d740f699 100644 --- a/loco-extras/Cargo.toml +++ b/loco-extras/Cargo.toml @@ -39,7 +39,7 @@ mongodb = { version = "2.8.0", optional = true } [dependencies.loco-rs] path = "../" -version = "0.7.0" +version = "0.8.0" default-features = true features = ["with-db", "auth_jwt"] diff --git a/src/prelude.rs b/src/prelude.rs index dbf34fc87..5c6e23384 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -8,6 +8,7 @@ pub use axum_extra::extract::cookie; pub use chrono::NaiveDateTime as DateTime; pub use include_dir::{include_dir, Dir}; // some types required for controller generators +#[cfg(feature = "with-db")] pub use sea_orm::prelude::{Date, DateTimeWithTimeZone, Decimal, Uuid}; #[cfg(feature = "with-db")] pub use sea_orm::{ diff --git a/starters/lightweight-service/Cargo.lock b/starters/lightweight-service/Cargo.lock index 8e30f7d8a..badfce7a8 100644 --- a/starters/lightweight-service/Cargo.lock +++ b/starters/lightweight-service/Cargo.lock @@ -1331,6 +1331,15 @@ dependencies = [ "similar", ] +[[package]] +name = "ipnetwork" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf466541e9d546596ee94f9f69590f89473455f88372423e0008fc1a7daf100e" +dependencies = [ + "serde", +] + [[package]] name = "is-terminal" version = "0.4.12" @@ -1463,7 +1472,7 @@ dependencies = [ [[package]] name = "loco-rs" -version = "0.7.0" +version = "0.8.0" dependencies = [ "argon2", "async-trait", @@ -1484,6 +1493,7 @@ dependencies = [ "futures-util", "hyper", "include_dir", + "ipnetwork", "lazy_static", "lettre", "mime", @@ -3189,6 +3199,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" dependencies = [ "getrandom", + "rand", ] [[package]] diff --git a/starters/lightweight-service/Cargo.toml b/starters/lightweight-service/Cargo.toml index e795e337f..3b7f87496 100644 --- a/starters/lightweight-service/Cargo.toml +++ b/starters/lightweight-service/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] -loco-rs = { version = "0.7.0", default-features = false, features = ["cli"] } +loco-rs = { version = "0.8.0", default-features = false, features = ["cli"] } serde = "*" serde_json = "*" tokio = { version = "1.33.0", default-features = false } @@ -27,7 +27,7 @@ required-features = [] [dev-dependencies] serial_test = "3.1.1" rstest = "0.21.0" -loco-rs = { version = "0.7.0", default-features = false, features = [ +loco-rs = { version = "0.8.0", default-features = false, features = [ "testing", "cli", ] } diff --git a/starters/rest-api/Cargo.lock b/starters/rest-api/Cargo.lock index 40fe0f76a..3d2f2d2ae 100644 --- a/starters/rest-api/Cargo.lock +++ b/starters/rest-api/Cargo.lock @@ -1945,6 +1945,15 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "ipnetwork" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf466541e9d546596ee94f9f69590f89473455f88372423e0008fc1a7daf100e" +dependencies = [ + "serde", +] + [[package]] name = "is-terminal" version = "0.4.12" @@ -2121,7 +2130,7 @@ dependencies = [ [[package]] name = "loco-rs" -version = "0.7.0" +version = "0.8.0" dependencies = [ "argon2", "async-trait", @@ -2142,6 +2151,7 @@ dependencies = [ "futures-util", "hyper", "include_dir", + "ipnetwork", "jsonwebtoken", "lazy_static", "lettre", @@ -4796,6 +4806,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" dependencies = [ "getrandom", + "rand", "serde", ] diff --git a/starters/rest-api/Cargo.toml b/starters/rest-api/Cargo.toml index efd8c6317..011eec8d7 100644 --- a/starters/rest-api/Cargo.toml +++ b/starters/rest-api/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] -loco-rs = { version = "0.7.0" } +loco-rs = { version = "0.8.0" } migration = { path = "migration" } serde = { version = "1", features = ["derive"] } @@ -40,5 +40,5 @@ required-features = [] [dev-dependencies] serial_test = "3.1.1" rstest = "0.21.0" -loco-rs = { version = "0.7.0", features = ["testing"] } +loco-rs = { version = "0.8.0", features = ["testing"] } insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] } diff --git a/starters/rest-api/migration/Cargo.toml b/starters/rest-api/migration/Cargo.toml index e29701322..81c908e95 100644 --- a/starters/rest-api/migration/Cargo.toml +++ b/starters/rest-api/migration/Cargo.toml @@ -10,7 +10,7 @@ path = "src/lib.rs" [dependencies] async-std = { version = "1", features = ["attributes", "tokio1"] } -loco-rs = { version = "0.7.0" } +loco-rs = { version = "0.8.0" } [dependencies.sea-orm-migration] version = "1.0.0" diff --git a/starters/saas/Cargo.lock b/starters/saas/Cargo.lock index d1e831842..b84f7cf9b 100644 --- a/starters/saas/Cargo.lock +++ b/starters/saas/Cargo.lock @@ -2074,6 +2074,15 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "ipnetwork" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf466541e9d546596ee94f9f69590f89473455f88372423e0008fc1a7daf100e" +dependencies = [ + "serde", +] + [[package]] name = "is-terminal" version = "0.4.12" @@ -2250,7 +2259,7 @@ dependencies = [ [[package]] name = "loco-rs" -version = "0.7.0" +version = "0.8.0" dependencies = [ "argon2", "async-trait", @@ -2271,6 +2280,7 @@ dependencies = [ "futures-util", "hyper", "include_dir", + "ipnetwork", "jsonwebtoken", "lazy_static", "lettre", @@ -5015,6 +5025,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" dependencies = [ "getrandom", + "rand", "serde", ] diff --git a/starters/saas/Cargo.toml b/starters/saas/Cargo.toml index cc2b58803..bb2a83a51 100644 --- a/starters/saas/Cargo.toml +++ b/starters/saas/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] -loco-rs = { version = "0.7.0" } +loco-rs = { version = "0.8.0" } migration = { path = "migration" } serde = { version = "1", features = ["derive"] } @@ -45,5 +45,5 @@ required-features = [] [dev-dependencies] serial_test = "3.1.1" rstest = "0.21.0" -loco-rs = { version = "0.7.0", features = ["testing"] } +loco-rs = { version = "0.8.0", features = ["testing"] } insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] } diff --git a/starters/saas/migration/Cargo.toml b/starters/saas/migration/Cargo.toml index e29701322..81c908e95 100644 --- a/starters/saas/migration/Cargo.toml +++ b/starters/saas/migration/Cargo.toml @@ -10,7 +10,7 @@ path = "src/lib.rs" [dependencies] async-std = { version = "1", features = ["attributes", "tokio1"] } -loco-rs = { version = "0.7.0" } +loco-rs = { version = "0.8.0" } [dependencies.sea-orm-migration] version = "1.0.0"