working proto

This commit is contained in:
Romulus21
2024-09-28 00:52:51 +02:00
parent 9bc48ff63d
commit 72b65063be
20 changed files with 1706 additions and 1569 deletions

View File

@@ -7,44 +7,71 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]
[dependencies]
actix-files = { version = "0.6.6", optional = true }
actix-web = { version = "4.8", optional = true, features = ["macros"] }
anyhow = "1.0"
broadcaster = "1.0"
console_log = "1.0"
console_error_panic_hook = "0.1.7"
serde = { version = "1.0", features = ["derive"] }
futures = "0.3.30"
leptos = { git = "https://github.com/leptos-rs/leptos" }
leptos_router = { git = "https://github.com/leptos-rs/leptos" }
leptos_meta = { git = "https://github.com/leptos-rs/leptos" }
leptos_actix = { git = "https://github.com/leptos-rs/leptos", optional = true }
log = "0.4.22"
simple_logger = "5.0"
gloo = { git = "https://github.com/rustwasm/gloo" }
sqlx = { version = "0.8.0", features = [
axum = { version = "0.7", optional = true }
jsonwebtoken = { version = "9", optional = true }
tokio = { version = "1.39", features = ["rt-multi-thread"], optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", features = ["fs", "trace"], optional = true }
sqlx = { version = "0.8", features = [
"runtime-tokio-rustls",
"sqlite",
"mysql",
"chrono",
], optional = true }
mail-send = { version = "0.4.7", optional = true }
regex = { version = "1.10", optional = true }
serde = { version = "1.0", features = ["derive"] }
console_error_panic_hook = { version = "0.1", optional = true }
leptos = { version = "0.6.15" }
leptos_meta = { version = "0.6.15" }
leptos_axum = { version = "0.6.11", optional = true }
leptos_router = { version = "0.6.15" }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["fmt"] }
tracing-wasm = { version = "0.2", optional = true }
wasm-bindgen = "0.2.93"
tokio = { version = "1.39", features = ["rt", "time"], optional = true }
server_fn = { version = "0.6", features = ["cbor"] }
[features]
hydrate = ["leptos/hydrate"]
default = ["ssr", "hydrate"]
hydrate = [
"leptos/hydrate",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"dep:tracing-wasm",
"dep:console_error_panic_hook",
]
ssr = [
"dep:actix-files",
"dep:actix-web",
"dep:sqlx",
"leptos/ssr",
"leptos_actix",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:leptos_axum",
"dep:axum",
"dep:jsonwebtoken",
"dep:tokio",
"dep:tower",
"dep:tower-http",
"dep:sqlx",
"dep:regex",
"dep:mail-send",
]
[package.metadata.cargo-all-features]
denylist = ["actix-files", "actix-web", "leptos_actix", "sqlx"]
denylist = [
"axum",
"tower",
"tower-http",
"tokio",
"sqlx",
"leptos_axum",
"jsonwebtoken",
"regex",
"mail-send",
]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
[package.metadata.leptos]
@@ -60,7 +87,7 @@ style-file = "style/output.css"
# [Optional] Files in the asset-dir will be copied to the site-root directory
assets-dir = "public"
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
site-addr = "127.0.0.1:3000"
site-addr = "127.0.0.1:3002"
# The port to use for automatic reload monitoring
reload-port = 3001
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.