mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'maint-0.3.4'
This commit is contained in:
@@ -25,5 +25,4 @@ rand = { version = "=0.5.0-pre.2", default-features = false }
|
||||
rand_core = { version = "=0.2.0-pre.0", default-features = false }
|
||||
|
||||
[features]
|
||||
testing = ["tor_log/testing"]
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ version = "0.0.1"
|
||||
name = "protover"
|
||||
|
||||
[features]
|
||||
testing = ["tor_log/testing"]
|
||||
|
||||
[dependencies]
|
||||
libc = "=0.2.39"
|
||||
|
||||
@@ -9,7 +9,6 @@ path = "lib.rs"
|
||||
crate_type = ["rlib", "staticlib"]
|
||||
|
||||
[features]
|
||||
testing = []
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2.39"
|
||||
|
||||
@@ -88,7 +88,7 @@ pub fn tor_log_msg_impl(
|
||||
|
||||
/// This implementation is used when compiling for actual use, as opposed to
|
||||
/// testing.
|
||||
#[cfg(all(not(test), not(feature = "testing")))]
|
||||
#[cfg(not(test))]
|
||||
pub mod log {
|
||||
use libc::{c_char, c_int};
|
||||
use super::LogDomain;
|
||||
@@ -142,7 +142,7 @@ pub mod log {
|
||||
|
||||
/// This module exposes no-op functionality for testing other Rust modules
|
||||
/// without linking to C.
|
||||
#[cfg(any(test, feature = "testing"))]
|
||||
#[cfg(test)]
|
||||
pub mod log {
|
||||
use libc::{c_char, c_int};
|
||||
use super::LogDomain;
|
||||
|
||||
Reference in New Issue
Block a user