wren

Crates.iowren
lib.rswren
version0.1.12
sourcesrc
created_at2015-01-06 13:57:15.159405
updated_at2017-06-30 21:08:00.125779
descriptionBindings to the Wren scripting language API
homepagehttps://github.com/calviken/wren-rust
repositoryhttps://github.com/calviken/wren-rust
max_upload_size
id725
size36,225
StarkNet (github:software-mansion-labs:starknet)

documentation

https://docs.rs/wren

README

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.
Commit count: 0

cargo fmt