You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getrandom = { version = "0.2.15", features = ["js"]}
20
+
leptos = { version = "0.7"{% if use_nightly %}, features = ["nightly"]{% endif %} }
21
+
leptos_axum = { version = "0.7", default-features = false, features = ["wasm"], optional = true }
22
+
leptos_meta = { version = "0.7" }
23
+
leptos_router = { version = "0.7"{% if use_nightly %}, features = ["nightly"]{% endif %} }
19
24
tower-service = "0.3"
20
-
console_error_panic_hook = { version = "0.1" }
21
-
console_log = { version = "1.0", optional = true }
22
-
gloo-net = { version = "0.6", features = ["http"] }
23
-
gloo-timers = { version = "0.3", features = ["futures"] }
24
-
leptos = "0.6"
25
-
leptos_axum = { version = "0.6", default-features = false, features = [
26
-
"wasm",
27
-
], optional = true }
28
-
leptos_meta = "0.6"
29
-
leptos_router = "0.6"
30
-
leptos_dom = "0.6"
31
-
log = "0.4"
32
-
once_cell = "1.19"
33
-
serde = { version = "1.0", features = ["derive"] }
34
-
serde_json = "1.0"
35
-
tower = { version = "0.5", optional = true }
36
-
wasm-bindgen = { version = "0.2.92", optional = true }
37
-
wasm-bindgen-futures = "0.4"
25
+
wasm-bindgen = "=0.2.100"
26
+
worker = { version = "0.5", features = ["http", "axum", "d1"], optional = true }
38
27
39
28
[features]
40
-
hydrate = [
41
-
"dep:console_log",
42
-
"leptos/hydrate",
43
-
"leptos_meta/hydrate",
44
-
"leptos_router/hydrate",
45
-
"leptos_dom/hydrate",
46
-
"dep:wasm-bindgen",
47
-
]
29
+
hydrate = ["leptos/hydrate"]
48
30
ssr = [
49
31
"dep:axum",
32
+
"dep:leptos_axum",
33
+
"dep:worker",
50
34
"leptos/ssr",
51
35
"leptos_meta/ssr",
52
36
"leptos_router/ssr",
53
-
"leptos_dom/ssr",
54
-
"dep:leptos_axum",
55
-
"dep:worker",
56
37
]
57
38
58
39
[package.metadata.leptos]
59
40
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
60
-
output-name = "leptos_worker"
61
-
# 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.
62
-
site-root = "public"
41
+
output-name = "{{project-name}}"
42
+
43
+
# 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.
44
+
site-root = "target/site"
45
+
63
46
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
64
47
# Defaults to pkg
65
48
site-pkg-dir = "pkg"
49
+
66
50
# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css
67
-
#style-file = "./style.css"
68
-
# [Optional] Files in the asset-dir will be copied to the site-root directory
51
+
style-file = "style/main.css"
52
+
53
+
# Assets source dir. All files found here will be copied and synchronized to site-root.
54
+
# The assets-dir cannot have a sub directory with the same name/path as site-pkg-dir.
55
+
#
56
+
# Optional. Env: LEPTOS_ASSETS_DIR.
69
57
assets-dir = "assets"
58
+
70
59
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
71
60
site-addr = "127.0.0.1:8787"
61
+
72
62
# The port to use for automatic reload monitoring
73
63
reload-port = 3001
64
+
74
65
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.
66
+
# [Windows] for non-WSL use "npx.cmd playwright test"
67
+
# This binary name can be checked in Powershell with Get-Command npx
75
68
end2end-cmd = "cargo make test-ui"
76
-
end2end-dir = "e2e"
69
+
end2end-dir = "end2end"
70
+
77
71
# The browserlist query used for optimizing the CSS.
78
72
browserquery = "defaults"
73
+
79
74
# Set by cargo-leptos watch when building with that tool. Controls whether autoreload JS will be included in the head
80
75
watch = false
76
+
81
77
# The environment Leptos will run in, usually either "DEV" or "PROD"
82
78
env = "DEV"
79
+
83
80
# The features to use when compiling the bin target
84
81
#
85
82
# Optional. Can be over-ridden with the command line parameter --bin-features
@@ -98,4 +95,4 @@ lib-features = ["hydrate"]
98
95
# If the --no-default-features flag should be used when compiling the lib target
0 commit comments