Stephen Chung
|
d0922adb5b
|
Deprecate RegisterFn and RegisterResultFn.
|
2021-03-15 11:36:30 +08:00 |
|
Stephen Chung
|
f3b5df09af
|
Fix codegen test results.
|
2021-02-26 20:14:23 +08:00 |
|
Stephen Chung
|
33fa57d95b
|
Refine codegen error positions.
|
2021-02-26 20:00:25 +08:00 |
|
Stephen Chung
|
37fe14ba16
|
Raise error if pure misuse.
|
2021-02-26 18:28:21 +08:00 |
|
Stephen Chung
|
823ecef1f1
|
#[rhai_fn(pure)] must have &mut parameter.
|
2021-02-26 17:19:40 +08:00 |
|
Stephen Chung
|
067983bb57
|
Fix codegen tests.
|
2021-02-21 15:44:01 +08:00 |
|
Stephen Chung
|
dd3b16403f
|
Code cleanup.
|
2021-02-21 14:11:19 +08:00 |
|
Stephen Chung
|
fc7697d504
|
Reflect visibility to generated modules.
|
2021-02-21 13:51:24 +08:00 |
|
Stephen Chung
|
ac1b7debe9
|
Add pure function attribute.
|
2021-02-19 23:13:41 +08:00 |
|
Stephen Chung
|
61d7356e08
|
Reduce spelling warnings in codegen.
|
2021-02-18 17:42:49 +08:00 |
|
Stephen Chung
|
8c47d61456
|
Refine documentation and comments.
|
2021-01-11 23:09:33 +08:00 |
|
Stephen Chung
|
dc4e52e795
|
Code enhancements.
|
2020-12-26 13:05:57 +08:00 |
|
Stephen Chung
|
809b813def
|
Simplify codegen.
|
2020-12-24 21:28:40 +08:00 |
|
Stephen Chung
|
9fd7e01197
|
Simplify code.
|
2020-12-23 23:29:19 +08:00 |
|
Stephen Chung
|
746a0b186f
|
Fix typo.
|
2020-12-23 15:15:47 +08:00 |
|
Stephen Chung
|
f55a56c6bc
|
Engine::register_global_module and Engine::register_static_module must be passed shared Module.
|
2020-12-23 10:08:43 +08:00 |
|
Stephen Chung
|
15fb03218c
|
Rename packages to global modules.
|
2020-12-22 23:45:14 +08:00 |
|
Stephen Chung
|
95b8dcc623
|
Update docs.
|
2020-12-16 14:57:28 +08:00 |
|
Stephen Chung
|
4c4a209609
|
Fix tests.
|
2020-11-30 21:16:59 +08:00 |
|
Stephen Chung
|
65a4ceb3be
|
Getters/setters and indexers in a plugin module are default global.
|
2020-11-30 00:52:21 +08:00 |
|
Stephen Chung
|
8d410dfc71
|
Add return type to function metadata.
|
2020-11-22 22:15:17 +08:00 |
|
Stephen Chung
|
07fe132e1a
|
Add gen_fn_siguatures API.
|
2020-11-22 17:21:34 +08:00 |
|
Stephen Chung
|
e5c9ca23b5
|
Build index when creating a module.
|
2020-11-21 22:18:32 +08:00 |
|
Stephen Chung
|
863c6b45a5
|
Fine tune codegen for global exports.
|
2020-11-17 14:29:28 +08:00 |
|
Stephen Chung
|
bd094d95b4
|
Fix codegen doc error.
|
2020-11-17 13:11:31 +08:00 |
|
Stephen Chung
|
a19865d811
|
Add global/internal parameters to rhai_fn.
|
2020-11-17 12:09:56 +08:00 |
|
Stephen Chung
|
c919ee4e46
|
Fine tune hash map sizes.
|
2020-11-15 13:49:54 +08:00 |
|
Stephen Chung
|
2c7c719cd5
|
Minor cleanup before release.
|
2020-10-22 12:26:44 +08:00 |
|
Stephen Chung
|
643ecc86a3
|
Minor refactor
|
2020-10-20 09:21:41 +08:00 |
|
Stephen Chung
|
46b92c9d1f
|
Allow NativeCallContext in function arguments.
|
2020-10-18 21:47:34 +08:00 |
|
Stephen Chung
|
8abb3c5203
|
Fix ui tests.
|
2020-10-15 14:06:54 +08:00 |
|
Stephen Chung
|
3c9250b0bf
|
Skip wrapping if function returns Dynamicc.
|
2020-10-15 13:28:22 +08:00 |
|
Stephen Chung
|
0ba219352d
|
Make doc tests runnable.
|
2020-10-07 22:51:43 +08:00 |
|
Stephen Chung
|
e8d5f78f88
|
Simplify code.
|
2020-10-01 23:31:27 +08:00 |
|
Stephen Chung
|
45a290f0ea
|
Change doc test from no_run to ignore.
|
2020-09-30 23:39:46 +08:00 |
|
Stephen Chung
|
2290c72de1
|
Fix tests.
|
2020-09-30 23:27:41 +08:00 |
|
Stephen Chung
|
a04ed02b54
|
Simplify macro system and update doc comments.
|
2020-09-30 22:55:40 +08:00 |
|
Stephen Chung
|
ea78fa2b27
|
Change SharedPluginFunction to Shared<FnPlugin>
|
2020-09-29 13:06:48 +08:00 |
|
Stephen Chung
|
0d7d54e21c
|
Simplify rename checking.
|
2020-09-26 12:08:15 +08:00 |
|
Stephen Chung
|
a2551a4650
|
Check rename collisions with special names.
|
2020-09-26 00:30:30 +08:00 |
|
Stephen Chung
|
6b13e266b9
|
Allow actual function name that is the same as a #[rhai_fn(name = "...")] rename.
|
2020-09-25 23:07:18 +08:00 |
|
Stephen Chung
|
5718f454c4
|
Merge pull request #60 from jhwgh1968/plugins
Remove redundant clones in codegen
|
2020-09-23 11:54:57 +08:00 |
|
J Henry Waugh
|
d65042088e
|
Remove redundant clones in codegen
|
2020-09-22 21:38:59 -05:00 |
|
Stephen Chung
|
235ad66d2b
|
Flatten types in functions.
|
2020-09-22 22:19:21 +08:00 |
|
Stephen Chung
|
5a37497a22
|
Flatten type groups and types in parentheses.
|
2020-09-22 21:29:44 +08:00 |
|
J Henry Waugh
|
c389014df7
|
Run cargo fmt for loose ends
|
2020-09-20 12:40:21 -05:00 |
|
Stephen Chung
|
3a98567139
|
Use take_string.
|
2020-09-20 14:29:10 +08:00 |
|
Stephen Chung
|
d8d3b52d64
|
Merge branch 'plugins_dev' of https://github.com/schungx/rhai into plugins_dev
|
2020-09-20 14:25:31 +08:00 |
|
Stephen Chung
|
2ba875a177
|
Use take_string for &str and String parameters.
|
2020-09-20 14:23:14 +08:00 |
|
Stephen Chung
|
bf245a798b
|
Enable String parameters.
|
2020-09-20 10:51:37 +08:00 |
|