diff --git a/examples/actix_example/.env b/examples/actix_example/.env index 7389260b..f6b73c71 100644 --- a/examples/actix_example/.env +++ b/examples/actix_example/.env @@ -1,3 +1,3 @@ HOST=127.0.0.1 -PORT=5000 -DATABASE_URL="mysql://root:@localhost/rocket_example" +PORT=8000 +DATABASE_URL="sql://root:root@localhost/actix_example" \ No newline at end of file diff --git a/examples/actix_example/Cargo.toml b/examples/actix_example/Cargo.toml index 72ded81d..2c933863 100644 --- a/examples/actix_example/Cargo.toml +++ b/examples/actix_example/Cargo.toml @@ -8,32 +8,23 @@ publish = false [workspace] [dependencies] -async-stream = { version = "^0.3" } -async-trait = { version = "0.1" } -futures = { version = "^0.3" } -futures-util = { version = "^0.3" } actix-http = "2" actix-web = "3" actix-flash = "0.2" actix-files = "0.5" +futures = { version = "^0.3" } +futures-util = { version = "^0.3" } tera = "1.8.0" dotenv = "0.15" listenfd = "0.3.3" - # remove `path = ""` in your own project -sea-orm = { path = "../../", version = "^0.2", features = [ +sea-orm = { path = "../../", version = "^0.2.2", features = [ "macros", - "sqlx-all", "runtime-async-std-native-tls", ], default-features = false } serde = "1" env_logger = "0.8" -[dependencies.sqlx] -version = "^0.5" -default-features = false -features = ["macros", "offline", "migrate", "runtime-async-std-native-tls"] - [features] default = ["sqlx-mysql"] sqlx-mysql = ["sea-orm/sqlx-mysql"] diff --git a/examples/actix_example/src/main.rs b/examples/actix_example/src/main.rs index 9a143be5..00fc5fbc 100644 --- a/examples/actix_example/src/main.rs +++ b/examples/actix_example/src/main.rs @@ -179,7 +179,7 @@ async fn delete( #[actix_web::main] async fn main() -> std::io::Result<()> { - std::env::set_var("RUST_LOG", "actix_web=debug"); + std::env::set_var("RUST_LOG", "debug"); env_logger::init(); // get env vars diff --git a/examples/rocket_example/Cargo.toml b/examples/rocket_example/Cargo.toml index 120c7290..dc8a1066 100644 --- a/examples/rocket_example/Cargo.toml +++ b/examples/rocket_example/Cargo.toml @@ -20,7 +20,7 @@ rocket_dyn_templates = { git = "https://github.com/SergioBenitez/Rocket.git", fe "tera", ] } # remove `path = ""` in your own project -sea-orm = { path = "../../", version = "^0.2", features = ["macros"], default-features = false } +sea-orm = { path = "../../", version = "^0.2.2", features = ["macros"], default-features = false } serde_json = { version = "^1" } [features]