Skip to content

Commit 6c70c92

Browse files
author
Jakub Hlusička
committed
Make it possible to include metaview applications statically by compiling to Rust rather than WASM
1 parent fee48d8 commit 6c70c92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[lib]
10-
crate-type = ['cdylib']
10+
crate-type = ['cdylib', 'lib']
1111

1212
[dependencies]
1313
ammolite-math = { path = "../ammolite/ammolite-math" }

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use regex::Regex;
66
use lazy_static::lazy_static;
77
use ammolite_math::*;
88
use wasm_bindgen::prelude::*;
9-
use mlib::*;
9+
use ::mlib::*;
1010

1111
#[derive(Default)]
1212
pub struct SyncIO {
@@ -489,7 +489,7 @@ impl Mapp for ExampleMapp {
489489
}
490490

491491
fn receive_event(&mut self, event: Event) {
492-
dbg!(event);
492+
// dbg!(event);
493493
}
494494

495495
fn flush_io(&mut self) -> IO {

0 commit comments

Comments
 (0)