Read files macro for loading reading files to string at compile-time
Makefile for formatting and linting Workspace for subcrates. Moved crates to subdir and moved subcrate configs to workspace.*
This commit is contained in:
29
Cargo.toml
29
Cargo.toml
@ -1,10 +1,21 @@
|
||||
[package]
|
||||
name = "lib"
|
||||
version = "1.3.5"
|
||||
[workspace]
|
||||
members = ["crates/*"]
|
||||
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
rust-version = "1.79.0"
|
||||
authors = ["Martin Berg Alstad"]
|
||||
homepage = "emberal.github.io"
|
||||
|
||||
[package]
|
||||
name = "lib"
|
||||
version = "1.4.0"
|
||||
description = "A library with utilities and helper fuctions."
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
homepage = { workspace = true }
|
||||
|
||||
[lib]
|
||||
|
||||
[dependencies]
|
||||
@ -22,10 +33,15 @@ tracing = { version = "0.1.40", optional = true }
|
||||
tracing-subscriber = { version = "0.3.18", optional = true }
|
||||
# Parsing
|
||||
nom = { version = "7.1.3", optional = true }
|
||||
# Procedural macros
|
||||
into-response-derive = { path = "crates/into_response_derive", optional = true }
|
||||
read-files = { path = "crates/read_files", optional = true }
|
||||
# Serialization / Deserialization
|
||||
serde = { version = "1.0.203", optional = true, features = ["derive"] }
|
||||
# Derive macros
|
||||
derive = { path = "derive", optional = true }
|
||||
|
||||
[workspace.dependencies]
|
||||
syn = "2.0.71"
|
||||
quote = "1.0.36"
|
||||
|
||||
[features]
|
||||
axum = ["dep:axum", "dep:tower", "dep:tower-http", "dep:thiserror", "dep:tracing", "dep:tracing-subscriber", "dep:tokio"]
|
||||
@ -33,4 +49,5 @@ io = ["dep:tokio", "dep:tokio-util"]
|
||||
iter = []
|
||||
nom = ["dep:nom"]
|
||||
serde = ["dep:serde"]
|
||||
derive = ["dep:derive", "axum", "serde"]
|
||||
derive = ["dep:into-response-derive", "axum", "serde"]
|
||||
read-files = ["dep:read-files"]
|
||||
|
Reference in New Issue
Block a user