fix: remove unnecessary v8 snapshot

This commit is contained in:
Ruben Fiszel
2022-07-06 00:22:37 +02:00
parent 466f6b339a
commit d3904fd3eb
4 changed files with 0 additions and 21 deletions
-1
View File
@@ -1,4 +1,3 @@
target/
.env
v8.snap
oauth.json
-19
View File
@@ -1,19 +0,0 @@
use std::fs::File;
use std::io::Write;
use deno_core::{JsRuntime, RuntimeOptions};
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=Cargo.lock");
let options = RuntimeOptions {
will_snapshot: true,
..Default::default()
};
let mut runtime = JsRuntime::new(options);
let mut snap = File::create("v8.snap").expect("can create snap file");
snap.write_all(&runtime.snapshot())
.expect("can write content to snap");
}
-1
View File
@@ -34,7 +34,6 @@ pub async fn eval_timeout(
timeout(
std::time::Duration::from_millis(2000),
tokio::task::spawn_blocking(move || {
// let buffer = include_bytes!("../v8.snap");
let mut ops = vec![
// An op for summing an array of numbers
BIN
View File
Binary file not shown.