(Yes, I have Chelsea's permission.)
@@ -1,3 +1,6 @@
+// Copyright (c) 2016-2017, The Tor Project, Inc. */
+// See LICENSE for licensing information */
+
use libc::{c_char, c_int};
use std::ffi::CString;
//! FFI functions, only to be called from C.
//!
//! Equivalent C versions of this api are in `src/or/protover.c`
use external::c_tor_version_as_new_as;
use std::str::FromStr;
extern crate protover;
#[test]
extern crate libc;
mod smartlist;
use std::slice;
use std::ffi::CStr;
//! Allocation helper functions that allow data to be allocated in Rust
//! using tor's specified allocator. In doing so, this can be later freed
//! from C.
use libc::{c_char, c_void};
use std::{ptr, slice, mem};
//! FFI functions to announce Rust support during tor startup, only to be
//! called from C.
//! Small module to announce Rust support during startup for demonstration
//! purposes.