From 8f7a588ac349b0a20862ebb612337630ef3183c1 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 30 Dec 2020 22:37:22 +0800 Subject: [PATCH] Fix no_std. --- no_std/no_std_test/Cargo.toml | 2 +- src/engine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/no_std/no_std_test/Cargo.toml b/no_std/no_std_test/Cargo.toml index cd151bad..1db56f57 100644 --- a/no_std/no_std_test/Cargo.toml +++ b/no_std/no_std_test/Cargo.toml @@ -12,7 +12,7 @@ homepage = "https://github.com/jonathandturner/rhai/tree/no_std/no_std_test" repository = "https://github.com/jonathandturner/rhai" [dependencies] -rhai = { path = "../../", features = [ "no_std", "unchecked", "only_i32", "f32_float", "no_module" ], default_features = false } +rhai = { path = "../../", features = [ "no_std" ], default_features = false } wee_alloc = { version = "0.4.5", default_features = false } [profile.dev] diff --git a/src/engine.rs b/src/engine.rs index 1ae2d077..073b4daf 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -789,7 +789,7 @@ impl Engine { module_resolver: Box::new(crate::module::resolvers::FileModuleResolver::new()), #[cfg(not(feature = "no_module"))] #[cfg(any(feature = "no_std", target_arch = "wasm32",))] - module_resolver: None, + module_resolver: Box::new(crate::module::resolvers::DummyModuleResolver::new()), type_names: Default::default(), disabled_symbols: Default::default(),