aboutsummaryrefslogtreecommitdiff
path: root/src/rust/tor_util/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/tor_util/lib.rs')
-rw-r--r--src/rust/tor_util/lib.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rust/tor_util/lib.rs b/src/rust/tor_util/lib.rs
new file mode 100644
index 0000000000..79d583d1ae
--- /dev/null
+++ b/src/rust/tor_util/lib.rs
@@ -0,0 +1,13 @@
+//! 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}`.
+
+extern crate libc;
+
+mod rust_string;
+pub mod ffi;
+
+pub use rust_string::*;