Skip to content

Commit

Permalink
fix: getrandom needs js feature (used when nonce feature is act…
Browse files Browse the repository at this point in the history
…ive) (closes #3409) (#3410)
  • Loading branch information
gbj authored Dec 26, 2024
1 parent b91429d commit 1c30a4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions leptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ serde_qs = "0.13.0"
slotmap = "1.0"
futures = "0.3.31"
send_wrapper = "0.6.0"
getrandom = { version = "0.2", features = ["js"], optional = true }

[features]
hydration = [
Expand All @@ -58,12 +59,13 @@ hydration = [
"hydration_context/browser",
"leptos_dom/hydration"
]
csr = ["leptos_macro/csr", "reactive_graph/effects"]
csr = ["leptos_macro/csr", "reactive_graph/effects", "dep:getrandom"]
hydrate = [
"leptos_macro/hydrate",
"hydration",
"tachys/hydrate",
"reactive_graph/effects",
"dep:getrandom"
]
default-tls = ["server_fn/default-tls"]
rustls = ["server_fn/rustls"]
Expand Down Expand Up @@ -123,4 +125,4 @@ skip_feature_sets = [
rustdoc-args = ["--generate-link-to-definition"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(leptos_debuginfo)'] }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(leptos_debuginfo)'] }

0 comments on commit 1c30a4c

Please sign in to comment.