lib.rs 542 B

123456789101112131415
  1. // Copyright (c) 2016-2017, The Tor Project, Inc. */
  2. // See LICENSE for licensing information */
  3. //! Allocation helper functions that allow data to be allocated in Rust
  4. //! using tor's specified allocator. In doing so, this can be later freed
  5. //! from C.
  6. //!
  7. //! This is currently a temporary solution, we will later use tor's allocator
  8. //! by default for any allocation that occurs in Rust. However, as this will
  9. //! stabalize in 2018, we can use this as a temporary measure.
  10. extern crate libc;
  11. mod tor_allocate;
  12. pub use tor_allocate::*;