diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-13 09:59:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-13 09:59:10 -0500 |
commit | edf3d6b7ee2c02804b1c590949af6e24d1d37383 (patch) | |
tree | fd1d9cc7f1870c2ca677c9703ed9a248a9215826 /doc/HACKING | |
parent | 05662f35ea4469e354b863ca5498522c716416c7 (diff) | |
parent | 1c50331b9af28a691cb48e632ab71d9af83916ba (diff) | |
download | tor-edf3d6b7ee2c02804b1c590949af6e24d1d37383.tar.gz tor-edf3d6b7ee2c02804b1c590949af6e24d1d37383.zip |
Merge remote-tracking branch 'chelseakomlo/24032-cargo-rust-sync'
Diffstat (limited to 'doc/HACKING')
-rw-r--r-- | doc/HACKING/GettingStartedRust.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/HACKING/GettingStartedRust.md b/doc/HACKING/GettingStartedRust.md index 5a8f495b7d..7d8a74bfed 100644 --- a/doc/HACKING/GettingStartedRust.md +++ b/doc/HACKING/GettingStartedRust.md @@ -125,6 +125,14 @@ is on our TODO list to try to cultivate good standing with various distro maintainers of `rustc` and `cargo`, in order to ensure that whatever version we solidify on is readily available. +If parts of your Rust code needs to stay in sync with C code (such as handling +enums across the FFI boundary), annonotate these places in a comment structured +as follows: + + /// C_RUST_COUPLED: <path_to_file> `<name_of_c_object>` + +Where <name_of_c_object> can be an enum, struct, constant, etc. + Adding your Rust module to Tor's build system ----------------------------------------------- |