Refactor wasm feature gates.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#![cfg(not(any(feature = "no_index", feature = "no_module")))]
|
||||
#![cfg(not(feature = "no_index"))]
|
||||
#![cfg(not(feature = "no_module"))]
|
||||
|
||||
use rhai::plugin::*;
|
||||
use rhai::{Engine, EvalAltResult, INT};
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#![cfg(not(any(feature = "no_index", feature = "no_module")))]
|
||||
#![cfg(not(feature = "no_index"))]
|
||||
#![cfg(not(feature = "no_module"))]
|
||||
|
||||
use rhai::plugin::*;
|
||||
use rhai::{Engine, EvalAltResult, Module, INT};
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#![cfg(not(feature = "no_std"))]
|
||||
#![cfg(not(target_arch = "wasm32"))]
|
||||
#![cfg(not(target_arch = "wasm64"))]
|
||||
|
||||
use rhai::{Engine, EvalAltResult};
|
||||
|
||||
|
Reference in New Issue
Block a user