rust-lib/Cargo.toml

29 lines
698 B
TOML
Raw Permalink Normal View History

2024-06-22 17:18:29 +02:00
[package]
name = "lib"
version = "1.0.0"
edition = "2021"
authors = ["Martin Berg Alstad"]
[lib]
[dependencies]
# Api
axum = { version = "0.7.5", optional = true }
# Async
tokio = { version = "1.38.0", optional = true, features = ["fs"] }
tokio-util = { version = "0.7.11", optional = true, features = ["io"] }
# 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]
axum = ["dep:axum"]
tokio = ["dep:tokio", "dep:tokio-util"]
vec = []
nom = ["dep:nom"]
serde = ["dep:serde"]
derive = ["dep:derive", "axum", "serde"]