1 // Copyright (c) 2016-2019, The Tor Project, Inc. */
2 // See LICENSE for licensing information */
4 //! Allocation helper functions that allow data to be allocated in Rust
5 //! using tor's specified allocator. In doing so, this can be later freed
8 //! This is currently a temporary solution, we will later use tor's allocator
9 //! by default for any allocation that occurs in Rust. However, as this will
10 //! stabalize in 2018, we can use this as a temporary measure.
14 use std::alloc::System;
17 pub use tor_allocate::*;
20 static A: System = System;