1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/tools
Matt Mastracci e55b448730
feat(core) deno_core::extension! macro to simplify extension registration (#18210)
This implements two macros to simplify extension registration and centralize a lot of the boilerplate as a base for future improvements:

* `deno_core::ops!` registers a block of `#[op]`s, optionally with type
parameters, useful for places where we share lists of ops
* `deno_core::extension!` is used to register an extension, and creates
two methods that can be used at runtime/snapshot generation time:
`init_ops` and `init_ops_and_esm`.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-03-17 18:22:15 +00:00
..
coverage refactor: remove usages of map_or / map_or_else (#18212) 2023-03-15 17:46:36 -04:00
init chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
repl fix(repl): Hide indexable properties in tab completion (#18141) 2023-03-16 19:46:50 +00:00
vendor refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) 2023-03-14 01:12:09 +00:00
bench.rs feat(core) deno_core::extension! macro to simplify extension registration (#18210) 2023-03-17 18:22:15 +00:00
bundle.rs refactor: --watch commands use deno_core::resolve_url_or_path (#18172) 2023-03-14 02:44:16 +00:00
check.rs fix(check): regression where config "types" entries caused type checking errors (#18124) 2023-03-11 11:43:45 -05:00
doc.rs refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) 2023-03-14 01:12:09 +00:00
fmt.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
info.rs refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) 2023-03-14 01:12:09 +00:00
installer.rs refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) 2023-03-14 01:12:09 +00:00
lint.rs chore(cli): update deno_lint to 0.41.0 (#17997) 2023-03-02 21:50:17 +00:00
mod.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
run.rs refactor: --watch commands use deno_core::resolve_url_or_path (#18172) 2023-03-14 02:44:16 +00:00
standalone.rs refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) 2023-03-14 01:12:09 +00:00
task.rs fix: lazily surface errors in package.json deps parsing (#17974) 2023-03-03 18:27:05 -04:00
test.rs feat(core) deno_core::extension! macro to simplify extension registration (#18210) 2023-03-17 18:22:15 +00:00
upgrade.rs perf: do not depend on iana-time-zone (#18088) 2023-03-15 07:14:22 +00:00