Crate tor_util [] [src]

C <-> Rust compatibility helpers and types.

Generically useful, small scale helpers should go here. This goes for both the C side (in the form of the ffi module) as well as the Rust side (individual modules per functionality). The corresponding C stuff lives in src/common/compat_rust.{c,h}.

Modules

ffi

FFI functions, only to be called from C.

Structs

RustString

Compatibility wrapper for strings allocated in Rust and passed to C.