Fries
53193d84b8
i abstraced the file handling out to a global static struct called "Files" that is only written to once, in main inside a OnceLock. i also split out asset handling into its own module folder called assets which has all the asset handling code. i also have a new crate called "proc_macros" which provides a attribute macro that adds the base_template field to each struct i decorate with it using the syn and quote crates.
67 lines
1.2 KiB
TOML
67 lines
1.2 KiB
TOML
[workspace]
|
|
members = ["cli", "shared", "proc-macros"]
|
|
|
|
[package]
|
|
name = "meowy-webring"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
rust-version = "1.70"
|
|
|
|
[profile.dev]
|
|
lto = false
|
|
[profile.release]
|
|
lto = "thin"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
hex = "0.4"
|
|
log = "0.4"
|
|
md5 = "0.7"
|
|
|
|
[dependencies.rocket]
|
|
version = "=0.5.0-rc.3"
|
|
default-features = false
|
|
features = ["json"]
|
|
|
|
[dependencies.rust-embed]
|
|
version = "6"
|
|
features = ["debug-embed"]
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
|
|
[dependencies.askama_rocket]
|
|
git = "https://github.com/djc/askama.git"
|
|
package = "askama_rocket"
|
|
rev = "b9e51601560398766eac445517fb17c35090a952"
|
|
default-features = false
|
|
|
|
[dependencies.askama]
|
|
git = "https://github.com/djc/askama.git"
|
|
package = "askama"
|
|
rev = "b9e51601560398766eac445517fb17c35090a952"
|
|
version = "0.12"
|
|
default-features = false
|
|
|
|
[dependencies.shared]
|
|
path = "./shared"
|
|
|
|
[dependencies.simple_logger]
|
|
version = "4"
|
|
default-features = false
|
|
|
|
[dependencies.notify]
|
|
version = "6"
|
|
default-features = false
|
|
features = ["macos_fsevent"]
|
|
|
|
[dependencies.rocket_cors]
|
|
version = "=0.6.0-alpha2"
|
|
default_features = false
|
|
|
|
[dependencies.proc_macros]
|
|
path = "./proc-macros"
|