gecko-dev/docs/rust-components/developing-rust-components/example-component.md
Ben Dean-Kawamura 6bb56859a3 Bug 1949283 - Add link to the Rust example component, r=bgruber
Started a "developing rust components" section.  It's quite bare now,
but I think we can add more to it as part of
https://bugzilla.mozilla.org/show_bug.cgi?id=1949287.

Differential Revision: https://phabricator.services.mozilla.com/D238840
2025-02-21 18:51:43 +00:00

792 B

The Example Shared Rust Component

If you want to get started with shared Rust Component development, check out the Example component. It implements a basic TODO app as a way to show common patterns in component development and useful support crates that you can use. Feel free to copy and paste code from there as the starting point for your component.

Also see the Example component CLI. Providing a command-line interface for your component is a good way to show how applications can use your app. It also gives you a way to execute the code, which can provide a good way to test your code (alongside unit-test of course).