Skip to content

Commit

Permalink
Fix feature = 'rhai' (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter authored Nov 18, 2024
1 parent ffbfdeb commit 1aad8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions fidget/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pub enum Error {
DynasmError(#[from] dynasmrt::DynasmError),
}

#[cfg(feature = "rhai")]
impl From<Box<rhai::EvalAltResult>> for Error {
fn from(e: Box<rhai::EvalAltResult>) -> Self {
Error::RhaiEvalError(*e)
Expand Down
4 changes: 3 additions & 1 deletion fidget/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,10 @@ mod error;
pub use error::Error;
pub mod mesh;
pub mod render;
pub mod rhai;
pub mod solver;

#[cfg(feature = "rhai")]
pub mod rhai;

#[cfg(all(feature = "jit", not(target_arch = "wasm32")))]
pub mod jit;

0 comments on commit 1aad8a1

Please sign in to comment.