mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
fix: remove unnecessary v8 snapshot
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
target/
|
||||
.env
|
||||
v8.snap
|
||||
oauth.json
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user