reorganize module
This commit is contained in:
24
_archive/rhai_engine/rhaibook/rust/modules/create.md
Normal file
24
_archive/rhai_engine/rhaibook/rust/modules/create.md
Normal file
@@ -0,0 +1,24 @@
|
||||
Create a Module in Rust
|
||||
=======================
|
||||
|
||||
{{#include ../../links.md}}
|
||||
|
||||
|
||||
The Easy Way – Plugin
|
||||
---------------------------
|
||||
|
||||
By far the simplest way to create a [module] is via a [plugin module]
|
||||
which converts a normal Rust module into a Rhai [module] via procedural macros.
|
||||
|
||||
|
||||
The Hard Way – `Module` API
|
||||
---------------------------------
|
||||
|
||||
Manually creating a [module] is possible via the [`Module`] public API, which is volatile and may
|
||||
change from time to time.
|
||||
|
||||
~~~admonish info.small "`Module` public API"
|
||||
|
||||
For the complete [`Module`] public API, refer to the
|
||||
[documentation](https://docs.rs/rhai/{{version}}/rhai/struct.Module.html) online.
|
||||
~~~
|
Reference in New Issue
Block a user