rust-lib/Cargo.toml

70 lines
2.1 KiB
TOML
Raw Normal View History

[workspace]
members = ["crates/*"]
2024-08-05 01:46:35 +02:00
exclude = ["examples"]
[workspace.package]
2024-06-22 17:18:29 +02:00
edition = "2021"
2024-08-19 19:40:14 +02:00
rust-version = "1.80.1"
2024-06-22 17:18:29 +02:00
authors = ["Martin Berg Alstad"]
homepage = "emberal.github.io"
2024-06-22 17:18:29 +02:00
[package]
name = "lib"
2024-08-14 20:37:10 +02:00
version = "1.4.3"
description = "A library with utilities and helper fuctions."
edition = { workspace = true }
rust-version = { workspace = true }
authors = { workspace = true }
homepage = { workspace = true }
2024-06-22 17:18:29 +02:00
[lib]
[dependencies]
# Api
2024-07-17 13:02:09 +02:00
axum = { version = "0.7", optional = true, features = ["multipart"] }
tower = { version = "0.5", optional = true }
2024-07-17 13:02:09 +02:00
tower-http = { version = "0.5", optional = true, features = ["trace", "cors", "normalize-path"] }
2024-08-27 00:04:21 +02:00
mime = { version = "0.3.17", optional = true }
2024-06-22 17:18:29 +02:00
# Async
2024-08-19 19:40:14 +02:00
tokio = { version = "1.39", optional = true, features = ["fs"] }
2024-07-17 13:02:09 +02:00
tokio-util = { version = "0.7", optional = true, features = ["io"] }
2024-08-19 19:40:14 +02:00
# Database
diesel-crud-derive = { path = "crates/diesel_crud_derive", optional = true }
diesel-crud-trait = { path = "crates/diesel_crud_trait", optional = true }
# Error handling
2024-07-17 13:02:09 +02:00
thiserror = { version = "1.0", optional = true }
2024-06-26 10:20:52 +02:00
# Logging
2024-07-17 13:02:09 +02:00
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", optional = true }
2024-06-22 17:18:29 +02:00
# Parsing
2024-07-17 13:02:09 +02:00
nom = { version = "7.1", optional = true }
# Procedural macros
into-response-derive = { path = "crates/into_response_derive", optional = true }
read-files = { path = "crates/read_files", optional = true }
2024-06-22 17:18:29 +02:00
# Serialization / Deserialization
2024-07-17 13:02:09 +02:00
serde = { version = "1.0", optional = true, features = ["derive"] }
# Time
chrono = { version = "0.4", optional = true, features = ["serde"] }
# Utils
derive_more = { workspace = true, features = ["from", "constructor"] }
[workspace.dependencies]
2024-07-17 13:02:09 +02:00
syn = "2.0"
quote = "1.0"
2024-08-19 19:40:14 +02:00
deluxe = "0.5"
proc-macro2 = "1.0"
diesel = "2.2"
diesel-async = "0.5"
derive_more = "1.0"
2024-06-22 17:18:29 +02:00
[features]
2024-08-27 00:04:21 +02:00
axum = ["dep:axum", "dep:tower", "dep:tower-http", "dep:thiserror", "dep:tracing", "dep:tracing-subscriber", "dep:tokio", "dep:mime"]
2024-08-19 19:40:14 +02:00
diesel = ["dep:diesel-crud-trait"]
io = ["dep:tokio", "dep:tokio-util"]
iter = []
2024-06-22 17:18:29 +02:00
nom = ["dep:nom"]
serde = ["dep:serde"]
2024-08-19 19:40:14 +02:00
derive = ["dep:into-response-derive", "dep:diesel-crud-derive"]
read-files = ["dep:read-files"]
time = ["dep:chrono"]