mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 10:44:09 +02:00
remove the need to list all exported functions when declaring the module
This commit is contained in:
parent
a0af05508f
commit
34fb187384
7 changed files with 22 additions and 64 deletions
|
|
@ -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")]
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue