rune 0.14.2

The Rune Language, an embeddable dynamic programming language for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
prelude!();

#[test]
fn test_async_block() {
    let out: i64 = rune! {
        async fn foo(value) {
            let output = value.await;
            output
        }

        let value = 42;
        foo(async { value }).await / foo(async { 2 }).await
    };
    assert_eq!(out, 21);
}