rust-lib/Cargo.toml

34 lines
936 B
TOML
Raw Permalink Normal View History

2024-06-22 17:18:29 +02:00
[package]
name = "lib"
2024-06-26 10:20:52 +02:00
version = "1.1.0"
2024-06-22 17:18:29 +02:00
edition = "2021"
authors = ["Martin Berg Alstad"]
[lib]
[dependencies]
# Api
axum = { version = "0.7.5", optional = true }
2024-06-26 10:20:52 +02:00
tower = { version = "0.4.13", optional = true }
tower-http = { version = "0.5.2", optional = true, features = ["trace", "cors", "normalize-path"] }
2024-06-22 17:18:29 +02:00
# Async
tokio = { version = "1.38.0", optional = true, features = ["fs"] }
tokio-util = { version = "0.7.11", optional = true, features = ["io"] }
2024-06-26 10:20:52 +02:00
# Logging
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
2024-06-22 17:18:29 +02:00
# Parsing
nom = { version = "7.1.3", optional = true }
# Serialization / Deserialization
serde = { version = "1.0.203", optional = true, features = ["derive"] }
# Derive macros
derive = { path = "derive", optional = true }
[features]
2024-06-26 10:20:52 +02:00
axum = ["dep:axum", "dep:tower", "dep:tower-http"]
2024-06-22 17:18:29 +02:00
tokio = ["dep:tokio", "dep:tokio-util"]
vec = []
nom = ["dep:nom"]
serde = ["dep:serde"]
derive = ["dep:derive", "axum", "serde"]