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

nightly emojicode

为 emojicode-sys 提供便利包装

5 个版本

使用旧的 Rust 2015

0.1.4 2018 年 3 月 15 日
0.1.3 2018 年 3 月 14 日
0.1.2 2018 年 3 月 12 日
0.1.1 2018 年 3 月 11 日
0.1.0 2018 年 3 月 10 日

#15 in #package-version

自定义许可

7KB
112 代码行

emojicode-sys 提供的一些小型便利功能。

示例

#[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);
    }
);

依赖项

~0–2MB
~38K SLoC