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"]
|
members = [".", "migration", "event_bus"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1.52.3", features = ["full"] }
|
tokio = { version = "1.53.1", features = ["full"] }
|
||||||
axum = { version = "0.8", features = ["ws"] }
|
axum = { version = "0.8", features = ["ws"] }
|
||||||
axum-extra = { version = "0.12.6", features = ["cookie"] }
|
axum-extra = { version = "0.12.6", features = ["cookie"] }
|
||||||
config = "0.15.25"
|
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" }
|
migration = { path = "migration" }
|
||||||
event_bus = { path = "event_bus" }
|
event_bus = { path = "event_bus" }
|
||||||
parking_lot = "0.12.5"
|
parking_lot = "0.12.5"
|
||||||
serde = "1.0.228"
|
serde = "1.0.229"
|
||||||
serde_json = "1.0.150"
|
serde_json = "1.0.151"
|
||||||
toml = "1.1.2"
|
toml = "1.1.3"
|
||||||
uuid = { version = "1.23.5", features = ["v4", "v7", "fast-rng", "serde"] }
|
uuid = { version = "1.24.0", features = ["v4", "v7", "fast-rng", "serde"] }
|
||||||
tracing = "0.1.44"
|
tracing = "0.1.44"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "time"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "time"] }
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
utoipa = { version = "5", features = ["uuid", "chrono"] }
|
utoipa = { version = "5", features = ["uuid", "chrono"] }
|
||||||
utoipa-swagger-ui = { version = "9", features = ["axum"] }
|
utoipa-swagger-ui = { version = "9", features = ["axum"] }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
bitflags = "2.13.0"
|
bitflags = "2.13.1"
|
||||||
argon2 = { version = "0.6.0-rc.8", features = ["password-hash"] }
|
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 = { version = "0.5", features = ["util"] }
|
||||||
tower-http = { version = "0.7.0", features = ["catch-panic", "cors", "trace"] }
|
tower-http = { version = "0.7.0", features = ["catch-panic", "cors", "trace"] }
|
||||||
chrono = "0.4.45"
|
chrono = "0.4.45"
|
||||||
validator = { version = "0.20.0", features = ["derive"] }
|
validator = { version = "0.20.0", features = ["derive"] }
|
||||||
async-trait = "0.1.89"
|
async-trait = "0.1.91"
|
||||||
anyhow = "1.0.103"
|
anyhow = "1.0.104"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
form_urlencoded = "1.2.2"
|
form_urlencoded = "1.2.2"
|
||||||
time = "0.3.53"
|
time = "0.3.54"
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ name = "event_bus_throughput"
|
|||||||
harness = false
|
harness = false
|
||||||
|
|
||||||
[dependencies]
|
[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"
|
parking_lot = "0.12.5"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
uuid = { version = "1.23.5", features = ["v4"] }
|
uuid = { version = "1.24.0", features = ["v4"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[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"] }
|
criterion = { version = "0.8.2", features = ["async_tokio"] }
|
||||||
@@ -12,7 +12,7 @@ path = "src/lib.rs"
|
|||||||
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
||||||
|
|
||||||
[dependencies.sea-orm-migration]
|
[dependencies.sea-orm-migration]
|
||||||
version = "2.0.0-rc.42"
|
version = "2.0.0"
|
||||||
features = [
|
features = [
|
||||||
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
|
# 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.
|
# 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"))
|
.col(Alias::new("resource_id"))
|
||||||
.unique(),
|
.unique(),
|
||||||
)
|
)
|
||||||
.index(
|
.to_owned(),
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
|
manager
|
||||||
|
.create_index(
|
||||||
Index::create()
|
Index::create()
|
||||||
.name("idx_server_item_order_scope")
|
.name("idx_server_item_order_scope")
|
||||||
|
.table(Alias::new("server_item_order"))
|
||||||
.col(Alias::new("server_id"))
|
.col(Alias::new("server_id"))
|
||||||
.col(Alias::new("parent_category_id"))
|
.col(Alias::new("parent_category_id"))
|
||||||
.col(Alias::new("order_key")),
|
.col(Alias::new("order_key"))
|
||||||
)
|
|
||||||
.to_owned(),
|
.to_owned(),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
@@ -814,6 +819,15 @@ impl MigrationTrait for Migration {
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
manager
|
||||||
|
.drop_index(
|
||||||
|
Index::drop()
|
||||||
|
.name("idx_server_item_order_scope")
|
||||||
|
.table(Alias::new("server_item_order"))
|
||||||
|
.to_owned(),
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user