chore: define workspace.dependencies and add sea-orm-cli as dev-dep

This commit is contained in:
Florian Briand 2024-09-19 23:50:42 +02:00
parent 0d51e3aa68
commit fcba21ef68
Signed by: florian_briand
GPG Key ID: CC981B9E6B98E70B
8 changed files with 952 additions and 90 deletions

988
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,4 +7,14 @@ members = [
"crates/utils", "crates/utils",
"migration", "migration",
"entity", "entity",
".",
] ]
[workspace.dependencies]
anyhow = "1.0"
axum = "0.7.5"
dotenv = "0.15"
sea-orm-cli = "1.0.1"
sea-orm = "1.0.1"
thiserror = "1.0"
tokio = "1.39.1"

View File

@ -6,20 +6,20 @@ edition = "2021"
[dependencies] [dependencies]
askama = "0.12.1" askama = "0.12.1"
askama_axum = "0.4.0" askama_axum = "0.4.0"
axum = "0.7.5" axum.workspace = true
axum-htmx = { version = "0.6", features = ["auto-vary"] } axum-htmx = { version = "0.6", features = ["auto-vary"] }
futures = "0.3.30" futures = "0.3.30"
listenfd = "1.0.1" listenfd = "1.0.1"
notify = "6.1.1" notify = "6.1.1"
sea-orm = { version = "1.0.1", features = [ sea-orm = { workspace = true, features = [
# Same as in the migration crate # Same `ASYNC_RUNTIME` and `DATABASE_DRIVER` as in the migration crate
"sqlx-sqlite", "sqlx-sqlite",
"runtime-tokio-rustls", "runtime-tokio-rustls",
"macros", "macros",
] } ] }
serde = { version = "1.0.204", features = ["derive"] } serde = { version = "1.0.204", features = ["derive"] }
thiserror = "1.0.63" thiserror.workspace = true
tokio = { version = "1.39.1", features = ["macros", "rt-multi-thread"] } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tower-http = { version = "0.5.2", features = ["fs"] } tower-http = { version = "0.5.2", features = ["fs"] }
tower-livereload = "0.9.3" tower-livereload = "0.9.3"
@ -30,3 +30,4 @@ utils = { path = "../utils" }
[dev-dependencies] [dev-dependencies]
cargo-watch = "8.5.1" cargo-watch = "8.5.1"
systemfd = "0.4.0" systemfd = "0.4.0"
sea-orm-cli.workspace = true

View File

@ -13,8 +13,16 @@ crate-type = ["lib", "cdylib", "staticlib"]
tauri-build = { version = "2.0.0-rc", features = [] } tauri-build = { version = "2.0.0-rc", features = [] }
[dependencies] [dependencies]
tauri = { version = "2.0.0-rc", features = [] } axum.workspace = true
tauri-plugin-shell = "2.0.0-rc" bytes = "1.6.1"
http = "1.1.0"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"
tauri = { version = "2.0.0-rc", features = [] }
tauri-plugin-shell = "2.0.0-rc"
thiserror.workspace = true
tower = "0.4.13"
tokio.workspace = true
app = { path = "../app" }

View File

@ -4,10 +4,11 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
libc = "0.2" libc = "0.2"
thiserror = "1.0" thiserror.workspace = true
utils = { path = "../utils" } utils = { path = "../utils" }
[build-dependencies] [build-dependencies]
dotenv = "0.15" dotenv.workspace = true

View File

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "1.0" anyhow.workspace = true
directories = "5.0" directories = "5.0"
dotenv = "0.15" dotenv.workspace = true
thiserror = "1.0" thiserror.workspace = true

View File

@ -8,4 +8,7 @@ name = "entity"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
sea-orm = { version = "1.0.1" } sea-orm.workspace = true
[dev-dependencies]
sea-orm-cli.workspace = true

View File

@ -11,6 +11,9 @@ path = "src/lib.rs"
[dependencies] [dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] } async-std = { version = "1", features = ["attributes", "tokio1"] }
[dev-dependencies]
sea-orm-cli.workspace = true
[dependencies.sea-orm-migration] [dependencies.sea-orm-migration]
version = "1.0.0" version = "1.0.0"
features = [ features = [