summaryrefslogtreecommitdiff
path: root/src/rust/protover/lib.rs
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-03-21 00:24:46 +0000
committerIsis Lovecruft <isis@torproject.org>2018-04-02 18:27:39 +0000
commitb6059297d7cb76f0e00e2098e38d6677d3033340 (patch)
treebccb1506e4aa864ae335f68abeba10508e4ba6ed /src/rust/protover/lib.rs
parent3df954549232bf5516ba5fce13c66a3ac91524a4 (diff)
downloadtor-b6059297d7cb76f0e00e2098e38d6677d3033340.tar.gz
tor-b6059297d7cb76f0e00e2098e38d6677d3033340.zip
rust: Implement error types for Rust protover implementation.
This will allow us to do actual error handling intra-crate in a more rusty manner, e.g. propogating errors in match statements, conversion between error types, logging messages, etc. * FIXES part of #24031: https://bugs.torproject.org/24031.
Diffstat (limited to 'src/rust/protover/lib.rs')
-rw-r--r--src/rust/protover/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rust/protover/lib.rs b/src/rust/protover/lib.rs
index d1d49d2a59..2455d50818 100644
--- a/src/rust/protover/lib.rs
+++ b/src/rust/protover/lib.rs
@@ -22,6 +22,8 @@
//! protocols to develop independently, without having to claim compatibility
//! with specific versions of Tor.
+#[deny(missing_docs)]
+
extern crate libc;
extern crate smartlist;
extern crate external;
@@ -32,6 +34,7 @@ extern crate tor_util;
#[macro_use]
extern crate tor_log;
+pub mod errors;
mod protover;
pub mod ffi;