#thread #value #wrapper #package-version #hello #return #emojicode-sys

nightly emojicode

Convenience wrappers for emojicode-sys

5 releases

Uses old Rust 2015

0.1.4 Mar 15, 2018
0.1.3 Mar 14, 2018
0.1.2 Mar 12, 2018
0.1.1 Mar 11, 2018
0.1.0 Mar 10, 2018

#15 in #package-version

Custom license

7KB
112 lines

Some small convenience things for emojicode-sys.

Example:

#[macro_use]
extern crate emojicode;

use emojicode::*;

package_version!(0, 1);

emoji_functions!(
    e_hello(thread) {
        thread.return_from_function_with_value(
            String::from("Hello from Rust!")
                .to_value()
                .unwrap()
        );
    }
);

prepare_class!(
    (class, name) {
        println!("{}", name);
    }
);

Dependencies

~0–2MB
~38K SLoC