Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

vendor(deno_v8): import upstream 0.3.0 baseline

ldm0c438722b9598
diff --git a/.gitignore b/.gitignore
index d022475a1..537e76b4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,8 @@
!/vendor/v8-146.9.0/**
!/vendor/v8-152.2.0/
!/vendor/v8-152.2.0/**
+!/vendor/deno_v8-0.3.0/
+!/vendor/deno_v8-0.3.0/**
!/vendor/xml5ever-0.39.0/
!/vendor/xml5ever-0.39.0/**
/.moli
diff --git a/vendor/deno_v8-0.3.0/Cargo.toml b/vendor/deno_v8-0.3.0/Cargo.toml
new file mode 100644
index 000000000..69f361fb8
--- /dev/null
+++ b/vendor/deno_v8-0.3.0/Cargo.toml
@@ -0,0 +1,71 @@
+# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
+#
+# When uploading crates to the registry Cargo will automatically
+# "normalize" Cargo.toml files for maximal compatibility
+# with all versions of Cargo and also rewrite `path` dependencies
+# to registry (e.g., crates.io) dependencies.
+#
+# If you are reading this file be aware that the original Cargo.toml
+# will likely look very different (and much more reasonable).
+# See Cargo.toml.orig for the original contents.
+
+[package]
+edition = "2024"
+name = "deno_v8"
+version = "0.3.0"
+authors = ["the Deno authors"]
+build = false
+autolib = false
+autobins = false
+autoexamples = false
+autotests = false
+autobenches = false
+description = "JavaScript engine facade for Deno"
+readme = false
+license = "MIT"
+repository = "https://github.com/denoland/deno"
+resolver = "2"
+
+[features]
+default = ["v8"]
+quickjs = [
+ "dep:v8x_backend",
+ "v8x_backend/quickjs",
+]
+simdutf = [
+ "rusty_v8?/simdutf",
+ "v8x_backend?/simdutf",
+]
+use_custom_libcxx = [
+ "rusty_v8?/use_custom_libcxx",
+ "v8x_backend?/use_custom_libcxx",
+]
+v8 = ["dep:rusty_v8"]
+v8_enable_pointer_compression = [
+ "rusty_v8?/v8_enable_pointer_compression",
+ "v8x_backend?/v8_enable_pointer_compression",
+]
+v8_enable_sandbox = [
+ "rusty_v8?/v8_enable_sandbox",
+ "v8x_backend?/v8_enable_sandbox",
+]
+v8_enable_v8_checks = [
+ "rusty_v8?/v8_enable_v8_checks",
+ "v8x_backend?/v8_enable_v8_checks",
+]
+
+[lib]
+name = "deno_v8"
+path = "lib.rs"
+
+[dependencies.rusty_v8]
+version = "150.4.0"
+optional = true
+default-features = false
+package = "v8"
+
+[dependencies.v8x_backend]
+version = "=149.4.0-rc.4"
+optional = true
+default-features = false
+package = "v8x"
diff --git a/vendor/deno_v8-0.3.0/Cargo.toml.orig b/vendor/deno_v8-0.3.0/Cargo.toml.orig
new file mode 100644
index 000000000..e88fb231a
--- /dev/null
+++ b/vendor/deno_v8-0.3.0/Cargo.toml.orig
@@ -0,0 +1,41 @@
+# Copyright 2018-2026 the Deno authors. MIT license.
+
+[package]
+name = "deno_v8"
+version = "0.3.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+repository.workspace = true
+description = "JavaScript engine facade for Deno"
+
+[lib]
+path = "lib.rs"
+
+[features]
+# These passthroughs intentionally mirror rusty_v8's feature surface. Keep
+# additions in sync so moving through the facade never silently disables one.
+default = ["v8"]
+v8 = ["dep:rusty_v8"]
+quickjs = ["dep:v8x_backend", "v8x_backend/quickjs"]
+simdutf = ["rusty_v8?/simdutf", "v8x_backend?/simdutf"]
+use_custom_libcxx = [
+ "rusty_v8?/use_custom_libcxx",
+ "v8x_backend?/use_custom_libcxx",
+]
+v8_enable_pointer_compression = [
+ "rusty_v8?/v8_enable_pointer_compression",
+ "v8x_backend?/v8_enable_pointer_compression",
+]
+v8_enable_sandbox = [
+ "rusty_v8?/v8_enable_sandbox",
+ "v8x_backend?/v8_enable_sandbox",
+]
+v8_enable_v8_checks = [
+ "rusty_v8?/v8_enable_v8_checks",
+ "v8x_backend?/v8_enable_v8_checks",
+]
+
+[dependencies]
+rusty_v8 = { package = "v8", version = "150.4.0", optional = true, default-features = false }
+v8x_backend = { package = "v8x", version = "=149.4.0-rc.4", optional = true, default-features = false }
diff --git a/vendor/deno_v8-0.3.0/lib.rs b/vendor/deno_v8-0.3.0/lib.rs
new file mode 100644
index 000000000..9f30947ce
--- /dev/null
+++ b/vendor/deno_v8-0.3.0/lib.rs
@@ -0,0 +1,12 @@
+// Copyright 2018-2026 the Deno authors. MIT license.
+
+#[cfg(all(feature = "v8", feature = "quickjs"))]
+compile_error!("features `v8` and `quickjs` are mutually exclusive");
+
+#[cfg(not(any(feature = "v8", feature = "quickjs")))]
+compile_error!("either feature `v8` or `quickjs` must be enabled");
+
+#[cfg(all(feature = "v8", not(feature = "quickjs")))]
+pub use rusty_v8::*;
+#[cfg(all(feature = "quickjs", not(feature = "v8")))]
+pub use v8x_backend::*;