|
| 1 | +[package] |
| 2 | +name = "sss-web-app" |
| 3 | +version.workspace = true |
| 4 | +edition.workspace = true |
| 5 | +authors.workspace = true |
| 6 | +repository.workspace = true |
| 7 | +license.workspace = true |
| 8 | + |
| 9 | +[lib] |
| 10 | +crate-type = ["cdylib", "rlib"] |
| 11 | + |
| 12 | + |
| 13 | +[dependencies] |
| 14 | +leptos = {git="https://github.com/sjud/leptos" } |
| 15 | +leptos_meta = {git="https://github.com/sjud/leptos" } |
| 16 | +leptos_router = { git="https://github.com/sjud/leptos" } |
| 17 | +leptos_axum = { git="https://github.com/sjud/leptos", default-features = false, optional = true } |
| 18 | +console_log = "1" |
| 19 | +log = "0.4" |
| 20 | +base64_light.workspace = true |
| 21 | +sss_core = { path = "../sss-lib/sss-core" } |
| 22 | +sss_std = { path = "../sss-lib/sss-std" } |
| 23 | +render = { path = "../sss-lib/render" } |
| 24 | +toml.workspace = true |
| 25 | +wasm-bindgen-futures = { version = "0.4" } |
| 26 | +serde = { workspace = true, features = ["derive"] } |
| 27 | +getrandom = { version = "0.2", features = ["js"] } |
| 28 | +# ssr |
| 29 | +console_error_panic_hook = { version = "0.1"} |
| 30 | +axum = { version = "0.7", default-features = false, optional = true } |
| 31 | +tokio = { workspace = true, features = ["rt-multi-thread"], optional = true } |
| 32 | +wasm-bindgen = { version = "0.2" } |
| 33 | +web-sys = { version = "0.3", features = [ |
| 34 | +"Document", "Window", "Navigator", "Clipboard", "Request", "Response","RequestInit", |
| 35 | +] } |
| 36 | +axum-js-fetch = {git = "https://github.com/seanaye/axum-js-fetch", optional = true} |
| 37 | +tower = {version = "0.5", optional = true} |
| 38 | +http = { version = "1.0", optional = true } |
| 39 | + |
| 40 | +[features] |
| 41 | +csr = [ |
| 42 | + "leptos/csr", |
| 43 | +] |
| 44 | + |
| 45 | +hydrate = [ |
| 46 | + "leptos/hydrate", |
| 47 | +] |
| 48 | +ssr = [ |
| 49 | + "dep:axum", |
| 50 | + "dep:tokio", |
| 51 | + "dep:http", |
| 52 | + "dep:axum-js-fetch", |
| 53 | + "dep:tower", |
| 54 | + "leptos/ssr", |
| 55 | + "leptos_axum/wasm", |
| 56 | + "leptos_meta/ssr", |
| 57 | + "leptos_router/ssr", |
| 58 | +] |
| 59 | + |
| 60 | + |
| 61 | +[dev-dependencies] |
| 62 | +sss-web-app = {path = ".", features = [ "hydrate", "ssr" ] } |
| 63 | +leptos_axum = { git="https://github.com/sjud/leptos", features = ["wasm"], default-features = false } |
| 64 | + |
| 65 | +[package.metadata.trunk] |
| 66 | +target = "index.html" |
| 67 | +release = false |
| 68 | +dist = "dist" |
| 69 | +public_url = "/" |
| 70 | +filehash = true |
| 71 | +inject_scripts = true |
| 72 | + |
| 73 | +[package.metadata.trunk.serve] |
| 74 | +addresses = ["127.0.0.1"] |
| 75 | +port = 3000 |
| 76 | +open = false |
| 77 | +[package.metadata.trunk.tools] |
| 78 | +tailwindcss = "4.0.0" |
| 79 | + |
| 80 | +[package.metadata.leptos] |
| 81 | +output-name = "sss-web-app" |
| 82 | +site-root = "target/site" |
| 83 | +site-pkg-dir = "pkg" |
| 84 | +style-file = "style/main.scss" |
| 85 | +assets-dir = "public" |
| 86 | +site-addr = "127.0.0.1:3000" |
| 87 | +reload-port = 3001 |
| 88 | +browserquery = "defaults" |
| 89 | +# DEV || PROD |
| 90 | +env = "DEV" |
| 91 | +bin-features = ["ssr"] |
| 92 | +bin-default-features = false |
| 93 | +lib-features = ["hydrate"] |
| 94 | +lib-default-features = false |
| 95 | +lib-profile-release = "wasm-release" |
| 96 | + |
| 97 | + |
| 98 | +[package.metadata.cargo-all-features] |
| 99 | +skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]] |
| 100 | +denylist = ["axum", "tower", "http", "leptos_axum", "hyper"] |
0 commit comments