Bump copyright date to 2019
[tor.git] / src / rust / tor_allocate / lib.rs
blobfff8a080063a0415d4ca8cbaa619eaa406e6c636
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
6 //! from C.
7 //!
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.
12 extern crate libc;
14 use std::alloc::System;
16 mod tor_allocate;
17 pub use tor_allocate::*;
19 #[global_allocator]
20 static A: System = System;