Skip to content

Commit

Permalink
Bug 1859623: Mention thin-vec crate in Writing Rust Code / Basics. r=…
Browse files Browse the repository at this point in the history
…firefox-source-docs-reviewers,sylvestre DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D191223
  • Loading branch information
jimblandy committed Oct 17, 2023
1 parent fa6e743 commit f9befd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/writing-rust-code/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ reflects `nsresult` codes into Rust.
exposes bindings for XPCOM string types. You can use the same `ns{A,C}String`
types as C++ for owned strings and pass them back and forth over the
boundary. There is also `ns{A,C}Str` for dependent or borrowed strings.
- [thin-vec](https://docs.rs/thin-vec/latest/thin_vec/) provides a
Rust `Vec`-like type that is layout-compatible with Gecko's `nsTArray`.
- [xpcom](https://searchfox.org/mozilla-central/source/xpcom/rust/xpcom/src)
provides multiple building blocks for a component's implementation.
- The `RefPtr` type is for managing reference-counted pointers.
Expand Down

0 comments on commit f9befd3

Please sign in to comment.