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",
"migration",
"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]
askama = "0.12.1"
askama_axum = "0.4.0"
axum = "0.7.5"
axum.workspace = true
axum-htmx = { version = "0.6", features = ["auto-vary"] }
futures = "0.3.30"
listenfd = "1.0.1"
notify = "6.1.1"
sea-orm = { version = "1.0.1", features = [
# Same as in the migration crate
sea-orm = { workspace = true, features = [
# Same `ASYNC_RUNTIME` and `DATABASE_DRIVER` as in the migration crate
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
] }
serde = { version = "1.0.204", features = ["derive"] }
thiserror = "1.0.63"
tokio = { version = "1.39.1", features = ["macros", "rt-multi-thread"] }
thiserror.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tower-http = { version = "0.5.2", features = ["fs"] }
tower-livereload = "0.9.3"
@ -30,3 +30,4 @@ utils = { path = "../utils" }
[dev-dependencies]
cargo-watch = "8.5.1"
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 = [] }
[dependencies]
tauri = { version = "2.0.0-rc", features = [] }
tauri-plugin-shell = "2.0.0-rc"
axum.workspace = true
bytes = "1.6.1"
http = "1.1.0"
serde = { version = "1", features = ["derive"] }
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"
[dependencies]
anyhow = "1.0"
anyhow.workspace = true
libc = "0.2"
thiserror = "1.0"
thiserror.workspace = true
utils = { path = "../utils" }
[build-dependencies]
dotenv = "0.15"
dotenv.workspace = true

View File

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

View File

@ -8,4 +8,7 @@ name = "entity"
path = "src/lib.rs"
[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]
async-std = { version = "1", features = ["attributes", "tokio1"] }
[dev-dependencies]
sea-orm-cli.workspace = true
[dependencies.sea-orm-migration]
version = "1.0.0"
features = [