Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/counter_isomorphic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ once_cell = "1.19"
gloo-net = { version = "0.6.0" }
wasm-bindgen = "0.2.93"
serde = { version = "1.0", features = ["derive"] }
simple_logger = "5.0"
tracing = { version = "0.1.40", optional = true }
send_wrapper = "0.6.0"

Expand Down
4 changes: 4 additions & 0 deletions examples/hackernews/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "hackernews_bin"
path = "src/main.rs"

[profile.release]
codegen-units = 1
opt-level = "z"
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link data-trunk rel="rust" data-wasm-opt="z" data-cargo-features="csr"/>
<link data-trunk rel="rust" data-wasm-opt="z" data-cargo-features="csr" data-bin="hackernews_bin"/>
<link data-trunk rel="css" href="./style.css"/>
</head>
<body></body>
Expand Down
6 changes: 6 additions & 0 deletions examples/hackernews_axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "hackernews_axum_bin"
path = "src/main.rs"

[profile.release]
codegen-units = 1
lto = true
Expand All @@ -28,6 +32,8 @@ http = { version = "1.1", optional = true }
web-sys = { version = "0.3.70", features = ["AbortController", "AbortSignal"] }
wasm-bindgen = "0.2.93"
send_wrapper = { version = "0.6.0", features = ["futures"] }
console_log = { version = "1", optional = true }
log = { version = "0.4", optional = true }

[features]
default = ["csr"]
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews_axum/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link data-trunk rel="rust" data-wasm-opt="z"/>
<link data-trunk rel="rust" data-wasm-opt="z" data-bin="hackernews_axum_bin"/>
<link data-trunk rel="css" href="/style.css"/>
</head>
<body></body>
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews_axum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async fn main() {
#[cfg(not(feature = "ssr"))]
pub fn main() {
use hackernews_axum::*;
use leptos::prelude::*;

_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
mount_to_body(App);
}
Loading