summaryrefslogtreecommitdiff
path: root/src/rust/tor_rust
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-02-08 20:06:19 +0000
committerIsis Lovecruft <isis@torproject.org>2018-02-10 02:15:06 +0000
commit8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97 (patch)
tree8b06996918772463af5993927d07726b6244b321 /src/rust/tor_rust
parent45c59eff6c0b261d1f868eb22e0bd36a39dfdbb3 (diff)
downloadtor-8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97.tar.gz
tor-8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97.zip
rust: Add macro for passing static borrowed strings from Rust to C.
* ADD a new macro, tor_util::string::cstr!() which takes Rust strings, concatenates them together, appends a NUL byte, and converts it into a std::ffi::CStr for handing to C.
Diffstat (limited to 'src/rust/tor_rust')
0 files changed, 0 insertions, 0 deletions