From f3193e0e1c12ea139f00d6b19d152b95f37b73c3 Mon Sep 17 00:00:00 2001 From: Exidex <16986685+Exidex@users.noreply.github.com> Date: Wed, 31 May 2023 22:26:24 +0200 Subject: feat(runtime): Add example for extension with ops (#19204) Spend quite some time trying to get this working. With proper example would have been a lot faster. So this is pr with the example. I also rearranged examples a little bit to allow for addition of more examples --- runtime/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime/Cargo.toml') diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index c464d3f04..5a7196ea8 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -29,8 +29,12 @@ name = "deno_runtime" path = "lib.rs" [[example]] -name = "hello_runtime" -path = "examples/hello_runtime.rs" +name = "extension_with_esm" +path = "examples/extension_with_esm/main.rs" + +[[example]] +name = "extension_with_ops" +path = "examples/extension_with_ops/main.rs" [build-dependencies] deno_ast.workspace = true -- cgit v1.2.3