Skip to content

Commit

Permalink
Remove general conditional compilation flags
Browse files Browse the repository at this point in the history
See https://blog.rust-lang.org/2024/05/06/check-cfg.html

The conditional compilation flags for tor were superfluous as we can
make do fine with using only features.
  • Loading branch information
upbqdn committed Jun 11, 2024
1 parent 55c6992 commit c375a1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion zebra-network/src/isolated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use crate::{

// Wait until `arti-client`'s dependency `x25519-dalek v1.2.0` is updated to a higher version. (#5492)
// #[cfg(feature = "tor")]
#[cfg(tor)]
pub(crate) mod tor;

#[cfg(test)]
Expand Down
2 changes: 0 additions & 2 deletions zebra-network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,10 @@ mod protocol;

// Wait until `arti-client`'s dependency `x25519-dalek v1.2.0` is updated to a higher version. (#5492)
// #[cfg(feature = "tor")]
#[cfg(tor)]
pub use crate::isolated::tor::connect_isolated_tor;

// Wait until `arti-client`'s dependency `x25519-dalek v1.2.0` is updated to a higher version. (#5492)
// #[cfg(all(feature = "tor", any(test, feature = "proptest-impl")))]
#[cfg(tor)]
pub use crate::isolated::tor::connect_isolated_tor_with_inbound;

#[cfg(any(test, feature = "proptest-impl"))]
Expand Down

0 comments on commit c375a1c

Please sign in to comment.