aboutsummaryrefslogtreecommitdiff
path: root/doc/HACKING/GettingStartedRust.md
diff options
context:
space:
mode:
authorChelsea Holland Komlo <me@chelseakomlo.com>2017-11-06 12:55:10 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-13 09:55:29 -0500
commit05662f35ea4469e354b863ca5498522c716416c7 (patch)
treee3311cbd041253abbe6011dc895e51885b0b2037 /doc/HACKING/GettingStartedRust.md
parenta5ef2b619d267c38723c150d7945f17268c2fb6e (diff)
downloadtor-05662f35ea4469e354b863ca5498522c716416c7.tar.gz
tor-05662f35ea4469e354b863ca5498522c716416c7.zip
update rust getting started for new build
Diffstat (limited to 'doc/HACKING/GettingStartedRust.md')
-rw-r--r--doc/HACKING/GettingStartedRust.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/HACKING/GettingStartedRust.md b/doc/HACKING/GettingStartedRust.md
index a5253b46a6..5a8f495b7d 100644
--- a/doc/HACKING/GettingStartedRust.md
+++ b/doc/HACKING/GettingStartedRust.md
@@ -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
----------------------------