Skip to content

Commit

Permalink
Make it possible to include metaview applications statically by compi…
Browse files Browse the repository at this point in the history
…ling to Rust rather than WASM
  • Loading branch information
Jakub Hlusička committed Apr 4, 2020
1 parent fee48d8 commit 6c70c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ['cdylib']
crate-type = ['cdylib', 'lib']

[dependencies]
ammolite-math = { path = "../ammolite/ammolite-math" }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use regex::Regex;
use lazy_static::lazy_static;
use ammolite_math::*;
use wasm_bindgen::prelude::*;
use mlib::*;
use ::mlib::*;

#[derive(Default)]
pub struct SyncIO {
Expand Down Expand Up @@ -489,7 +489,7 @@ impl Mapp for ExampleMapp {
}

fn receive_event(&mut self, event: Event) {
dbg!(event);
// dbg!(event);
}

fn flush_io(&mut self) -> IO {
Expand Down

0 comments on commit 6c70c92

Please sign in to comment.