reluxscript 0.1.4

Write AST transformations once. Compile to Babel, SWC, and beyond.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Simple utility module for testing imports
 */

#[derive(Default)]
pub struct Counter {
    pub value: i32,
}

pub fn increment(c: &mut Counter) {
    c.value = c.value + 1;
}

pub fn is_positive(n: i32) -> bool {
    n > 0
}