]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
update rust getting started for new build
authorChelsea Holland Komlo <me@chelseakomlo.com>
Mon, 6 Nov 2017 17:55:10 +0000 (12:55 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Nov 2017 14:55:29 +0000 (09:55 -0500)
doc/HACKING/GettingStartedRust.md

index a5253b46a638a2ef93f6050ad69c5382975bed6e..5a8f495b7d843c260777a080aa7cfe4c3b58675e 100644 (file)
@@ -132,8 +132,13 @@ solidify on is readily available.
    in the `.../tor/src/rust/` directory.
 1. Add your crate to `.../tor/src/rust/Cargo.toml`, in the
    `[workspace.members]` section.
-2. Append your crate's static library to the `rust_ldadd` definition
-   (underneath `if USE_RUST`) in `.../tor/Makefile.am`.
+2. Add your crate's files to src/rust/include.am
+
+If your crate should be available to C (rather than just being included as a
+dependency of other Rust modules):
+0. Declare the crate as a dependency of tor_rust in
+   `src/rust/tor_util/Cargo.toml` and include it in
+   `src/rust/tor_rust/lib.rs`
 
  How to test your Rust code
 ----------------------------