Clean up plugin module for no_module macro support

This commit is contained in:
J Henry Waugh 2020-08-12 23:57:51 -05:00
parent 0fb61eab00
commit fdcaa90cd9
2 changed files with 3 additions and 3 deletions

View File

@ -70,10 +70,7 @@ mod module;
mod optimize;
pub mod packages;
mod parser;
#[cfg(not(feature = "no_module"))]
pub mod plugin;
#[cfg(feature = "no_module")]
mod plugin;
mod result;
mod scope;
#[cfg(feature = "serde")]

View File

@ -14,6 +14,9 @@ pub use crate::{
RegisterResultFn,
};
#[cfg(features = "no_module")]
pub use rhai_codegen::{export_fn, register_exported_fn};
#[cfg(not(features = "no_module"))]
pub use rhai_codegen::*;
#[cfg(features = "sync")]