tree: ac30d8e04139a017929391b4266b38a5de21024a [search]
  1. BUILD.gn
  2. constants.rs
  3. http.rs
  4. http_unittest.rs
  5. lib.rs
  6. parser.rs
  7. parser_unittest.rs
  8. README.md
  9. types.rs
  10. web_package_rust_unittests.rs
components/web_package/rust/README.md

Web Package Rust Parser (components/web_package/rust)

This directory contains the memory-safe #![no_std] Rust implementation (web_package_rust) for parsing Web Bundle (.wbn) CBOR structures and exposing them to C++ via cpp_api_from_rust bindings (web_package::rust).

Responsibilities

  • Decoding Web Bundle section lengths, index sections, primary URLs, and response headers safely in Rust.
  • Enforcing structural invariants before converting parsed metadata into web_package::mojom structures in //components/web_package.