remove the need to list all exported functions when declaring the module

This commit is contained in:
Robin Appelman 2019-04-05 11:02:14 +02:00
commit 34fb187384
7 changed files with 22 additions and 64 deletions

View file

@ -1,5 +1,5 @@
use ivory::{ivory_export, ivory_module};
use ivory::externs::printf;
use ivory::{ivory_export, ivory_module};
#[ivory_export]
fn hello_other(other: String) {
@ -14,6 +14,5 @@ fn hello_world() {
ivory_module!({
name: "demo",
version: "0.0.1",
functions: &[hello_world, hello_other],
info: &[("demo extension", "enabled")]
});
});