Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
signals: Guard most of the crate for Unix
Merged lorenz opened 8 months ago

The signals crate does not build on non-Unix-like platforms, such as Windows. It uses constants for signals that are not exported from libc on Windows, and transitive dependencies such as sem_safe fail to compile.

Resolve this, by guarding most of the crate, certainly all real features, by cfg(unix).

To require less uses of the cfg macro, move all affected parts into a new module, and re-export it.

The crate now builds on Windows (although it does not do anything interesting on that platform) and its Unix interface remains unchanged.

lorenz opened with revision a6ac3ab2 on base a670b6e6 +143 -120 8 months ago

The signals crate does not build on non-Unix-like platforms, such as Windows. It uses constants for signals that are not exported from libc on Windows, and transitive dependencies such as sem_safe fail to compile.

Resolve this, by guarding most of the crate, certainly all real features, by cfg(unix).

To require less uses of the cfg macro, move all affected parts into a new module, and re-export it.

The crate now builds on Windows (although it does not do anything interesting on that platform) and its Unix interface remains unchanged.

lorenz pushed revision 2 b7e56e2d on base a670b6e6 +145 -121 8 months ago

Fix unused import on Windows.

fintohaps pushed revision 3 5fd7aac1 on base 5229fb8a +145 -121 8 months ago

Rebased

fintohaps merged revision 5fd7aac1 at fd34b680 8 months ago