lib.rs 475 B

12345678910111213141516
  1. //! Copyright (c) 2016-2019, The Tor Project, Inc. */
  2. //! See LICENSE for licensing information */
  3. //! Logging wrapper for Rust to utilize Tor's logger, found at
  4. //! src/common/log.c and src/common/torlog.h
  5. //!
  6. //! Exposes different interfaces depending on whether we are running in test
  7. //! or non-test mode. When testing, we use a no-op implementation,
  8. //! otherwise we link directly to C.
  9. extern crate libc;
  10. extern crate tor_allocate;
  11. mod tor_log;
  12. pub use tor_log::*;