Refactor: Use workspace dependencies
This commit is contained in:
parent
899b433529
commit
20176595b9
1 changed files with 38 additions and 38 deletions
76
Cargo.toml
76
Cargo.toml
|
|
@ -11,78 +11,78 @@ categories = ["development-tools::testing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# Common library for shared types
|
# Common library for shared types
|
||||||
botlib = { path = "../botlib", features = ["database"] }
|
botlib = { workspace = true, features = ["database"] }
|
||||||
|
|
||||||
# Async runtime
|
# Async runtime
|
||||||
tokio = { version = "1.41", features = ["full", "test-util", "macros"] }
|
tokio = { workspace = true, features = ["full", "test-util", "macros"] }
|
||||||
async-trait = "0.1"
|
async-trait = { workspace = true }
|
||||||
futures = "0.3"
|
futures = { workspace = true }
|
||||||
futures-util = "0.3"
|
futures-util = { workspace = true }
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
diesel = { version = "2.1", features = ["postgres", "uuid", "chrono", "serde_json", "r2d2"] }
|
diesel = { workspace = true, features = ["postgres", "uuid", "chrono", "serde_json", "r2d2"] }
|
||||||
diesel_migrations = "2.1.0"
|
diesel_migrations = { workspace = true }
|
||||||
|
|
||||||
# HTTP mocking and testing
|
# HTTP mocking and testing
|
||||||
wiremock = "0.6"
|
wiremock = { workspace = true }
|
||||||
cookie = "0.18"
|
cookie = { workspace = true }
|
||||||
mockito = "1.7"
|
mockito = { workspace = true }
|
||||||
reqwest = { version = "0.12", features = ["json", "cookies", "blocking"] }
|
reqwest = { workspace = true, features = ["json", "cookies", "blocking"] }
|
||||||
|
|
||||||
# Web/E2E testing - using Chrome DevTools Protocol directly (no chromedriver)
|
# Web/E2E testing - using Chrome DevTools Protocol directly (no chromedriver)
|
||||||
chromiumoxide = { version = "0.7", features = ["tokio-runtime"], default-features = false }
|
chromiumoxide = { workspace = true }
|
||||||
|
|
||||||
# Web framework for test server
|
# Web framework for test server
|
||||||
axum = { version = "0.7.5", features = ["ws", "multipart", "macros"] }
|
axum = { workspace = true }
|
||||||
tower = "0.4"
|
tower = { workspace = true }
|
||||||
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
tower-http = { workspace = true, features = ["cors", "trace"] }
|
||||||
hyper = { version = "0.14", features = ["full"] }
|
hyper = { version = "0.14", features = ["full"] }
|
||||||
|
|
||||||
# Serialization
|
# Serialization
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = { workspace = true }
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
uuid = { version = "1.11", features = ["serde", "v4"] }
|
uuid = { workspace = true, features = ["serde", "v4"] }
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { workspace = true, features = ["serde"] }
|
||||||
rand = "0.9"
|
rand = { workspace = true }
|
||||||
tempfile = "3"
|
tempfile = { workspace = true }
|
||||||
which = "7"
|
which = { workspace = true }
|
||||||
regex = "1.11"
|
regex = { workspace = true }
|
||||||
base64 = "0.22"
|
base64 = { workspace = true }
|
||||||
url = "2.5"
|
url = { workspace = true }
|
||||||
dirs = "5.0"
|
dirs = { workspace = true }
|
||||||
|
|
||||||
# Process management for services
|
# Process management for services
|
||||||
nix = { version = "0.29", features = ["signal", "process"] }
|
nix = { workspace = true }
|
||||||
|
|
||||||
# Archive extraction
|
# Archive extraction
|
||||||
zip = "2.2"
|
zip = { workspace = true }
|
||||||
|
|
||||||
# Logging and tracing
|
# Logging and tracing
|
||||||
log = "0.4"
|
log = { workspace = true }
|
||||||
env_logger = "0.11"
|
env_logger = { workspace = true }
|
||||||
tracing = "0.1"
|
tracing = { workspace = true }
|
||||||
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
|
tracing-subscriber = { workspace = true, features = ["fmt", "env-filter"] }
|
||||||
|
|
||||||
# Error handling
|
# Error handling
|
||||||
anyhow = "1.0"
|
anyhow = { workspace = true }
|
||||||
thiserror = "2.0"
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
# Test framework enhancements
|
# Test framework enhancements
|
||||||
pretty_assertions = "1.4"
|
pretty_assertions = { workspace = true }
|
||||||
|
|
||||||
# Async testing
|
# Async testing
|
||||||
tokio-test = "0.4"
|
tokio-test = { workspace = true }
|
||||||
|
|
||||||
# Rhai for BASIC function testing
|
# Rhai for BASIC function testing
|
||||||
rhai = { git = "https://github.com/therealprof/rhai.git", branch = "features/use-web-time", features = ["sync"] }
|
rhai = { git = "https://github.com/therealprof/rhai.git", branch = "features/use-web-time", features = ["sync"] }
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
dotenvy = "0.15"
|
dotenvy = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
insta = { version = "1.40", features = ["json", "yaml"] }
|
insta = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["full"]
|
default = ["full"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue