init
This commit is contained in:
Generated
+203
-203
File diff suppressed because it is too large
Load Diff
+11
-11
@@ -11,33 +11,33 @@ crate-type = ["rlib"]
|
||||
members = [".", "migration", "event_bus"]
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.52.3", features = ["full"] }
|
||||
tokio = { version = "1.53.1", features = ["full"] }
|
||||
axum = { version = "0.8", features = ["ws"] }
|
||||
axum-extra = { version = "0.12.6", features = ["cookie"] }
|
||||
config = "0.15.25"
|
||||
sea-orm = { version = "2.0.0-rc.42", features = ["sqlx-sqlite", "sqlx-postgres", "sqlx-mysql", "runtime-tokio", "with-chrono", "with-uuid", "with-json", "schema-sync"] }
|
||||
sea-orm = { version = "2.0.0", features = ["sqlx-sqlite", "sqlx-postgres", "sqlx-mysql", "runtime-tokio", "with-chrono", "with-uuid", "with-json", "schema-sync"] }
|
||||
migration = { path = "migration" }
|
||||
event_bus = { path = "event_bus" }
|
||||
parking_lot = "0.12.5"
|
||||
serde = "1.0.228"
|
||||
serde_json = "1.0.150"
|
||||
toml = "1.1.2"
|
||||
uuid = { version = "1.23.5", features = ["v4", "v7", "fast-rng", "serde"] }
|
||||
serde = "1.0.229"
|
||||
serde_json = "1.0.151"
|
||||
toml = "1.1.3"
|
||||
uuid = { version = "1.24.0", features = ["v4", "v7", "fast-rng", "serde"] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "time"] }
|
||||
thiserror = "2"
|
||||
utoipa = { version = "5", features = ["uuid", "chrono"] }
|
||||
utoipa-swagger-ui = { version = "9", features = ["axum"] }
|
||||
log = "0.4"
|
||||
bitflags = "2.13.0"
|
||||
bitflags = "2.13.1"
|
||||
argon2 = { version = "0.6.0-rc.8", features = ["password-hash"] }
|
||||
jsonwebtoken = { version = "10.4.0", features = ["aws_lc_rs"] }
|
||||
jsonwebtoken = { version = "11.0.0", features = ["aws_lc_rs"] }
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
tower-http = { version = "0.7.0", features = ["catch-panic", "cors", "trace"] }
|
||||
chrono = "0.4.45"
|
||||
validator = { version = "0.20.0", features = ["derive"] }
|
||||
async-trait = "0.1.89"
|
||||
anyhow = "1.0.103"
|
||||
async-trait = "0.1.91"
|
||||
anyhow = "1.0.104"
|
||||
futures-util = "0.3"
|
||||
form_urlencoded = "1.2.2"
|
||||
time = "0.3.53"
|
||||
time = "0.3.54"
|
||||
|
||||
@@ -13,11 +13,11 @@ name = "event_bus_throughput"
|
||||
harness = false
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.52.3", default-features = false, features = ["rt", "sync"] }
|
||||
tokio = { version = "1.53.1", default-features = false, features = ["rt", "sync"] }
|
||||
parking_lot = "0.12.5"
|
||||
tracing = "0.1"
|
||||
uuid = { version = "1.23.5", features = ["v4"] }
|
||||
uuid = { version = "1.24.0", features = ["v4"] }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1.52.3", default-features = false, features = ["rt", "rt-multi-thread", "macros", "time", "sync"] }
|
||||
tokio = { version = "1.53.1", default-features = false, features = ["rt", "rt-multi-thread", "macros", "time", "sync"] }
|
||||
criterion = { version = "0.8.2", features = ["async_tokio"] }
|
||||
@@ -12,7 +12,7 @@ path = "src/lib.rs"
|
||||
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
||||
|
||||
[dependencies.sea-orm-migration]
|
||||
version = "2.0.0-rc.42"
|
||||
version = "2.0.0"
|
||||
features = [
|
||||
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
|
||||
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
|
||||
|
||||
@@ -384,13 +384,18 @@ impl MigrationTrait for Migration {
|
||||
.col(Alias::new("resource_id"))
|
||||
.unique(),
|
||||
)
|
||||
.index(
|
||||
.to_owned(),
|
||||
)
|
||||
.await?;
|
||||
|
||||
manager
|
||||
.create_index(
|
||||
Index::create()
|
||||
.name("idx_server_item_order_scope")
|
||||
.table(Alias::new("server_item_order"))
|
||||
.col(Alias::new("server_id"))
|
||||
.col(Alias::new("parent_category_id"))
|
||||
.col(Alias::new("order_key")),
|
||||
)
|
||||
.col(Alias::new("order_key"))
|
||||
.to_owned(),
|
||||
)
|
||||
.await?;
|
||||
@@ -814,6 +819,15 @@ impl MigrationTrait for Migration {
|
||||
.await?;
|
||||
}
|
||||
|
||||
manager
|
||||
.drop_index(
|
||||
Index::drop()
|
||||
.name("idx_server_item_order_scope")
|
||||
.table(Alias::new("server_item_order"))
|
||||
.to_owned(),
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user