123 lines
2.5 KiB
TOML
123 lines
2.5 KiB
TOML
[package]
|
|
name = "site"
|
|
version = "2.1.1"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
opt-level = 'z'
|
|
lto = true
|
|
|
|
[features]
|
|
hydration = [
|
|
"yew/hydration"
|
|
]
|
|
|
|
static = [
|
|
"atom_syndication",
|
|
"chrono",
|
|
"rss",
|
|
"yew/ssr"
|
|
]
|
|
|
|
[[bin]]
|
|
name = "site-build"
|
|
required-features = [
|
|
"static",
|
|
]
|
|
|
|
[[bin]]
|
|
name = "site"
|
|
|
|
[build-dependencies]
|
|
time = { version = "0.3", features = ["formatting"] }
|
|
|
|
[dependencies]
|
|
async-trait = { version = "0.1" }
|
|
enum-iterator = { version = "1.4" }
|
|
gloo = { version = "0.10", features = ["net"] }
|
|
gloo-events = { version = "0.2" }
|
|
gloo-utils = { version = "0.2", features = ["serde"] }
|
|
include_dir = { version = "0.7" }
|
|
js-sys = { version = "0.3" }
|
|
lazy_static = { version = "1.4" }
|
|
log = { version = "0.4" }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = { version = "1.0" }
|
|
thiserror = { version = "1.0" }
|
|
uuid = { version = "1.4", features = ["js", "serde"] }
|
|
wasm-bindgen = { version = "0.2" }
|
|
wasm-bindgen-futures = { version = "0.4" }
|
|
yew = { version = "0.21" }
|
|
yew-hooks = { version = "0.3" }
|
|
yew-router = { version = "0.18" }
|
|
|
|
macros = { path = "./macros" }
|
|
model = { path = "./model" }
|
|
|
|
[dependencies.time]
|
|
version = "0.3"
|
|
features = [
|
|
"formatting",
|
|
"local-offset",
|
|
"macros",
|
|
"parsing",
|
|
"serde",
|
|
"wasm-bindgen"
|
|
]
|
|
[dependencies.yew_icons]
|
|
version = "0.8"
|
|
features = [
|
|
"BootstrapDot",
|
|
"BootstrapGithub",
|
|
"BootstrapLightningChargeFill",
|
|
"BootstrapMastodon",
|
|
"HeroiconsSolidInformationCircle",
|
|
"HeroiconsSolidQuestionMarkCircle",
|
|
"LucideAlertTriangle",
|
|
"LucideBug",
|
|
"LucideCheck",
|
|
"LucideCheckCircle",
|
|
"LucideClipboardCheck",
|
|
"LucideClipboardCopy",
|
|
"LucideFlame",
|
|
"LucideLink",
|
|
"LucideList",
|
|
"LucideMenu",
|
|
"LucidePencil",
|
|
"LucideRefreshCw",
|
|
"LucideRss",
|
|
"LucideX"
|
|
]
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3"
|
|
features = [
|
|
"Blob",
|
|
"Document",
|
|
"DomRect",
|
|
"Element",
|
|
"HtmlSelectElement",
|
|
"IntersectionObserver",
|
|
"IntersectionObserverEntry",
|
|
"Navigator",
|
|
"Screen",
|
|
"ScrollBehavior",
|
|
"ScrollToOptions",
|
|
"Window"
|
|
]
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = { version = "0.4" }
|
|
wasm-logger = { version = "0.2" }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
atom_syndication = { version = "0.12", optional = true }
|
|
chrono = { version = "0.4", optional = true, features = ["clock"] }
|
|
rss = { version = "2.0", optional = true }
|
|
tokio = { version = "1.32", features = ["full"] }
|
|
env_logger = { version = "0.10" }
|
|
|