Skip to content

Commit 902639b

Browse files
committed
fix: interrupt feature only gates signal-handling, but leaves the interrupt module alone.
1 parent 24e938b commit 902639b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gix/src/interrupt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! Such checks for interrupts are provided in custom implementations of various traits to transparently add interrupt
66
//! support to methods who wouldn't otherwise by injecting it. see [`Read`].
77
8+
#[cfg(feature = "interrupt")]
89
mod init {
910
use std::{
1011
io,
@@ -143,6 +144,7 @@ use std::{
143144
sync::atomic::{AtomicBool, Ordering},
144145
};
145146

147+
#[cfg(feature = "interrupt")]
146148
pub use init::{init_handler, Deregister};
147149

148150
/// A wrapper for an inner iterator which will check for interruptions on each iteration.

gix/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ pub use gix_url::Url;
122122
pub use gix_utils as utils;
123123
pub use hash::{oid, ObjectId};
124124

125-
#[cfg(feature = "interrupt")]
126125
pub mod interrupt;
127126

128127
mod ext;

0 commit comments

Comments
 (0)