Commit Graph

2006 Commits

Author SHA1 Message Date
J Henry Waugh
431c80b46b Run CI on every push to plugins branch 2020-08-14 16:27:47 -05:00
Stephen Chung
f9807a3c1e Remove content on avoiding &mut ImmutableString which is invalid. 2020-08-15 00:10:14 +08:00
Stephen Chung
489b1ca00e Add Module::combine. 2020-08-15 00:08:00 +08:00
Stephen Chung
209d1a174c Yet more packages into plugins. 2020-08-15 00:04:10 +08:00
Stephen Chung
ceb1a26733 Move more packages to plugins. 2020-08-14 18:58:34 +08:00
Stephen Chung
95208e46ba
Merge pull request #216 from PsychoLlama/master
Remove extra quote in strings example
2020-08-14 16:43:00 +08:00
Jesse Gibson
9c07f3dbb0 Remove extra quote in strings example
More like triple quote amirite
2020-08-14 00:10:16 -06:00
Stephen Chung
c0dc47c9db Convert some packages into plugins. 2020-08-14 13:43:26 +08:00
Stephen Chung
2495b367e5 Merge branch 'plugins' of https://github.com/schungx/rhai into plugins 2020-08-14 13:40:33 +08:00
Stephen Chung
26a622b201
Merge pull request #33 from jhwgh1968/fix
Fix lots of import and resolution issues
2020-08-14 13:39:15 +08:00
J Henry Waugh
b27ebb318d Rearrange imports to support no_std 2020-08-13 23:04:30 -05:00
Stephen Chung
d2ea981fac Merge branch 'master' into plugins 2020-08-14 11:45:52 +08:00
J Henry Waugh
e77dc4cc34 Fix missing import in test_functions 2020-08-13 22:07:37 -05:00
Stephen Chung
b956639c2a Move some math functions into plugins. 2020-08-13 14:57:46 +08:00
Stephen Chung
631c4be064 rhai::FnAccess -> FnAccess to enable use in internal code. 2020-08-13 14:57:23 +08:00
Stephen Chung
bb334eecc7
Merge pull request #32 from jhwgh1968/plugins
Split function register macro, add Engine register support
2020-08-13 13:07:02 +08:00
J Henry Waugh
fdcaa90cd9 Clean up plugin module for no_module macro support 2020-08-12 23:57:57 -05:00
J Henry Waugh
0fb61eab00 Fix plugin test 2020-08-12 23:47:57 -05:00
J Henry Waugh
a25f6b35a1 Add new macro_register test which runs in no_std 2020-08-12 23:46:12 -05:00
J Henry Waugh
1a2ef7b531 Fix macro_unroll test 2020-08-12 23:40:50 -05:00
J Henry Waugh
28572544d8 Split register export macro, add Engine support 2020-08-12 23:36:35 -05:00
Stephen Chung
36865593ec
Merge pull request #31 from jhwgh1968/plugins
codegen: replace downcast_clone with more efficient mem::take
2020-08-12 08:49:07 +08:00
J Henry Waugh
59e3ca0e79 Remove Dynamic::downcast_clone 2020-08-11 19:09:49 -05:00
J Henry Waugh
6d11fdcd18 codegen: replace downcast_clone with more efficient mem::take 2020-08-11 19:05:52 -05:00
Stephen Chung
a5b4d61dff Fix docs. 2020-08-11 13:46:09 +08:00
Stephen Chung
2d4b85f67d Add cusotm syntax. 2020-08-10 12:03:22 +08:00
Stephen Chung
7506aee5c6
Merge pull request #29 from jhwgh1968/macro_unroll
Create functional test for generated bulk exports
2020-08-10 12:02:58 +08:00
Stephen Chung
f98cea4f20
Merge pull request #30 from jhwgh1968/plugins
export_fn: add return_raw attribute
2020-08-10 09:27:12 +08:00
J Henry Waugh
07a4541949 export_fn: add return_raw attribute 2020-08-09 14:19:47 -05:00
J Henry Waugh
ce8fbe40c4 Fold into fully generic form 2020-08-09 12:13:02 -05:00
J Henry Waugh
3fa252e732 Fold generate_add once more 2020-08-09 12:04:50 -05:00
J Henry Waugh
a45b1d406f Add only_i32 feature support 2020-08-09 11:47:11 -05:00
J Henry Waugh
dc7b36fd11 Fix for stable 2020-08-09 11:42:37 -05:00
J Henry Waugh
a24d11324c Create functional test for generated bulk operations 2020-08-09 11:21:29 -05:00
Stephen Chung
564d3bc339 Add more closure tests. 2020-08-09 22:12:50 +08:00
Stephen Chung
dbf5cd13c8
Merge pull request #28 from Eliah-Lakhin/closure-bugs
False-positive capturing prevention bug fix
2020-08-09 22:05:40 +08:00
Ilya Lakhin
d84ef1a0d1 CLosures test fix 2020-08-09 18:55:01 +07:00
Ilya Lakhin
39ee74112c no-closure feature issue fixed 2020-08-09 18:42:33 +07:00
Ilya Lakhin
20cff87e14 False-positive capturing prevention bug fix 2020-08-09 18:35:29 +07:00
Stephen Chung
c5937f990e
Merge pull request #26 from jhwgh1968/plugins
export_fn: allow duplicate Rust fn names before rename
2020-08-09 10:32:54 +08:00
J Henry Waugh
1df5d05239 export_fn: allow duplicate Rust names 2020-08-08 10:34:00 -05:00
Stephen Chung
126dc58ea5
Merge pull request #213 from schungx/master
Fix closure bug.
2020-08-08 23:22:56 +08:00
Stephen Chung
0e344ff3eb Merge branch 'master' into plugins 2020-08-08 23:01:48 +08:00
Stephen Chung
da3cce58d3 Minor refactor. 2020-08-08 22:59:05 +08:00
Stephen Chung
e66873bb83
Merge pull request #27 from Eliah-Lakhin/capturing-bug
Function names capturing as external variables bug
2020-08-08 22:52:20 +08:00
Ilya Lakhin
9c6584240f Unit test for registered functions in anon function context 2020-08-08 19:09:18 +07:00
Ilya Lakhin
45d021c7ef Function names capturing as external variables bug 2020-08-08 17:55:58 +07:00
Stephen Chung
f68c5a699d Fix sync feature. 2020-08-08 17:04:21 +08:00
Stephen Chung
fbad20eb0d Merge branch 'master' into plugins 2020-08-08 16:26:52 +08:00
Stephen Chung
5a1a141ce3 Improve shared value treatment. 2020-08-08 16:24:10 +08:00