feat: add base app

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-06-04 20:11:02 +02:00
parent c3b45d9eb6
commit 74a16b4d7c
13 changed files with 2675 additions and 528 deletions

View File

@@ -1,5 +1,13 @@
[workspace]
[workspace.dependencies]
uuid = { version = "1.3.0", features = ["v4", "serde"] }
chrono = { version = "0.4.23", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
[package]
name = "leptos_start"
name = "como_web"
version = "0.1.0"
edition = "2021"
@@ -7,31 +15,55 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]
[dependencies]
actix-files = { version = "0.6", optional = true }
actix-web = { version = "4", optional = true, features = ["macros"] }
console_error_panic_hook = "0.1"
console_log = "0.2"
cfg-if = "1"
leptos = { version = "0.3", default-features = false, features = ["serde"] }
leptos_meta = { version = "0.3", default-features = false }
leptos_actix = { version = "0.3", optional = true }
leptos_router = { version = "0.3", default-features = false }
wasm-bindgen = "=0.2.84"
lazy_static = "1"
leptos = { version = "*", default-features = false, features = ["serde"] }
leptos_meta = { version = "*", default-features = false }
leptos_axum = { version = "*", default-features = false, optional = true }
leptos_router = { version = "*", default-features = false }
log = "0.4"
simple_logger = "4"
thiserror = "1"
axum = { version = "0.6.1", optional = true }
tower = { version = "0.4.13", optional = true }
tower-http = { version = "0.3.4", features = ["fs"], optional = true }
tokio = { version = "1", features = ["time"], optional = true }
wasm-bindgen = "0.2"
tracing-subscriber = { version = "0.3.16", optional = true, features = [
"env-filter",
] }
tracing = { version = "0.1.37", features = ["log"], optional = true }
anyhow = { version = "1.0.71", optional = true }
serde = { workspace = true }
chrono = { workspace = true }
uuid = { workspace = true, features = ["v4", "wasm-bindgen", "js", "serde"] }
graphql_client = { version = "0.13.0", optional = true, features = ["reqwest"] }
reqwest = { version = "0.11.18", optional = true }
[features]
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",
"dep:axum",
"dep:tower",
"dep:tower-http",
"dep:tokio",
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:leptos_axum",
"dep:tracing-subscriber",
"dep:tracing",
"dep:graphql_client",
"dep:reqwest",
"dep:anyhow",
]
[package.metadata.leptos]
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
output-name = "leptos_start"
output-name = "como_web"
# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup.
site-root = "target/site"
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written