/chrome-extensions-rs

really early chrome extensions bindings in Rust

Primary LanguageRust

Partial chrome web extensions Rust bindings

Using the idl and json interface files at chromium git repo chrome specific and chromium git repo not chrome specific to write Rust bindings to the chrome web extensions.

Other crates that provide bindings to web extensions

web-extensions

This repo contains chrome-idl-parser and chrome-extensions crates.

❯ ./target/release/chrome-idl-parser --help
Usage: chrome-idl-parser --to <TO> [FROM]...

Arguments:
  [FROM]...  The path to the input directory with chrome json and idl files

Options:
  -t, --to <TO>  The file path to the src directory
  -h, --help     Print help
  -V, --version  Print version

Bindings

  • As of February 2024 only the types and the types' properties are being generated.
  • As of March 2024 async, callback, and regular functions are being generated. Some of the functions are tested against @types/chrome with jest-chrome.