Clean up plugin module for no_module macro support
This commit is contained in:
parent
0fb61eab00
commit
fdcaa90cd9
@ -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")]
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user