From 6850d227fc5f4839136c16f958863f256a6cb4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Hlusi=C4=8Dka?= Date: Sat, 4 Apr 2020 15:28:30 +0200 Subject: [PATCH] Make it possible to include metaview applications statically by compiling to Rust rather than WASM --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d1edfc..62889f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/src/lib.rs b/src/lib.rs index 96624d6..944f27a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {