rust-lib/Cargo.toml

55 lines
1.6 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-05 01:46:35 +02:00
rust-version = "1.80.0"
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-05 01:49:28 +02:00
version = "1.4.2-hotfix"
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.4", optional = true }
tower-http = { version = "0.5", optional = true, features = ["trace", "cors", "normalize-path"] }
2024-06-22 17:18:29 +02:00
# Async
2024-07-17 13:02:09 +02:00
tokio = { version = "1.38", optional = true, features = ["fs"] }
tokio-util = { version = "0.7", optional = true, features = ["io"] }
# 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"] }
[workspace.dependencies]
2024-07-17 13:02:09 +02:00
syn = "2.0"
quote = "1.0"
2024-06-22 17:18:29 +02:00
[features]
axum = ["dep:axum", "dep:tower", "dep:tower-http", "dep:thiserror", "dep:tracing", "dep:tracing-subscriber", "dep:tokio"]
io = ["dep:tokio", "dep:tokio-util"]
iter = []
2024-06-22 17:18:29 +02:00
nom = ["dep:nom"]
serde = ["dep:serde"]
derive = ["dep:into-response-derive", "axum", "serde"]
read-files = ["dep:read-files"]