Commit Graph

166 Commits

Author SHA1 Message Date
Mathieu Lala
9bdf3c290d
pull main & udpate lint 2023-02-05 17:59:02 +01:00
Mathieu Lala
9af5b1c78e
fix: default clippy lints 2022-12-30 18:07:39 +01:00
Stephen Chung
80ccd75514 Satisfy clippy. 2022-12-22 17:34:58 +08:00
Stephen Chung
4998eb6139 Add has_context to plugin functions. 2022-12-03 17:03:15 +08:00
Stephen Chung
fcc363af60 Add doc-comments on plugin modules to Module::doc field. 2022-12-01 23:29:42 +08:00
Stephen Chung
0c4935febb Merge multiple doc-comment lines into one. 2022-12-01 14:35:45 +08:00
Stephen Chung
4e27039521 Use bitflags. 2022-11-23 11:36:30 +08:00
Stephen Chung
4100645512 Move pure checking out of functions. 2022-10-27 20:42:10 +08:00
Stephen Chung
a9413dc570 Remove _result registration methods. 2022-08-22 22:16:26 +08:00
Stephen Chung
be448dfe4d Use identifiers in format! 2022-08-11 19:01:23 +08:00
Stephen Chung
2f948a784c Clean up more clippy. 2022-07-27 18:04:59 +08:00
Stephen Chung
39dee556c4 Clean up clippy. 2022-07-27 16:04:24 +08:00
Stephen Chung
e8d6e3f57d Add unreachable comments. 2022-07-23 21:00:58 +08:00
quake
299777f1c9 chore: clippy fix needless_borrow 2022-07-20 21:16:35 +09:00
Stephen Chung
b6528bd51d Reduce usage of as_ref and as_mut. 2022-07-05 16:26:38 +08:00
Stephen Chung
5dc8b20c8d Add #[doc(hidden)] to plugin-generated artifacts. 2022-06-05 18:07:20 +08:00
Stephen Chung
a268105354 Revert "Remove unnecessary call site resolution."
This reverts commit f9250fb053.
2022-03-29 08:34:02 +08:00
Stephen Chung
f9250fb053 Remove unnecessary call site resolution. 2022-03-28 23:22:17 +08:00
Stephen Chung
99118fe2c3 Minor refactors. 2022-03-20 21:58:43 +08:00
Stephen Chung
fefa633cf0 Add type alias support for plugin modules. 2022-03-19 09:43:18 +08:00
Stephen Chung
6546eae95f Fix macro hygene. 2022-03-18 17:51:04 +08:00
Stephen Chung
d01a6d428f Fix tests. 2022-03-18 17:11:52 +08:00
Vadim Petrochenkov
bed3a3dc18 codegen: Fix hygiene mismatch between function args uses and definitions 2022-03-17 18:50:46 +03:00
Stephen Chung
7686ca619a Use .. for (_). 2022-02-08 09:46:14 +08:00
Stephen Chung
f8cee0fe4e Simplify using .. 2022-02-08 09:02:15 +08:00
Stephen Chung
6b06019265 Do not remove doc-comments on pluging functions. 2022-01-20 09:06:09 +08:00
Stephen Chung
7ff50451cc Make comments multiline. 2021-12-21 22:16:03 +08:00
Stephen Chung
b85a9b3c1c Extract doc-comment on plugin functions. 2021-12-21 16:14:07 +08:00
Stephen Chung
a51482e9c8 Fix formatting. 2021-10-23 12:28:42 +08:00
wackbyte
9f0347df9f Fix some rustdoc warnings and a typo in FLOAT's docs
Unfortunately, I can't fix the 2 remaining warnings.
2021-10-22 12:03:06 +08:00
Stephen Chung
3f2dd23e6e Allow #[cfg(...)] in plugin functions. 2021-10-20 15:30:11 +08:00
Stephen Chung
0265af415d General code cleanup. 2021-10-20 13:36:40 +08:00
Stephen Chung
3001e90775 Deprecate From<EvalAltResult> for Result<T, Box<EvalAltResult>> because it is clearer for code to explicitly wrap errors in Err. 2021-10-19 23:52:58 +08:00
Stephen Chung
6510b617fe Reduce usage of Default::default() 2021-09-11 19:40:40 +08:00
Stephen Chung
94674679d9 Rename as_string and as_immutable_string. 2021-08-17 15:50:55 +08:00
Stephen Chung
df482d3574 Satisfy clippy. 2021-07-24 14:11:16 +08:00
Stephen Chung
694ac5b5bd General code fixups. 2021-07-04 16:40:15 +08:00
Stephen Chung
68ea8c27fd Fix unchecked.
Do not duplicate data size checking.
2021-06-12 10:26:50 +08:00
Stephen Chung
79d9977cd5 Change take_string and take_immutable_string to as_XXX. 2021-06-10 10:45:44 +08:00
Stephen Chung
5f36f1a28c Remove PluginFunction::is_variadic. 2021-05-29 18:32:34 +08:00
Stephen Chung
941e09d29d Guard against setters mutating constants, and allow pure setters. 2021-05-15 11:41:42 +08:00
Stephen Chung
202285f9ab Disallow pure setters. 2021-05-13 10:34:24 +08:00
Stephen Chung
13d5092c4d Allow setters returning values when return_raw. 2021-05-02 23:51:37 +08:00
Stephen Chung
c0b2eee9f2 Fix syn regression. 2021-03-29 12:46:46 +08:00
Stephen Chung
0afc2a0842 Reverse Module::set_plugin_fn. 2021-03-26 18:41:28 +08:00
Stephen Chung
c443c3bb48 Gate codegen metadata output under metadata feature. 2021-03-26 10:59:34 +08:00
Stephen Chung
adbb5f8eb8 Use static array for codegen parameters info. 2021-03-25 14:02:50 +08:00
Stephen Chung
c4fe1782df Streamline string handling. 2021-03-24 13:17:52 +08:00
Stephen Chung
3d0d5d1708 Streamline code. 2021-03-24 10:02:50 +08:00
Stephen Chung
6d1700728a Intern module registration strings. 2021-03-24 09:56:25 +08:00