diff --git a/Cargo.toml b/Cargo.toml index 16b4a378..a096135d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,24 +23,22 @@ path = "src/lib.rs" [dependencies] async-stream = { version = "^0.3" } +async-trait = { version = "0.1", optional = true } chrono = { version = "^0", optional = true } futures = { version = "^0.3" } futures-util = { version = "^0.3" } +log = { version = "^0.4", optional = true } +rocket_db_pools = { git = "https://github.com/SergioBenitez/Rocket.git", optional = true } rust_decimal = { version = "^1", optional = true } sea-orm-macros = { version = "^0.1.1", path = "sea-orm-macros", optional = true } sea-query = { version = "^0.16", features = ["thread-safe"] } sea-strum = { version = "^0.21", features = ["derive", "sea-orm"] } serde = { version = "^1.0", features = ["derive"] } +serde_json = { version = "^1", optional = true } sqlx = { version = "^0.5", optional = true } sqlx-core = { version = "^0.5", optional = true } sqlx-macros = { version = "^0.5", optional = true } -serde_json = { version = "^1", optional = true } uuid = { version = "0.8", features = ["serde", "v4"], optional = true } -rocket_db_pools = { git = "https://github.com/SergioBenitez/Rocket.git", features = [ - "sqlx_mysql", -], optional = true } -async-trait = { version = "0.1", optional = true } -log = { version = "^0.4", optional = true } [dev-dependencies] smol = { version = "^1.2" } diff --git a/examples/rocket_example/Cargo.toml b/examples/rocket_example/Cargo.toml index be96f986..644dd412 100644 --- a/examples/rocket_example/Cargo.toml +++ b/examples/rocket_example/Cargo.toml @@ -1,31 +1,32 @@ [package] -name = "rocket-example" +name = "sea-orm-rocket-example" version = "0.1.0" +authors = ["Sam Samai "] edition = "2018" publish = false + [workspace] + [dependencies] +async-stream = { version = "^0.3" } +futures = { version = "^0.3" } +futures-util = { version = "^0.3" } rocket = { git = "https://github.com/SergioBenitez/Rocket.git", features = [ "json", ] } -rocket_db_pools = { git = "https://github.com/SergioBenitez/Rocket.git", features = [] } +rocket_db_pools = { git = "https://github.com/SergioBenitez/Rocket.git" } rocket_dyn_templates = { git = "https://github.com/SergioBenitez/Rocket.git", features = [ "tera", ] } sea-orm = { path = "../../", features = ["web-api-rocket"] } -sea-query = { version = "^0.12.8" } - serde_json = { version = "^1" } -futures = { version = "^0.3" } -async-stream = { version = "^0.3" } -futures-util = { version = "^0.3" } [dependencies.sqlx] -version = "0.5.1" +version = "^0.5" default-features = false features = ["macros", "offline", "migrate"] [features] default = ["sqlx-postgres"] -sqlx-postgres = ["sea-orm/sqlx-postgres"] -sqlx-mysql = ["sea-orm/sqlx-mysql"] +sqlx-mysql = ["sea-orm/sqlx-mysql", "rocket_db_pools/sqlx_mysql"] +sqlx-postgres = ["sea-orm/sqlx-postgres", "rocket_db_pools/sqlx_postgres"]