Skip to content

Commit 8542e78

Browse files
committed
simplify www setup
1 parent f566c2e commit 8542e78

13 files changed

Lines changed: 27 additions & 374 deletions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/target
22
/www/pkg/
3-
/bin
3+
/bin
4+
/www/node_modules
5+
/www/dist

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ softbuffer-wayland=["softbuffer/wayland"]
5050
rug=["kalc-lib/rug","kalc-lib"]
5151
fastnum=["kalc-lib/fastnum","kalc-lib"]
5252
kalc-lib=["dep:kalc-lib"]
53-
wasm=["dep:wasm-bindgen", "dep:console_error_panic_hook", "dep:web-sys"]
53+
wasm=["dep:wasm-bindgen", "dep:web-sys"]
5454

5555
[dependencies]
5656
egui={version="0.31.1",default-features = false,optional=true}
@@ -64,6 +64,6 @@ serde = {version = "1.0.219", features = ["derive"], optional = true}
6464
rupl={version = "0.1.2",path="../rupl",default-features = false}
6565
kalc-lib={version="1.5.1",default-features=false,features = ["fastrand"],path="../kalc-lib",optional = true}
6666
wasm-bindgen = {version="0.2.100",optional = true}
67-
console_error_panic_hook = { version = "0.1.7", optional = true }
67+
#console_error_panic_hook = { version = "0.1.7", optional = true }
6868
web-sys = { version = "0.3.77", features = ["CanvasRenderingContext2d"], optional = true }
6969
tiny-skia = {version = "0.11.4", default-features = false, optional = true}

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ use std::io::Write;
2222
use wasm_bindgen::prelude::wasm_bindgen;
2323
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))]
2424
pub fn main() {
25-
#[cfg(feature = "wasm")]
26-
console_error_panic_hook::set_once();
27-
#[cfg(feature = "wasm")]
28-
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
25+
//#[cfg(feature = "wasm")]
26+
//console_error_panic_hook::set_once();
27+
//#[cfg(feature = "wasm")]
28+
//std::panic::set_hook(Box::new(console_error_panic_hook::hook));
2929
let mut args = args().collect::<Vec<String>>();
3030
if !args.is_empty() {
3131
args.remove(0);

www/.bin/create-wasm-app.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

www/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

www/.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

www/LICENSE-APACHE

Lines changed: 0 additions & 201 deletions
This file was deleted.

www/LICENSE-MIT

Lines changed: 0 additions & 25 deletions
This file was deleted.

www/README.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)