tree: 214a2f7bc958eed3532b2f19aa3474ee19553fb4
  1. bindings/
  2. mojom_value_parser/
  3. sequences/
  4. system/
  5. tests/
  6. BUILD.gn
  7. OWNERS
  8. README.md
public/rust/README.md

This directory contains the code that generates mojom bindings for rust code. It is still under active development, and not yet in a usable state.

For more information, see Creating Rust Bindings for Mojo

FOR_RELEASE: Fill this out more!

Layers

FOR_RELEASE: Actually explain what this means Unlike C++, we've got three layers on top of the C bindings:

  1. (mostly) Safe, idiomatic, but still low-level FFI bindings (system/ffi)
  2. Ergonomic, mid-level bindings (system)
  3. High-level, often Mojom-specific code (bindings)

C++ just has (2) and (3), building (2) directly on the C code.