Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Dec 1, 2023
1 parent 063ee29 commit ee874f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/compile/front.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async fn bindgen(proj: &Project) -> Result<Outcome<Product>> {
br_writer.write_all(&data)?;

let zstd_data = zstd::encode_all(&*data, 21)?;
let mut zstd_file = File::create(format!("{}.br", wasm_file.dest.as_str()))?;
let mut zstd_file = File::create(format!("{}.zst", wasm_file.dest.as_str()))?;
zstd_file.write_all(&zstd_data)?;
}

Expand Down
2 changes: 2 additions & 0 deletions examples/hackernews-salvo/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target-dir = "target" # path of where to place all generated artifacts
2 changes: 1 addition & 1 deletion examples/hackernews-salvo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde = { version = "^1.0", features = ["derive"] }
serde-aux = { version = "4", default-features = false }
serde_json = { version = "1", optional = true }
web-sys = { version = "0.3", features = ["Storage"] }
salvo = { version = "0.58", default-features = true, optional = true, features = ["serve-static"] }
salvo = { version = "0.59", default-features = true, optional = true, features = ["serve-static"] }
tokio = { version = "1", optional = true }
tracing = "0.1"
tracing-subscriber = { version = "0.3", optional = true }
Expand Down

0 comments on commit ee874f4

Please sign in to comment.