Skip to content

Commit

Permalink
Bug 1316477 - Mention adding extern crate references. r=froydnj
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: G1DxiQ410W1
  • Loading branch information
rillian committed Nov 10, 2016
1 parent e020fa9 commit 36a876f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/docs/rust.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Linking Rust Crates into libxul

Rust crates that you want to link into libxul should be listed in the
``dependencies`` section of `toolkit/library/rust/shared/Cargo.toml <https://dxr.mozilla.org/mozilla-central/source/toolkit/library/rust/shared/Cargo.toml>`_.
You'll also need to add an ``extern crate`` reference to `toolkit/library/rust/shared/lib.rs <https://dxr.mozilla.org/mozilla-central/source/toolkit/library/rust/shared/lib.rs>`_.
This ensures that the Rust code will be linked properly into libxul as well
as the copy of libxul used for gtests.

Expand Down

0 comments on commit 36a876f

Please sign in to comment.