|
4 | 4 | #include <workerd/jsg/type-wrapper.h> |
5 | 5 | #include <workerd/jsg/setup.h> |
6 | 6 |
|
7 | | -#include <workerd/rust/cxx-integration/lib.rs.h> |
8 | | - |
9 | 7 | #include <capnp/serialize.h> |
| 8 | +#include <kj-rs/kj-rs.h> |
10 | 9 |
|
| 10 | +using namespace kj_rs; |
11 | 11 | namespace workerd::rust::gen_compile_cache { |
12 | 12 |
|
13 | 13 | namespace { |
@@ -36,11 +36,11 @@ constexpr v8::ScriptCompiler::CompileOptions compileOptions = v8::ScriptCompiler |
36 | 36 | auto data = ccIsolate.runInLockScope([&](CompileCacheIsolate::Lock& isolateLock) { |
37 | 37 | return JSG_WITHIN_CONTEXT_SCOPE(isolateLock, |
38 | 38 | isolateLock.newContext<CompilerCacheContext>().getHandle(isolateLock), [&](jsg::Lock& js) { |
39 | | - auto resourceName = jsg::newExternalOneByteString(js, fromRust(path)); |
| 39 | + auto resourceName = jsg::newExternalOneByteString(js, from<Rust>(path)); |
40 | 40 | v8::ScriptOrigin origin(resourceName, resourceLineOffset, resourceColumnOffset, |
41 | 41 | resourceIsSharedCrossOrigin, scriptId, {}, resourceIsOpaque, isWasm, isModule); |
42 | 42 |
|
43 | | - auto contentStr = jsg::newExternalOneByteString(js, fromRust(source)); |
| 43 | + auto contentStr = jsg::newExternalOneByteString(js, from<Rust>(source)); |
44 | 44 | auto source = v8::ScriptCompiler::Source(contentStr, origin, nullptr); |
45 | 45 | auto module = |
46 | 46 | jsg::check(v8::ScriptCompiler::CompileModule(js.v8Isolate, &source, compileOptions)); |
|
0 commit comments