rune
rune copied to clipboard
An embeddable dynamic programming language for Rust.
I registered a macro `param` in crate `latte`: ```rust let mut latte_module = Module::with_crate("latte"); latte_module .macro_(&["param"], move |ctx, ts| context::param(ctx, ¶ms, ts)) .unwrap(); ``` Then I can access that macro...
``` error: Script execution error: missing instance function `0x15b77c7748430d90` for `Session` (at inst 3) ``` Would be nice to present the original identifier instead of its hash. I guess this...
My Rune script can call into the Rust host program and pass an `Any` object into it. I can do this: ``` fn do_sth_with_value(value: &Value) { match value { Value::Any(obj)...
I noticed the parser parses function attributes: ``` #[load(iterations = 1)] pub async fn load(db, i) { } ``` ``` 19 │ #[load(iterations = 1)] │ ^^^^^^^^^^^^^^^^^^^^^^^ unrecognized function attribute...
This is 2 different things which I have used many times in lua for more powerful dynamic object handling, simply the act of overloading what happens when you use either...
I wish to start by saying I think having a simple type system is all fair and good, however coming from using LUA as my scripting language within my rust...
We currently have "protocols" to implement various functions. These are really just free instance functions with custom name hashes that can't be named dynamically. This means that protocol impls currently...
The title is clear, I simply feel like it would be highly advantageous to have a section or even its own category regarding the default modules within the language, for...
I want to write some rune script to get os environment, but I dont know how to read environtment variables of OS. Is there a missing?
Hi all, I'm switching from rhai to rune because of the async support of rune. One feature I'm really missing are global changeable variables. In my case it's needed because...