Cargo
This commit is contained in:
parent
9be7440e58
commit
5c23cf7739
10
Cargo.toml
10
Cargo.toml
@ -23,24 +23,22 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-stream = { version = "^0.3" }
|
async-stream = { version = "^0.3" }
|
||||||
|
async-trait = { version = "0.1", optional = true }
|
||||||
chrono = { version = "^0", optional = true }
|
chrono = { version = "^0", optional = true }
|
||||||
futures = { version = "^0.3" }
|
futures = { version = "^0.3" }
|
||||||
futures-util = { 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 }
|
rust_decimal = { version = "^1", optional = true }
|
||||||
sea-orm-macros = { version = "^0.1.1", path = "sea-orm-macros", optional = true }
|
sea-orm-macros = { version = "^0.1.1", path = "sea-orm-macros", optional = true }
|
||||||
sea-query = { version = "^0.16", features = ["thread-safe"] }
|
sea-query = { version = "^0.16", features = ["thread-safe"] }
|
||||||
sea-strum = { version = "^0.21", features = ["derive", "sea-orm"] }
|
sea-strum = { version = "^0.21", features = ["derive", "sea-orm"] }
|
||||||
serde = { version = "^1.0", features = ["derive"] }
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
|
serde_json = { version = "^1", optional = true }
|
||||||
sqlx = { version = "^0.5", optional = true }
|
sqlx = { version = "^0.5", optional = true }
|
||||||
sqlx-core = { version = "^0.5", optional = true }
|
sqlx-core = { version = "^0.5", optional = true }
|
||||||
sqlx-macros = { 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 }
|
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]
|
[dev-dependencies]
|
||||||
smol = { version = "^1.2" }
|
smol = { version = "^1.2" }
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rocket-example"
|
name = "sea-orm-rocket-example"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
authors = ["Sam Samai <sam@studio2pi.com.au>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
async-stream = { version = "^0.3" }
|
||||||
|
futures = { version = "^0.3" }
|
||||||
|
futures-util = { version = "^0.3" }
|
||||||
rocket = { git = "https://github.com/SergioBenitez/Rocket.git", features = [
|
rocket = { git = "https://github.com/SergioBenitez/Rocket.git", features = [
|
||||||
"json",
|
"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 = [
|
rocket_dyn_templates = { git = "https://github.com/SergioBenitez/Rocket.git", features = [
|
||||||
"tera",
|
"tera",
|
||||||
] }
|
] }
|
||||||
sea-orm = { path = "../../", features = ["web-api-rocket"] }
|
sea-orm = { path = "../../", features = ["web-api-rocket"] }
|
||||||
sea-query = { version = "^0.12.8" }
|
|
||||||
|
|
||||||
serde_json = { version = "^1" }
|
serde_json = { version = "^1" }
|
||||||
futures = { version = "^0.3" }
|
|
||||||
async-stream = { version = "^0.3" }
|
|
||||||
futures-util = { version = "^0.3" }
|
|
||||||
|
|
||||||
[dependencies.sqlx]
|
[dependencies.sqlx]
|
||||||
version = "0.5.1"
|
version = "^0.5"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["macros", "offline", "migrate"]
|
features = ["macros", "offline", "migrate"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["sqlx-postgres"]
|
default = ["sqlx-postgres"]
|
||||||
sqlx-postgres = ["sea-orm/sqlx-postgres"]
|
sqlx-mysql = ["sea-orm/sqlx-mysql", "rocket_db_pools/sqlx_mysql"]
|
||||||
sqlx-mysql = ["sea-orm/sqlx-mysql"]
|
sqlx-postgres = ["sea-orm/sqlx-postgres", "rocket_db_pools/sqlx_postgres"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user