mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
47 lines
1.4 KiB
TOML
47 lines
1.4 KiB
TOML
[package]
|
|
name = "leptos-hackernews"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
actix-files = { version = "0.6", optional = true }
|
|
actix-web = { version = "4", optional = true, features = ["openssl", "macros"] }
|
|
console_log = "0.2"
|
|
console_error_panic_hook = "0.1"
|
|
futures = "0.3"
|
|
cfg-if = "1"
|
|
leptos = { path = "../../leptos", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
leptos_meta = { path = "../../meta", default-features = false }
|
|
leptos_actix = { path = "../../integrations/actix", default-features = false, optional=true }
|
|
leptos_router = { path = "../../router", default-features = false }
|
|
log = "0.4"
|
|
simple_logger = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
gloo-net = { version = "0.2", features = ["http"] }
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
# openssl = { version = "0.10", features = ["v110"] }
|
|
web-sys = { version = "0.3", features = ["AbortController", "AbortSignal"] }
|
|
|
|
[features]
|
|
default = ["csr"]
|
|
csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"]
|
|
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
|
|
ssr = [
|
|
"dep:actix-files",
|
|
"dep:actix-web",
|
|
"dep:leptos_actix",
|
|
"leptos/ssr",
|
|
"leptos_meta/ssr",
|
|
"leptos_router/ssr",
|
|
]
|
|
|
|
[package.metadata.cargo-all-features]
|
|
denylist = ["actix-files", "actix-web", "leptos_actix"]
|
|
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
|