mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
Demo protobufs in deno2.
Adds deno_set_response() to allow stack allocated responses.
This commit is contained in:
parent
f97216609d
commit
4ac67cf343
10 changed files with 88 additions and 35 deletions
|
@ -136,8 +136,8 @@ int main(int argc, char** argv) {
|
|||
auto snapshot_in_blob = ReadFile(snapshot_in_bin);
|
||||
|
||||
deno_init();
|
||||
auto snapshot_blob =
|
||||
deno::MakeSnapshot(&natives_blob, &snapshot_in_blob, js_fn, js_source.c_str());
|
||||
auto snapshot_blob = deno::MakeSnapshot(&natives_blob, &snapshot_in_blob,
|
||||
js_fn, js_source.c_str());
|
||||
|
||||
StartupDataCppWriter nativesWriter("natives", natives_out_cc, natives_blob);
|
||||
nativesWriter.Write();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue