lib.rs 500 B

1234567891011121314151617
  1. //! Copyright (c) 2016-2017, 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::*;
  13. pub use tor_log::log::*;