Skip to content

Commit

Permalink
fix: wasm32 lib build by excluding repl and file_executor
Browse files Browse the repository at this point in the history
  • Loading branch information
ali77gh committed Jun 6, 2024
1 parent a13e746 commit 2c66ecd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/runners/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// evel should be in bin and lib (file executor is using eval BTW)
pub mod eval;

// file executor should not include in wasm (we can't read/write files on browsers)
#[cfg(not(target_family = "wasm"))]
pub mod file_executor;

// repl should not include in wasm (rustyline can not compile to wasm)
#[cfg(not(target_family = "wasm"))]
pub mod repl;

0 comments on commit 2c66ecd

Please sign in to comment.