Clean up Cargo.toml
This commit is contained in:
parent
fac33f4019
commit
f7b42ebc0e
@ -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"
|
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user