2017-10-27 09:54:54 -04:00
|
|
|
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
|
|
|
// See LICENSE for licensing information */
|
|
|
|
|
2017-10-14 23:05:31 -04:00
|
|
|
//! 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.
|
|
|
|
//!
|
|
|
|
//! This is currently a temporary solution, we will later use tor's allocator
|
|
|
|
//! by default for any allocation that occurs in Rust. However, as this will
|
|
|
|
//! stabalize in 2018, we can use this as a temporary measure.
|
|
|
|
|
|
|
|
extern crate libc;
|
|
|
|
|
|
|
|
mod tor_allocate;
|
|
|
|
pub use tor_allocate::*;
|