crater-browser-native

Native V8 host adapter for crater browser runtime

moon add mizchi/crater-browser-native@0.19.0
Download zip
Author
Version
0.19.0
License
Apache-2.0
Last updated
last month
Downloads
26
README

#mizchi/crater-browser-native

Native host bindings for Crater's V8-backed browser runtime.

#Test Boundary

There are now two explicit native test layers:

  • just test-native / just test-native-smoke
    • package: mizchi/crater-browser-native
    • purpose: smoke contract for the published native facade
    • includes: root facade, V8/mock DOM surface, and lightweight runtime assets
    • does not depend on browser shell navigation/e2e helpers

  • just test-native-v8
    • package: mizchi/crater-browser-native/js_v8
    • purpose: V8 runtime and mock DOM parity tests
    • includes: JS runtime compatibility and DOM snapshot tests
    • does not require sqlite-backed browser e2e wiring

  • just test-native-full
    • package: mizchi/crater-testing/e2e/native_v8
    • purpose: full native browser e2e coverage
    • includes: browser shell integration, Preact/React bundle helpers, and shell-driven navigation
    • lives in the internal testing module, not the published native adapter
    • transitively reaches mizchi/crater-browser/shell and mizchi/crater-browser-http
    • no longer requires sqlite headers by default

#CI Policy

  • required CI coverage should stay on smoke/V8 layers
  • full native e2e should be treated as an opt-in or separately scoped check

#Goal

Long-term, browser/native should stay a thin V8 host module and pull as little browser-shell/storage infrastructure as possible. The heavy native browser e2e coverage now starts in mizchi/crater-testing/e2e/native_v8.

The current split is:

  • mizchi/crater-browser-native
    • root facade over js_v8 and assets
  • mizchi/crater-browser-native/assets
    • bundled Preact/React sources and lightweight helper functions
  • mizchi/crater-browser-runtime
    • shared JS runtime contract / DOM serializer used by shell and native V8
  • mizchi/crater-browser-native/js_v8
    • native V8 host runtime over the shared mizchi/crater-browser-runtime contract
  • mizchi/crater-testing/e2e/native_v8
    • browser shell integration tests and full native browser e2e coverage

#
full_mock_dom_js

fn full_mock_dom_js() -> String

#
minimal_mock_dom_js

fn minimal_mock_dom_js() -> String

#
preact_bundle_js

fn preact_bundle_js() -> String

#
react_bundle_js

fn react_bundle_js() -> String

#
read_file_to_string_via_eval

fn read_file_to_string_via_eval(path : String) -> String?

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io