Commit Graph

3880 Commits

Author SHA1 Message Date
Stephen Chung
096a009418 Merge branch 'master' into plugins 2020-08-18 22:01:57 +08:00
Stephen Chung
d2593576d2 Add multiple instantiation. 2020-08-18 22:01:29 +08:00
Stephen Chung
e3f2157c6a Treat leading #{ in Engine::parse_json. 2020-08-18 22:01:13 +08:00
Stephen Chung
772e44aa3d Test getter. 2020-08-18 09:25:43 +08:00
Stephen Chung
767c39d974 Simplify rhai_fn attribute. 2020-08-17 23:35:04 +08:00
Stephen Chung
09b75ed1a3 Fix bug in strings package. 2020-08-17 10:00:50 +08:00
Stephen Chung
371c131395 Fix CI. 2020-08-17 09:44:28 +08:00
Stephen Chung
810514dd31 Add get/set/index_get/index_set parameters to rhai_fn. 2020-08-17 00:13:52 +08:00
Stephen Chung
e75d91e9bf Bring more functions into modules in plugins via rhai_fn(name) attribute. 2020-08-16 23:41:59 +08:00
Stephen Chung
31a05f8c48 Revise treatment of name parameter. 2020-08-16 18:24:42 +08:00
Stephen Chung
7eb75f6790
Merge pull request #35 from jhwgh1968/plugins
Convert args length check to debug assert
2020-08-16 11:29:03 +08:00
Stephen Chung
30679a938e
Merge pull request #36 from jhwgh1968/module_nesting
Add rhai_fn nested attribute and skip fn parameter
2020-08-16 11:27:36 +08:00
J Henry Waugh
bcf14025a7 Add rhai_fn nested attribute and skip fn parameter 2020-08-15 21:51:45 -05:00
J Henry Waugh
3ccc08b6e0 Convert args length check to debug assert 2020-08-15 14:25:19 -05:00
Stephen Chung
db9d8b81cf Move BasicStringsPackage to plugins. 2020-08-15 12:57:47 +08:00
Stephen Chung
73f35f9518 Merge branch 'master' into plugins 2020-08-15 12:10:07 +08:00
Stephen Chung
6b5741ecaa
Merge pull request #34 from jhwgh1968/plugins
Improve CI and Fix Warnings and Errors
2020-08-15 11:13:09 +08:00
J Henry Waugh
e4045256fe Fix type resolution issue with no_float enabled 2020-08-14 19:39:28 -05:00
J Henry Waugh
89de2fe6b2 Feature gate make_getter imports 2020-08-14 19:37:34 -05:00
J Henry Waugh
eabf9db263 Add missing num_traits import 2020-08-14 19:37:25 -05:00
J Henry Waugh
7fcbfcc7fd codegen: explicit import of format! macro 2020-08-14 19:37:25 -05:00
J Henry Waugh
1051a3f108 Add missing import of String and ToString 2020-08-14 19:37:25 -05:00
J Henry Waugh
e6a1b88b4c Fully feature gate array string functions 2020-08-14 19:37:25 -05:00
J Henry Waugh
4de02c2bd7 Remove extra import 2020-08-14 16:30:00 -05:00
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