portfolio_leptos/Cargo.toml

114 lines
3 KiB
TOML
Raw Permalink Normal View History

2023-10-08 20:26:40 +02:00
[package]
name = "portfolio"
2024-02-18 14:03:45 +01:00
version = "0.6.0"
2023-10-08 20:26:40 +02:00
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2024-02-18 14:03:45 +01:00
leptos = { version = "0.6", features = ["nightly"] }
leptos_meta = { version = "0.6", features = ["nightly"] }
leptos_router = { version = "0.6", features = ["nightly"] }
2024-01-07 00:22:49 +01:00
gloo-net = { version = "0.5", features = ["http"] }
2023-10-08 20:26:40 +02:00
log = "0.4"
cfg-if = "1.0"
2023-11-26 18:12:15 +01:00
serde = "1.0"
chrono = { version = "0.4", features = ["serde"] }
2023-10-08 20:26:40 +02:00
2023-10-08 21:36:00 +02:00
# https://carlosted.github.io/icondata/
2024-02-18 15:34:23 +01:00
leptos_icons = "0.3"
2024-01-12 18:31:36 +01:00
icondata = "0.3"
2023-10-08 21:36:00 +02:00
2023-10-08 20:26:40 +02:00
# dependecies for client (enable when csr or hydrate set)
wasm-bindgen = { version = "0.2", optional = true }
2024-01-07 00:22:49 +01:00
console_log = { version = "1.0", optional = true }
2023-10-08 20:26:40 +02:00
console_error_panic_hook = { version = "0.1", optional = true }
# dependecies for server (enable when ssr set)
actix-files = { version = "0.6", optional = true }
2024-02-18 15:34:23 +01:00
actix-web = { version = "4.5", features = ["macros"], optional = true }
2024-02-18 14:03:45 +01:00
leptos_actix = { version = "0.6", optional = true }
2023-10-08 20:26:40 +02:00
futures = { version = "0.3", optional = true }
2024-01-07 00:22:49 +01:00
simple_logger = { version = "4.3", optional = true }
2024-02-18 15:34:23 +01:00
pulldown-cmark = { version = "0.10", optional = true } # Markdown parser
2023-11-26 16:04:31 +01:00
gray_matter = { version = "0.2", optional = true } # frontmatter parser
serde_yaml = { version = "0.9", optional = true }
anyhow = { version = "1.0", optional = true }
thiserror = { version = "1.0", optional = true }
estimated_read_time = { version = "1.0", optional = true }
2023-10-08 20:26:40 +02:00
[features]
default = ["csr"]
hydrate = [
"leptos/hydrate",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"dep:wasm-bindgen",
"dep:console_log",
"dep:console_error_panic_hook",
]
csr = [
"leptos/csr",
"leptos_meta/csr",
"leptos_router/csr",
"dep:wasm-bindgen",
"dep:console_log",
"dep:console_error_panic_hook",
]
ssr = [
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:leptos_actix",
"dep:actix-web",
"dep:actix-files",
"dep:futures",
"dep:simple_logger",
2023-11-26 16:04:31 +01:00
"dep:pulldown-cmark",
"dep:gray_matter",
"dep:serde_yaml",
"dep:anyhow",
"dep:thiserror",
"dep:estimated_read_time"
2023-10-08 20:26:40 +02:00
]
[package.metadata.cargo-all-features]
denylist = [
"actix-files",
"actix-web",
"console_error_panic_hook",
"console_log",
"futures",
"leptos_actix",
"simple_logger",
"wasm-bindgen",
]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
[profile.release]
codegen-units = 1
lto = true
opt-level = 'z'
[package.metadata.leptos]
name = "portfolio"
site-root = "target/site"
site-pkg-dir = "pkg"
2024-01-07 00:23:12 +01:00
style-file = "style/main.scss" # Important for Hot Reload to work properly (File must exist)
2023-10-08 20:26:40 +02:00
tailwind-input-file = "style/portfolio.css"
2024-01-07 00:23:12 +01:00
watch-additional-files = ["data_src"]
2023-10-08 20:26:40 +02:00
assets-dir = "public"
site-addr = "127.0.0.1:3000"
reload-port = 3001
browserquery = "defaults"
watch = false
env = "DEV"
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false