Embed RHAI as a scripting language for Opencascade-rs
It's lightweight
It would allow for quick reloading
It's easy to integrate
It would skip the need for wasm for now
https://rhai.rs/book/
Other options would be Dyon and Gluon, but rhai is simpler, and easier to integrate. Would be possible to write some tests in rhai to script checking things.
Thanks for the suggestion. I took a look at Rhai but I'm not sure I'm sold on it for this project.
I would like to keep the modeling code in Rust as much as possible, because of the excellent tooling and the ergonomics that are provided by things like iterators and enums.
I'm also not in a rush to get it implemented as quickly as possible. The WASM story is getting better so I'm still optimistic on that path. If you have a need for integrating the functionality of this crate with a scripting language, take a look at DSLCAD which is built on top of this crate. I think there's room for several different language options but for me personally I'm going to keep things in Rust/WASM for the foreseeable future.