Skip to content

Rust bindings to the Wren scripting language API.

License

Notifications You must be signed in to change notification settings

lasagnaphil/wren-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wren-rust Crates.io Documentation

Rust bindings to the Wren scripting language API.

Crate documentation is somewhat lacking at the moment. For complete documentation on each type and function, refer to wren.h in the official Wren repository.

Wren is still under heavy development. I'll do my best to keep these bindings up-to-date as new features are added. If you notice a missing feature, feel free to create an issue or pull request.

Safety

Wren doesn't do any kind of validation outside of a few assertions in debug builds. This means it's very easy to get Undefined Behavior in release builds if you're not careful (especially when processing arbitrary scripts).

Most functions in this crate include additional safety features to help avoid these problems. In particular:

  1. Functions that retrieve slot values will perform type checking and return an Option.
  2. wrenEnsureSlots is called automatically when setting slot values.
  3. Most functions validate their parameters before calling Wren.

About

Rust bindings to the Wren scripting language API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages