Commit Graph

1705 Commits

Author SHA1 Message Date
J Henry Waugh
b74923a63c Unit tests for property getters and setters 2020-09-12 22:46:45 -05:00
J Henry Waugh
43969a7bee Forbid $ in renames 2020-09-12 22:46:45 -05:00
J Henry Waugh
6e701bfe83 Catch getter, setter, indexer errors 2020-09-12 22:46:45 -05:00
Stephen Chung
b311688fee Fix test. 2020-09-11 22:56:19 +08:00
Stephen Chung
36fe02558e Fix tests output. 2020-09-11 22:45:15 +08:00
Stephen Chung
6c69a40083 Allow scripted functions in packages. 2020-09-11 22:32:59 +08:00
Stephen Chung
a75aba8a85 Rename calc_fn_spec to calc_fn_hash. 2020-09-11 22:24:44 +08:00
Stephen Chung
d1ab9a2848 Fix bug on unary function hashes. 2020-09-11 22:09:09 +08:00
Stephen Chung
c7de72aba2 Clarify private module functions/variables. 2020-09-10 17:42:53 +08:00
Stephen Chung
fed65676a2 cargo fmt. 2020-09-10 17:42:34 +08:00
Stephen Chung
939f4413de Add multiple registrations of plugin function names. 2020-09-10 12:10:49 +08:00
Stephen Chung
ecce9c5477
Merge pull request #230 from schungx/master
Refine plugins.
2020-09-09 22:28:10 +08:00
Stephen Chung
d527ef7dbf Remove SC from codegen authors, add jhwgh1968 to Rhai authors. 2020-09-09 09:12:28 +08:00
Stephen Chung
d127698da9
Merge pull request #54 from jhwgh1968/plugins
Add workspace, for both publishing and codegen tests
2020-09-09 09:08:23 +08:00
J Henry Waugh
e6e1362a61 Do not run all workspace tests 2020-09-08 16:24:08 -05:00
J Henry Waugh
60ecb87c5d Put no_std_test into its own empty workspace 2020-09-08 16:17:58 -05:00
J Henry Waugh
229475caef Add tests fixed by workspace 2020-09-08 16:04:04 -05:00
J Henry Waugh
192979ebfd Crate workspace to include codegen 2020-09-08 16:03:38 -05:00
Stephen Chung
d41fde9c31 Use multiple renames to simplify plugins. 2020-09-08 18:01:34 +08:00
Stephen Chung
38ccb9e8f6
Merge pull request #52 from jhwgh1968/rhai_fn_multi_names
Support multiple names in rhai_fn
2020-09-08 08:57:59 +08:00
Stephen Chung
bd30edb877 Fix test output. 2020-09-07 17:08:47 -05:00
Stephen Chung
397acb4fce Add tests for multiple renames. 2020-09-07 17:08:41 -05:00
Stephen Chung
dbfd3df810 Support multiple names in rhai_fn. 2020-09-07 17:08:37 -05:00
Stephen Chung
92ce5481ad Merge branch 'plugins' of https://github.com/schungx/rhai into plugins 2020-09-06 15:25:20 +08:00
J Henry Waugh
384152004e Split internal tests into their own files 2020-09-06 15:25:01 +08:00
J Henry Waugh
9882b97fca Fix trybuild tests for latest nightly 2020-09-06 15:25:01 +08:00
Stephen Chung
44b581c61c
Merge pull request #51 from jhwgh1968/plugins
Fix CI and reorganize tests
2020-09-06 10:39:10 +08:00
J Henry Waugh
2ee2ca52c9 Split internal tests into their own files 2020-09-05 14:10:48 -05:00
J Henry Waugh
900c54bc1f Fix trybuild tests for latest nightly 2020-09-05 12:30:12 -05:00
Stephen Chung
99b8228630 Use smallvec/union for nightly builds. 2020-09-05 17:55:35 +08:00
Stephen Chung
ae953315fe Refine plugins doc. 2020-09-04 15:42:31 +08:00
Stephen Chung
2737fe8aa3
Merge pull request #49 from jhwgh1968/export_prefix_fix
Fix for export_prefix attribute on module macros
2020-09-03 13:15:29 +08:00
J Henry Waugh
0b3fef6651 Add nested module export_prefix test 2020-09-02 20:31:22 -05:00
J Henry Waugh
5585405bdc Make export_prefix use fn name not export name 2020-09-02 20:10:52 -05:00
Stephen Chung
ce00ce77f0
Merge pull request #48 from jhwgh1968/export_visibility_attrs
Implement export_* attributes for macros
2020-09-02 16:05:34 +08:00
J Henry Waugh
3af49cec70 Implement export_* attributes for macros 2020-09-01 23:15:28 -05:00
Stephen Chung
6dac069c15
Merge pull request #47 from jhwgh1968/plugin_doc_updates
Book updates for Plugins
2020-09-01 14:26:32 +08:00
J Henry Waugh
c5b2debf4a Book updates for Plugins 2020-08-31 19:03:45 -05:00
Stephen Chung
91963d10dc
Merge pull request #229 from schungx/master
Plugins.
2020-08-31 12:30:55 +08:00
Stephen Chung
91b4f8a6bc Fix no-std build. 2020-08-31 12:09:52 +08:00
Stephen Chung
f4e4958973 Fix typos. 2020-08-31 12:03:30 +08:00
Stephen Chung
ee3781e86e Simplify error handling code. 2020-08-31 11:46:32 +08:00
Stephen Chung
ef9b90c3ef Add entry on plugins. 2020-08-31 11:23:11 +08:00
Stephen Chung
cd3270c44e
Merge pull request #46 from schungx/plugins_dev
Better formatting of plugin code blocks, add documentation.
2020-08-31 09:27:40 +08:00
Stephen Chung
32985c9480 Fix string package for no_std. 2020-08-30 23:18:47 +08:00
Stephen Chung
4d9aad816c Add writeup on plugins. 2020-08-30 23:13:47 +08:00
Stephen Chung
512951cceb Merge branch 'plugins_dev' of https://github.com/schungx/rhai into plugins_dev 2020-08-30 17:31:35 +08:00
Stephen Chung
75ca495199 Nicer formatting/less indentation of module plugin blocks. 2020-08-30 17:28:53 +08:00
Stephen Chung
b72a6355fd Fix docs on sign result. 2020-08-30 17:28:53 +08:00
Stephen Chung
9ba7a1245d Restructure book chapters. 2020-08-30 17:27:42 +08:00