lib.rs 444 B

123456789101112
  1. //! Allocation helper functions that allow data to be allocated in Rust
  2. //! using tor's specified allocator. In doing so, this can be later freed
  3. //! from C.
  4. //!
  5. //! This is currently a temporary solution, we will later use tor's allocator
  6. //! by default for any allocation that occurs in Rust. However, as this will
  7. //! stabalize in 2018, we can use this as a temporary measure.
  8. extern crate libc;
  9. mod tor_allocate;
  10. pub use tor_allocate::*;