Commit Graph

29 Commits

Author SHA1 Message Date
Stephen Chung
809b813def Simplify codegen. 2020-12-24 21:28:40 +08:00
Stephen Chung
c919ee4e46 Fine tune hash map sizes. 2020-11-15 13:49:54 +08:00
Stephen Chung
e8d5f78f88 Simplify code. 2020-10-01 23:31:27 +08:00
Stephen Chung
92be487e80 Implement constants via calling the constant. 2020-09-17 20:27:45 -05:00
Stephen Chung
d57ce9c050 Remove warning about unused constants in modules. 2020-09-16 21:53:22 -05:00
Stephen Chung
6dc5a81d53 Add cast to type for constants to avoid mis-typing. 2020-09-16 21:50:49 -05:00
Stephen Chung
848bdf3f01 Add combine_with_exported_module. 2020-09-16 21:50:44 -05:00
J Henry Waugh
6e701bfe83 Catch getter, setter, indexer errors 2020-09-12 22:46:45 -05:00
J Henry Waugh
384152004e Split internal tests into their own files 2020-09-06 15:25:01 +08:00
J Henry Waugh
3af49cec70 Implement export_* attributes for macros 2020-09-01 23:15:28 -05:00
J Henry Waugh
62dc142c58 Avoid bypassing setter checks by making fn.params.skip private 2020-08-27 23:13:44 -05:00
J Henry Waugh
5498443517 Major refactor of attribute handling 2020-08-23 17:53:37 -05:00
J Henry Waugh
bb6a044182 Add test case for overloading rename 2020-08-23 17:49:50 -05:00
J Henry Waugh
7c273e0aac Add missing skip submodule test 2020-08-23 17:24:18 -05:00
J Henry Waugh
65009dd193 Block #[cfg] attributes on inner constants 2020-08-21 23:26:25 -05:00
J Henry Waugh
55870e7b37 Add #[cfg] support in submodules 2020-08-21 23:26:25 -05:00
J Henry Waugh
708c0f385e Block #[cfg] attributes on exported or inner functions 2020-08-21 23:26:25 -05:00
J Henry Waugh
7962c6dc52 codegen: add rhai_mod and submodule support 2020-08-20 22:21:41 -05:00
J Henry Waugh
c87da31328 codegen: prevent name duplication in Rust or Rhai 2020-08-19 23:12:43 -05: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
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
J Henry Waugh
b27ebb318d Rearrange imports to support no_std 2020-08-13 23:04:30 -05:00
J Henry Waugh
6d11fdcd18 codegen: replace downcast_clone with more efficient mem::take 2020-08-11 19:05:52 -05:00
J Henry Waugh
be315aebaf Fix breakage due to write_lock() 2020-08-06 18:36:19 -05:00
Stephen Chung
dd6b6cd49f Fix codegen and tests to new API changes. 2020-08-06 14:10:27 +08:00
J Henry Waugh
3136188801 Improve proc macro hygiene 2020-08-02 19:27:35 -05:00
Stephen Chung
73cda2d4f9 rustfmt. 2020-08-02 15:39:08 +08:00
J Henry Waugh
d01203cb5d New Procedural Macros Crate v0.1 2020-08-01 11:52:32 -05:00