commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
acdd9b3dbe5898f6c539bfe80fb88a3ed1aaa0a9
Jack O'Connor
2019-12-03T16:00:47
add avx2.rs
diff --git a/src/avx2.rs b/src/avx2.rs new file mode 100644 index 0000000..78aa5d6 --- /dev/null +++ b/src/avx2.rs @@ -0,0 +1,646 @@ +#[cfg(target_arch = "x86")] +use core::arch::x86::*; +#[cfg(target_arch = "x86_64")] +use core::arch::x86_64::*; + +use crate::{offset_high, offset_low, BLOCK_LEN, IV, MSG_SCHEDULE, OUT_...
3
655
7
8f15aa3dfb5f63d2ab79b365a5e0e3042eb40b2f
Jack O'Connor
2019-12-02T23:02:11
add sse41.rs
diff --git a/src/lib.rs b/src/lib.rs index 947792b..db41795 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,8 @@ use arrayref::{array_refs, mut_array_refs}; mod portable; +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] +mod sse41; #[cfg(test)] mod test; diff --git a/src/portable.rs b/src/portable....
3
987
1
e4e0b0f99dfb49173053f219d45b61a7402f8f62
Jack O'Connor
2019-12-02T22:32:33
test_reference_impl_size
diff --git a/src/test.rs b/src/test.rs index 80e0a53..0068135 100644 --- a/src/test.rs +++ b/src/test.rs @@ -13,3 +13,13 @@ pub fn paint_test_input(buf: &mut [u8]) { offset += take; } } + +#[test] +fn test_reference_impl_size() { + // Because the Rust compiler optimizes struct layout, it's possible th...
1
10
0
0aed47c35355ab7de53fa281201b8b924c2cfcb3
Antti Keränen
2026-02-10T20:39:08
Release 3.5.2
diff --git a/Cargo.toml b/Cargo.toml index 75494e1..08d77a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.5.1" +version = "3.5.2" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
369ffb7da44d404837c952d05a58e9a4b7947005
Antti Keränen
2026-02-10T20:37:56
Remove cargo.lock introduced with the previous PR
diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 79b09e3..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,130 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "bitflags" -version = "2.10.0" -source = "registry+https:...
1
0
130
97d3e27d98f5baa9ce500ac23f914d7446c90101
oech3
2026-02-03T17:39:08
bump nix
diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..79b09e3 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,130 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://gi...
3
134
4
c619fb2dd196228b193cb2f2762baac51f97c1d9
Antti Keränen
2025-10-28T20:32:20
Release 3.5.1
diff --git a/Cargo.toml b/Cargo.toml index de35d03..5c7edc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.5.0" +version = "3.5.1" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
eed9335c16fc2d4838b615dd55555a60a016dcd7
Mads Marquart
2025-10-28T14:30:33
Use dispatch2
diff --git a/Cargo.toml b/Cargo.toml index a3782cd..de35d03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.69.0" nix = { version = "0.30", default-features = false, features = ["signal"]} [target.'cfg(target_vendor = "apple")'.dependencies] -dispatch = "0.2" +dispatch2 = "0.3" [targ...
2
9
5
e97caabeed5a9cbe30951c953587d52d1ade7274
Antti Keränen
2025-09-06T20:20:11
Release 3.5.0 Increasing the minor version as the implementation of unix side was basically rewritten by changing pipes to semaphores.
diff --git a/Cargo.toml b/Cargo.toml index 8bd70cf..a3782cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.7" +version = "3.5.0" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
d26a5dd2fc0c467e10daeb2945aafe17e9f5121f
Antti Keränen
2025-09-06T20:19:45
Update windows-sys to 0.61
diff --git a/Cargo.toml b/Cargo.toml index f881405..8bd70cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,10 +21,10 @@ nix = { version = "0.30", default-features = false, features = ["signal"]} dispatch = "0.2" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.60", features = ["Win32_Foundation",...
1
2
2
dde8c598e5044e32bdba07668a1ce63b69ce4001
Daniel Paoliello
2025-09-04T20:04:08
Bump windows-sys to 0.60
diff --git a/Cargo.toml b/Cargo.toml index 8fffdc8..f881405 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,10 +21,10 @@ nix = { version = "0.30", default-features = false, features = ["signal"]} dispatch = "0.2" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.59", features = ["Win32_Foundation",...
2
4
3
1dfec0977108d0642b605c0cc1fdf31a98195cba
наб
2025-07-09T15:34:08
Use dispatch semaphores on apple, where POSIX semaphores are explicitly and officially broken
diff --git a/Cargo.toml b/Cargo.toml index 2ae8670..8fffdc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,9 @@ rust-version = "1.69.0" [target.'cfg(unix)'.dependencies] nix = { version = "0.30", default-features = false, features = ["signal"]} +[target.'cfg(target_vendor = "apple")'.dependencies] +dispatch ...
2
43
7
336d4528cae85e389dd0ac65c587196627c50d2d
наб
2025-07-09T15:13:07
Implement unix with sem_*(3) instead of pipes Using pipes works, but is unnecessarily thick for a one-shot application like this, and leaves 2 largely-useless pipe fds in the process permanently sem_post(3) is explicitly allowed to be used in signal handlers, this is practically the target application of POSIX semaph...
diff --git a/Cargo.toml b/Cargo.toml index d1b317e..2ae8670 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ readme = "README.md" rust-version = "1.69.0" [target.'cfg(unix)'.dependencies] -nix = { version = "0.30", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.30", default-f...
2
15
90
92709e5cd18da6f5795945feee42a0a5fe59acac
наб
2025-07-09T14:45:25
Fix `` grouping in documentation
diff --git a/src/lib.rs b/src/lib.rs index 7bdbd30..613e4ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ //! ``` //! //! # Handling SIGTERM and SIGHUP -//! Handling of `SIGTERM and SIGHUP` can be enabled with `termination` feature. If this is enabled, +//! Handling of `SIGTERM` and `SIGHUP` can be enab...
1
1
1
ac79af3262199bce508257771b61608df4db22c4
Antti Keränen
2025-05-11T09:07:40
Version 3.4.7
diff --git a/Cargo.toml b/Cargo.toml index 78b710f..d1b317e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.6" +version = "3.4.7" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
f9a4b4d2c2e4559c969745b3e017f78cd0508868
Yuyi Wang
2025-05-06T08:30:29
Use `?` instead of and_then
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 4641abd..1948564 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -42,30 +42,17 @@ fn pipe2(flags: nix::fcntl::OFlag) -> nix::Result<(RawFd, RawFd)> { let pipe = unistd::pipe()?; - let mut res = Ok(0); - if fl...
1
9
19
3e5af79d5f0ade0857e804b02b4ffaff2f4fb848
Yuyi Wang
2025-05-06T08:25:35
Update nix to 0.30
diff --git a/Cargo.toml b/Cargo.toml index 78c28b6..78b710f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ readme = "README.md" rust-version = "1.69.0" [target.'cfg(unix)'.dependencies] -nix = { version = "0.29", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.30", default-f...
2
9
8
b9cf4cf88d5732e8c08cb9c707ae7ecbd05d1353
Antti Keränen
2025-04-04T11:58:52
Version 3.4.6
diff --git a/Cargo.toml b/Cargo.toml index f9678a4..78c28b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.5" +version = "3.4.6" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
4241b40ec1f7be6a2e24a17049573df02364cd30
Mads Marquart
2025-02-25T20:30:27
Add support for tvOS, visionOS and watchOS
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index b91ea76..23a6015 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -29,11 +29,10 @@ extern "C" fn os_handler(_: nix::libc::c_int) { } } -// pipe2(2) is not available on macOS, iOS, AIX or Haiku, so we need to use pipe(2...
1
3
5
3502f44eca2fd006fd578d59e41471ca57d26191
Antti Keränen
2024-08-13T15:52:21
Version 3.4.5
diff --git a/Cargo.toml b/Cargo.toml index 9d7c0b5..f9678a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.4" +version = "3.4.5" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
eac5c14b2a17d4bb614653752a5c85b3f2594ea4
Taiki Endo
2024-08-05T16:51:29
Update nix to 0.29, windows-sys to 0.59
diff --git a/Cargo.toml b/Cargo.toml index 70aaa06..9d7c0b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,13 +15,13 @@ readme = "README.md" rust-version = "1.69.0" [target.'cfg(unix)'.dependencies] -nix = { version = "0.28", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.29", default...
3
6
6
b543abe6c25bd54754bbbbcfcff566e046f8e609
rhysd
2024-05-23T11:08:33
Do not crash on thread spawn error
diff --git a/src/lib.rs b/src/lib.rs index 1c58fb2..7bdbd30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,12 +131,7 @@ where F: FnMut() + 'static + Send, { unsafe { - match platform::init_os_handler(overwrite) { - Ok(_) => {} - Err(err) => { - return Err(err.int...
1
2
7
8ad302d8a1cc7124c6b8cda7d6be642ef045adef
Antti Keränen
2024-03-10T07:43:16
Version 3.4.4
diff --git a/Cargo.toml b/Cargo.toml index edbe0b0..70aaa06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.3" +version = "3.4.4" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
716787234a741356ff1662402554b234103d6db2
Taiki Endo
2024-03-10T05:02:20
Fix build error on macOS
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 91d7375..b91ea76 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -42,6 +42,7 @@ fn pipe2(flags: nix::fcntl::OFlag) -> nix::Result<(RawFd, RawFd)> { use nix::fcntl::{fcntl, FcntlArg, FdFlag, OFlag}; let pipe = unis...
1
1
0
ceef26a11a708c01d46e72c3577d0ec9ab4df7cb
Taiki Endo
2024-03-10T05:38:49
Format with rustfmt
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 0639321..91d7375 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -9,9 +9,9 @@ use crate::error::Error as CtrlcError; use nix::unistd; -use std::os::unix::io::RawFd; -use std::os::fd::IntoRawFd; use std::os::fd::BorrowedF...
1
2
2
4d590bc84f787fc82a82701ec336b7edbc9600b5
Antti Keränen
2024-03-09T21:58:20
Version 3.4.3
diff --git a/Cargo.toml b/Cargo.toml index a84f052..edbe0b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.2" +version = "3.4.3" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
394fd83b92813822a25709b156243fda89766bca
Ben Kimock
2023-09-03T19:37:45
Update nix
diff --git a/Cargo.toml b/Cargo.toml index faafa39..a84f052 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,12 +10,12 @@ categories = ["os"] license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] -edition = "2018" +edition = "2021" readme = "RE...
2
9
5
4e5f374bdba3d35c10906f10d460755fdec6324b
Antti Keränen
2023-12-22T15:18:25
Version 3.4.2
diff --git a/Cargo.toml b/Cargo.toml index 125b45e..faafa39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.1" +version = "3.4.2" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
e430fa6c852a6df00be4b6fe1295a81330d23a3e
Taiki Endo
2023-12-16T04:10:22
Update windows-sys to 0.52
diff --git a/Cargo.toml b/Cargo.toml index 27f90d1..125b45e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,10 @@ rust-version = "1.63.0" nix = { version = "0.27", default-features = false, features = ["fs", "signal"]} [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.48", features = ["Win32...
1
2
2
76acedb508f6b14f478f91e6686c7f5341d5c43f
Antti Keränen
2023-09-03T12:15:20
Version 3.4.1
diff --git a/Cargo.toml b/Cargo.toml index bfa6e50..27f90d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.4.0" +version = "3.4.1" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
8ff36b88d1b9831bec893beac5b2d4f0d170c6bc
Ben Kimock
2023-06-02T20:37:49
Bump to nix 0.27
diff --git a/Cargo.toml b/Cargo.toml index a8c3240..bfa6e50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ readme = "README.md" rust-version = "1.63.0" [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.27", default-f...
1
1
1
560d58c2149460830bc8961e2ac350aa9b4393dd
Florian Bartels
2023-03-24T14:31:39
Add support for QNX Neutrino
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index d8960cd..292ac80 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -32,7 +32,8 @@ extern "C" fn os_handler(_: nix::libc::c_int) { target_os = "ios", target_os = "macos", target_os = "haiku", - target_os = "aix...
1
9
2
2d0ab31e32d42e6a935d4318dccb53280411d752
Antti Keränen
2023-06-07T18:06:08
Add MSRV + status badge Closes #104
diff --git a/Cargo.toml b/Cargo.toml index b697f38..a8c3240 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] edition = "2018" readme = "README.md" +rust-version = "1.63.0" [target.'cfg(unix)'.dependencies...
1
4
0
27bddfda1daa67fbe29c7898ac574f2e5d9ea4f9
Antti Keränen
2023-05-30T17:52:31
Version 3.4.0
diff --git a/Cargo.toml b/Cargo.toml index 232d470..b697f38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.3.1" +version = "3.4.0" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
89e7ed0aa9906d9fcc13d2cb4221d85faaa77ba9
Antti Keränen
2023-05-30T17:50:19
Introduce try_set_handler Revert set_handler to overwrite signal handlers, introduce try_set_handler that does not overwrite existing handlers.
diff --git a/src/lib.rs b/src/lib.rs index 0f535ed..1c58fb2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,22 +73,43 @@ static INIT_LOCK: Mutex<()> = Mutex::new(()); /// ``` /// /// # Warning -/// On Unix, the handler registration for `SIGINT`, (`SIGTERM` and `SIGHUP` if termination feature is enabled) or `SA_SIGIN...
5
36
19
44263713814497bf869f859f0fd1bdb803826893
Zhang Jing
2023-05-27T07:06:45
fix: Use double-checked locking
diff --git a/src/lib.rs b/src/lib.rs index e50ed76..0f535ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,9 +56,11 @@ pub use signal::*; pub use error::Error; use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Mutex; use std::thread; static INIT: AtomicBool = AtomicBool::new(false); +static INIT_L...
1
18
7
6cf8ddd5ef133ac28cf37fd1a42ae2592f4e7c77
Antti Keränen
2023-05-23T05:59:22
Release 3.3.1
diff --git a/Cargo.toml b/Cargo.toml index c3b02a4..232d470 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.3.0" +version = "3.3.1" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "https://detegr.gi...
1
1
1
948847a2f8fb470af5f5f22e0b04b88f6a481cdc
Illia Bobyr
2023-05-23T04:57:38
unix: Restore old handler when returning MultipleHandlers
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index eb93677..ba9531c 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -114,6 +114,7 @@ pub unsafe fn init_os_handler() -> Result<(), Error> { Err(e) => return Err(close_pipe(e)), }; if sigint_old.handler() != si...
1
3
0
2132c8d6903df20c731a5624a937240022932ce1
Benji Smith
2023-05-20T22:36:14
Upgrade plain-HTTP links to HTTPS in Cargo.toml files
diff --git a/Cargo.toml b/Cargo.toml index f5f62c3..c3b02a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "ctrlc" version = "3.3.0" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" -documentation = "http://detegr.github.io/doc/ctrlc" +documentatio...
1
1
1
74802011777d237fb040825dfa854b20f48c3c46
Antti Keränen
2023-05-20T18:14:39
Release 3.3.0
diff --git a/Cargo.toml b/Cargo.toml index e270bf0..f5f62c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.5" +version = "3.3.0" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
c6dace4e7b185ae8d10051720dcee05b868af337
Antti Keränen
2023-05-20T18:09:09
Fix clippy warnings
diff --git a/src/lib.rs b/src/lib.rs index e49a437..e50ed76 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,7 @@ //! //! # Example //! ```no_run +//! # #[allow(clippy::needless_doctest_main)] //! use std::sync::atomic::{AtomicBool, Ordering}; //! use std::sync::Arc; //! @@ -87,7 +88,7 @@ static INIT: Atomic...
1
2
1
7a23454af658476965e1f1fff7a0edb430269c72
Antti Keränen
2023-05-20T18:05:09
Error on multiple signal handlers on unix
diff --git a/Cargo.toml b/Cargo.toml index 7b45974..e270bf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,5 +27,13 @@ termination = [] [[test]] harness = false -name = "tests" -path = "src/tests.rs" +name = "main" +path = "tests/main/mod.rs" + +[[test]] +harness = false +name = "issue_97" +path = "tests/main/issu...
8
148
38
0876e610dbaf79735291d0aad97f4c29aeb68661
Taiki Endo
2023-04-12T12:31:32
Update windows-sys to 0.48
diff --git a/Cargo.toml b/Cargo.toml index a7d5302..7b45974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,10 @@ readme = "README.md" nix = { version = "0.26", default-features = false, features = ["fs", "signal"]} [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.45", features = ["Win32_Fo...
3
8
8
b631d3fea6a9f784547560c31919668a31cf1994
Antti Keränen
2023-02-05T06:39:12
Release 3.2.5
diff --git a/Cargo.toml b/Cargo.toml index 9348cf0..a7d5302 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.4" +version = "3.2.5" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
033d54b2cba0cc2697d79a78cbb04ce09dfbebaf
Taiki Endo
2023-02-03T23:50:35
Update windows-sys to 0.45
diff --git a/Cargo.toml b/Cargo.toml index 2d51830..9348cf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,10 @@ readme = "README.md" nix = { version = "0.26", default-features = false, features = ["fs", "signal"]} [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42", features = ["Win32_Fo...
1
2
2
0467118dbbded128dc889a0552c1d97eb3fe04bb
Antti Keränen
2022-12-11T07:37:41
Release 3.2.4
diff --git a/Cargo.toml b/Cargo.toml index 3b7e7b0..2d51830 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.3" +version = "3.2.4" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
e7efd1a9cfeb683693a222c856c6ad4d64dacccf
Qiu Chaofan
2022-12-05T04:20:51
Support AIX operating system Like Haiku or Apple platform, AIX also doesn't have pipe2.
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 1a841a2..5e14573 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -26,9 +26,14 @@ extern "C" fn os_handler(_: nix::libc::c_int) { } } -// pipe2(2) is not available on macOS, iOS or Haiku, so we need to use pipe(2) and ...
1
13
3
639700715b8a40c894b826106b43ea4ea9fabfa0
Ryan Zoeller
2022-12-03T02:21:50
Upgrade nix dependency to 0.26
diff --git a/Cargo.toml b/Cargo.toml index 31cc480..3b7e7b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" readme = "README.md" [target.'cfg(unix)'.dependencies] -nix = { version = "0.25", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.26", default-features...
1
1
1
64790602789da49a1dd2779765c5f89bf345a8c9
Niyaz Nigmatullin
2022-10-21T11:27:25
Migrate from `winapi` to `windows-sys`
diff --git a/Cargo.toml b/Cargo.toml index 63b2ac1..31cc480 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,10 @@ readme = "README.md" nix = { version = "0.25", default-features = false, features = ["fs", "signal"]} [target.'cfg(windows)'.dependencies] -winapi = { version = "0.3", features = ["consoleapi", "...
3
33
37
6e4ae32597f29d7bb0ec7f24daf1c68fc2533f51
Antti Keränen
2022-08-14T15:01:53
Run rustfmt
diff --git a/src/lib.rs b/src/lib.rs index 8b56a8e..c5f3a70 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,10 @@ pub fn set_handler<F>(mut user_handler: F) -> Result<(), Error> where F: FnMut() -> () + 'static + Send, { - if INIT.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).map_or_...
1
4
1
08abf10d65095dc3b4ff5025be1c312e167108a3
Antti Keränen
2022-08-14T14:51:58
Release 3.2.3
diff --git a/Cargo.toml b/Cargo.toml index cb54e0c..63b2ac1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.2" +version = "3.2.3" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
574f5631c9e83193e6df0081c7d608ae5047eaed
Al Hoang
2022-05-21T03:35:35
add haiku support
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index 5bb176f..1a841a2 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -26,9 +26,9 @@ extern "C" fn os_handler(_: nix::libc::c_int) { } } -// pipe2(2) is not available on macOS or iOS, so we need to use pipe(2) and fcntl(2)...
1
3
3
93583f0614079008b3289e2fceb2ce0b2c154dc4
Taiki Endo
2022-08-14T13:56:15
Update nix to 0.25
diff --git a/Cargo.toml b/Cargo.toml index 6a21949..cb54e0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" readme = "README.md" [target.'cfg(unix)'.dependencies] -nix = { version = "0.24", default-features = false, features = ["fs", "signal"]} +nix = { version = "0.25", default-features...
1
1
1
64d1d931452082d98cbfa01e5d6ee16819053cfc
Johnathan Sharratt
2021-10-16T09:01:40
Fixed two warnings in the build
diff --git a/src/lib.rs b/src/lib.rs index ff18026..8b56a8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,7 @@ pub fn set_handler<F>(mut user_handler: F) -> Result<(), Error> where F: FnMut() -> () + 'static + Send, { - if INIT.compare_and_swap(false, true, Ordering::SeqCst) { + if INIT.compare_exc...
2
2
1
f585c8940efaf1fa7451b00fdcffe0fdf43c615a
Antti Keränen
2022-04-23T18:49:13
Release 3.2.2
diff --git a/Cargo.toml b/Cargo.toml index a9b363b..6a21949 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.1" +version = "3.2.2" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
59e1ab0ce628dc7c535d380e7e1151bc968d7726
Ryan Zoeller
2022-04-21T03:15:33
Upgrade nix to 0.24, limit features This reduces compilation time slightly, and removes the memoffset crate as an indirect dependency.
diff --git a/Cargo.toml b/Cargo.toml index 640bd13..a9b363b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" readme = "README.md" [target.'cfg(unix)'.dependencies] -nix = "0.23" +nix = { version = "0.24", default-features = false, features = ["fs", "signal"]} [target.'cfg(windows)'.dep...
1
1
1
d21a0e515bee3a17ba3db5109914c49ae2d605b7
Antti Keränen
2021-10-06T19:39:27
Release 3.2.1
diff --git a/Cargo.toml b/Cargo.toml index 0305626..640bd13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.2.0" +version = "3.2.1" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
7535c9306557ef69bc07401ba653aa5d7d625e2f
Joe Ranweiler
2021-09-30T22:11:15
Update `nix` dep to 0.23
diff --git a/Cargo.toml b/Cargo.toml index 327e8fa..0305626 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" readme = "README.md" [target.'cfg(unix)'.dependencies] -nix = "0.22" +nix = "0.23" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["consoleapi", "h...
1
1
1
a79a122aae27abc316212b328708fe9617e55f76
Antti Keränen
2021-08-10T19:45:10
Update documentation
diff --git a/src/lib.rs b/src/lib.rs index e3cec83..ff18026 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,9 +40,9 @@ //! } //! ``` //! -//! # Handling SIGTERM -//! Handling of `SIGTERM` can be enabled with `termination` feature. If this is enabled, -//! the handler specified by `set_handler()` will be executed for...
2
5
5
75cc933bbad7a1948ae6e077741d787c005c90f3
Antti Keränen
2021-08-10T18:57:35
Release 3.2.0
diff --git a/Cargo.toml b/Cargo.toml index ec462a4..327e8fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.9" +version = "3.2.0" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
4c23810b1b4b43f5c5f69c33513e2452feccca54
Francesco Zardi
2021-08-05T15:54:04
Bump nix to 0.22
diff --git a/Cargo.toml b/Cargo.toml index b89a92c..ec462a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" readme = "README.md" [target.'cfg(unix)'.dependencies] -nix = "0.20" +nix = "0.22" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["consoleapi", "h...
2
2
2
18da3999e0559727ceffcd11c579284960a8a6f7
r00ster91
2021-06-08T11:07:12
Check for SIGHUP
diff --git a/src/platform/unix/mod.rs b/src/platform/unix/mod.rs index d0eadcf..2d1b5a0 100644 --- a/src/platform/unix/mod.rs +++ b/src/platform/unix/mod.rs @@ -99,17 +99,27 @@ pub unsafe fn init_os_handler() -> Result<(), Error> { signal::SigSet::empty(), ); - let _old = match signal::sigaction(sign...
1
16
6
e53b163925c3e7176a60e245b881c15ea37b1332
Antti Keränen
2021-04-13T09:44:20
Release 3.1.9
diff --git a/Cargo.toml b/Cargo.toml index d7f3d96..b89a92c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.8" +version = "3.1.9" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
13ea34661cd25c61528bd6c2a7beee7a2337ab0a
Philipp Schuster
2021-04-11T21:35:26
add README to Cargo.toml
diff --git a/Cargo.toml b/Cargo.toml index a7f6da6..d7f3d96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] edition = "2018" +readme = "README.md" [target.'cfg(unix)'.dependenc...
1
1
0
1870f133f0794911b4da9bb69a0d1f4ad936b290
Antti Keränen
2021-02-23T05:50:43
Release 3.1.8
diff --git a/Cargo.toml b/Cargo.toml index 07369b7..a7f6da6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.7" +version = "3.1.8" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
8c46fb49cfafece0c267210c3e9a8f176e76c86a
printfn
2020-10-26T08:22:43
Update nix to 0.20
diff --git a/Cargo.toml b/Cargo.toml index 0894fa3..07369b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ exclude = ["/.travis.yml", "/appveyor.yml"] edition = "2018" [target.'cfg(unix)'.dependencies] -nix = "0.18" +nix = "0.20" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", featu...
1
1
1
f9de9565ad29d91c567071f9ed8018113227d12a
Antti Keränen
2020-10-11T19:46:25
Release 3.1.7
diff --git a/Cargo.toml b/Cargo.toml index 09bd968..9557b09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.6" +version = "3.1.7" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
44401140b52f60c1fd3c4d776443d46e5e3a4211
printfn
2020-10-01T22:40:02
Update nix to 0.18
diff --git a/Cargo.toml b/Cargo.toml index 28766a7..09bd968 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] [target.'cfg(unix)'.dependencies] -nix = "0.17" +nix = "0.18" [target.'cfg(windows)'.dependenc...
2
40
2
405431ffe732aa42aa1bab8172d68c209cecdf56
Antti Keränen
2020-07-29T09:51:28
Release 3.1.6
diff --git a/Cargo.toml b/Cargo.toml index 7cf093a..28766a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.5" +version = "3.1.6" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
bf08402d60b9957ffa9e004a57bef06ebc4e04fb
robojumper
2020-07-29T09:23:13
Fix unconditional recursion in <ctrlc::Error as fmt::Display>::fmt
diff --git a/src/error.rs b/src/error.rs index ccb8268..cc01b80 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,6 +12,16 @@ pub enum Error { System(std::io::Error), } +impl Error { + fn describe(&self) -> &str { + match *self { + Error::NoSuchSignal(_) => "Signal could not be found from...
1
12
6
b21c43c8f92bdd10b0bf4853f61f273980f810bf
Antti Keränen
2020-07-11T17:14:55
Release 3.1.5 - Change set_handler from Fn to FnMut
diff --git a/Cargo.toml b/Cargo.toml index 9828cfd..7cf093a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.4" +version = "3.1.5" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
503a889833f76f2c19b0bf96dc1daca75ec1bfb2
Antti Keränen
2020-07-11T17:12:51
Remove use of deprecated function std::error::Error::description() is deprecated.
diff --git a/src/error.rs b/src/error.rs index 0461d18..ccb8268 100644 --- a/src/error.rs +++ b/src/error.rs @@ -21,8 +21,7 @@ impl From<::platform::Error> for Error { impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use std::error::Error; - write!(f, "Ctrl-C ...
1
1
2
e010829625fd55126c7a8f8b658770ace13d41ea
Antti Keränen
2020-07-11T17:11:55
Change set_handler from Fn to FnMut Closes #59
diff --git a/src/lib.rs b/src/lib.rs index bcc2411..c59068d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,9 +86,9 @@ static INIT: AtomicBool = AtomicBool::new(false); /// # Panics /// Any panic in the handler will not be caught and will cause the signal handler thread to stop. /// -pub fn set_handler<F>(user_handl...
1
2
2
b5a445edfcec3c9cf0b71a9700f60a7f5321da6d
Antti Keränen
2020-02-17T15:20:21
Release 3.1.4 - Upgrade nix dependency - Add crates.io category
diff --git a/Cargo.toml b/Cargo.toml index 5d7bfff..9828cfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.3" +version = "3.1.4" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
d2535978653d4105d28d6cba3da5e946f3da6c33
Antti Keränen
2020-02-12T07:57:14
Update to latest nix version
diff --git a/Cargo.toml b/Cargo.toml index a19b29e..5d7bfff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] [target.'cfg(unix)'.dependencies] -nix = "0.15" +nix = "0.17" [target.'cfg(windows)'.dependenc...
1
1
1
62da170e8d63fecc740cefe7ebe354cf78ffbca7
Kornel
2020-01-28T00:04:53
Update nix dependency
diff --git a/Cargo.toml b/Cargo.toml index 8df4bd0..0c885a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,14 +11,14 @@ repository = "https://github.com/Detegr/rust-ctrlc.git" exclude = ["/.travis.yml", "/appveyor.yml"] [target.'cfg(unix)'.dependencies] -nix = "0.14" +nix = "0.15" [target.'cfg(windows)'.depende...
1
2
2
9a358e79264fda64da869f7e6d5825761bb35861
Kornel
2020-01-28T00:02:31
Add crates-io category
diff --git a/Cargo.toml b/Cargo.toml index 8df4bd0..ccb705c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.github.io/doc/ctrlc" homepage = "https://github.com/Detegr/rust-ctrlc" keywords = ["ctrlc", "signal", "SIGINT"] +ca...
1
1
0
e17f2886cd5c3bf69da506cd13fef0ca5ac7ec93
Antti Keränen
2019-06-06T06:38:18
Release 3.1.3 - Upgraded nix dependency to fix builds on ARM - Add name to the thread for better debugging
diff --git a/Cargo.toml b/Cargo.toml index 23e1510..8df4bd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "3.1.2" +version = "3.1.3" authors = ["Antti Keränen <detegr@gmail.com>"] description = "Easy Ctrl-C handler for Rust projects" documentation = "http://detegr.git...
1
1
1
f5054a2c04dc9faebe7a8fef914ef9c5348878e1
Antti Keränen
2019-06-06T06:34:05
Fix warnings
diff --git a/src/error.rs b/src/error.rs index 1027496..0461d18 100644 --- a/src/error.rs +++ b/src/error.rs @@ -35,7 +35,7 @@ impl std::error::Error for Error { } } - fn cause(&self) -> Option<&std::error::Error> { + fn cause(&self) -> Option<&dyn std::error::Error> { match *self { ...
2
7
5
eaca043b6ddb493bdace5bc80b23b328227f4fd2
Antti Keränen
2019-06-06T05:40:12
Run rustfmt
diff --git a/examples/issue_46_example.rs b/examples/issue_46_example.rs index 057db58..f703c18 100644 --- a/examples/issue_46_example.rs +++ b/examples/issue_46_example.rs @@ -15,7 +15,8 @@ fn main() { } else { process::exit(0); } - }).expect("Error setting Ctrl-C handler"); + }) +...
1
2
1
e4684578fe3cd0e444691752019371e05ad99e39
Pierre Krieger
2019-05-26T19:36:28
Add a name to the thread
diff --git a/src/lib.rs b/src/lib.rs index a0c0184..bcc2411 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,12 +104,15 @@ where } } - thread::spawn(move || loop { - unsafe { - platform::block_ctrl_c().expect("Critical system error while waiting for Ctrl-C"); - } - use...
1
9
6
5e71579e7b215b4a5a1617bfba1f815af2f09184
Vivek Kushwaha
2019-05-26T14:38:25
bump nix to 0.14 nix 0.14 contains fix for nix-rust/nix#1057
diff --git a/Cargo.toml b/Cargo.toml index 2dc06d9..9220fb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" [target.'cfg(unix)'.dependencies] -nix = "0.13" +nix = "0.14" [target.'cfg(windows)'.dependencies] winapi = { ...
1
1
1
3437871c1d5b848d98e821457e86a39232ee76cc
Igor Gnatenko
2019-04-24T06:35:19
exclude unneeded files from crates.io
diff --git a/Cargo.toml b/Cargo.toml index 2dc06d9..b207070 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ homepage = "https://github.com/Detegr/rust-ctrlc" keywords = ["ctrlc", "signal", "SIGINT"] license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" +exclude = ["/.travis.yml"...
1
1
0
badc310f86fb5f71a71caae57665310e87a08704
Antti Keränen
2019-04-23T12:42:20
Release 3.1.2 - Upgraded nix dependency - Removed deprecated usages of ATOMIC_BOOL_INIT - Removed contributors from authors field - Formatted with latest rustfmt - Fixes #46 by including an example
diff --git a/Cargo.toml b/Cargo.toml index d61e973..2dc06d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ctrlc" -version = "3.1.1" -authors = ["Antti Keränen <detegr@gmail.com>", "nabijaczleweli <nabijaczleweli@gmail.com>", "Henning Ottesen <henning@live.no>", "Peter Atashian <retep998@g...
2
28
2
2d2158a4a65e49236c3b751fabf04a005b93ce8e
kpcyrd
2019-04-22T16:33:15
Fix nix build failure on openbsd
diff --git a/Cargo.toml b/Cargo.toml index 5536601..d61e973 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" [target.'cfg(unix)'.dependencies] -nix = "0.11" +nix = "0.13" [target.'cfg(windows)'.dependencies] winapi = { ...
2
3
3
20edfdc35ca3da00566ea5e6698e2585f8ebdecc
Hannu Hartikainen
2019-04-15T10:05:37
Reformat code to pass rustfmt
diff --git a/examples/readme_example.rs b/examples/readme_example.rs index 7a45d0c..3519798 100644 --- a/examples/readme_example.rs +++ b/examples/readme_example.rs @@ -18,7 +18,8 @@ fn main() { let r = running.clone(); ctrlc::set_handler(move || { r.store(false, Ordering::SeqCst); - }).expect("Er...
2
4
2
0ba5f4b71160039c43d65c1a5d4adf2d5bc63dc7
Antti Keränen
2018-11-15T19:32:48
Run rustfmt
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs index 4745af5..6cfdd5e 100644 --- a/src/platform/windows/mod.rs +++ b/src/platform/windows/mod.rs @@ -15,7 +15,7 @@ use self::winapi::shared::ntdef::HANDLE; use self::winapi::um::consoleapi::SetConsoleCtrlHandler; use self::winapi::um::handleapi::...
1
1
1
0aa0beb7dd83d15e4e6243f7ae6b602aedce26a5
Antti Keränen
2018-06-04T13:46:09
Release 3.1.1
diff --git a/Cargo.toml b/Cargo.toml index a6b02ac..5536601 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctrlc" -version = "4.0.0" +version = "3.1.1" authors = ["Antti Keränen <detegr@gmail.com>", "nabijaczleweli <nabijaczleweli@gmail.com>", "Henning Ottesen <henning@live.no>", "Peter A...
1
1
1
59e7905db09c9674fdabaa1d231eec3dd0b8755e
kpcyrd
2018-06-04T01:52:02
Fix build on openbsd 6.3
diff --git a/Cargo.toml b/Cargo.toml index 3641028..a6b02ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT/Apache-2.0" repository = "https://github.com/Detegr/rust-ctrlc.git" [target.'cfg(unix)'.dependencies] -nix = "0.10" +nix = "0.11" [target.'cfg(windows)'.dependencies] winapi = { ...
1
1
1
01d4a8c8ae3adbee3bf7f2166c54814af88d01e9
Antti Keränen
2018-06-04T05:54:58
Format source with rustfmt
diff --git a/src/tests.rs b/src/tests.rs index 1b6b7b9..359c20d 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -135,9 +135,9 @@ mod platform { } unsafe fn get_stdout() -> io::Result<HANDLE> { - use self::winapi::um::winnt::{FILE_SHARE_WRITE, GENERIC_READ, GENERIC_WRITE}; use self::winapi::u...
1
1
1
899c131dc21e20930cf936d9acdef90642b54314
Antti Keränen
2018-04-19T19:30:22
Format code with latest rustfmt
diff --git a/examples/readme_example.rs b/examples/readme_example.rs index 8b679af..7a45d0c 100644 --- a/examples/readme_example.rs +++ b/examples/readme_example.rs @@ -8,8 +8,8 @@ // according to those terms. extern crate ctrlc; -use std::sync::Arc; use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::A...
5
8
8
6907cafc0193d2405ec8d2fce3fbd63b1ad28759
debris
2018-04-12T12:08:24
fixed rustfmt test failure
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs index ea01537..0b2818c 100644 --- a/src/platform/windows/mod.rs +++ b/src/platform/windows/mod.rs @@ -15,7 +15,7 @@ use self::winapi::shared::ntdef::HANDLE; use self::winapi::um::consoleapi::SetConsoleCtrlHandler; use self::winapi::um::handleapi::...
2
6
6
8e1c682ffdabe92cfee58753e5c554654ad9be17
debris
2018-04-11T14:38:39
Update winapi to 0.3.4
diff --git a/Cargo.toml b/Cargo.toml index 5f1e190..3641028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,11 +13,11 @@ repository = "https://github.com/Detegr/rust-ctrlc.git" nix = "0.10" [target.'cfg(windows)'.dependencies] -winapi = "0.2" - -[dependencies] -kernel32-sys = "0.2" +winapi = { version = "0.3", feat...
3
41
35
3a768ed718022885c150c6f3b9d3342c5fa8cb52
Antti Keränen
2017-09-21T14:43:38
Prepare for counter and channel implementations Implement platform specific error and signal types
diff --git a/Cargo.toml b/Cargo.toml index 05ebec5..5f1e190 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,12 @@ [package] - name = "ctrlc" -version = "3.1.0" +version = "4.0.0" authors = ["Antti Keränen <detegr@gmail.com>", "nabijaczleweli <nabijaczleweli@gmail.com>", "Henning Ottesen <henning@live.no>", "Pet...
7
74
32
485f893f851eb3eb74ba32182a579c0faf10fd94
Josh Stone
2018-02-27T07:58:32
Update to nix 0.10
diff --git a/Cargo.toml b/Cargo.toml index bcd85a8..05ebec5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ homepage = "https://github.com/Detegr/rust-ctrlc" repository = "https://github.com/Detegr/rust-ctrlc.git" [target.'cfg(unix)'.dependencies] -nix = "0.9" +nix = "0.10" [target.'cfg(windows)'.depe...
2
9
5
f6bcf755cf54e2f579bd41ab17804c5f81f83211
Antti Keränen
2018-01-14T20:03:47
Release 3.1.0
diff --git a/Cargo.toml b/Cargo.toml index 2afe9d2..bcd85a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ctrlc" -version = "3.0.3" +version = "3.1.0" authors = ["Antti Keränen <detegr@gmail.com>", "nabijaczleweli <nabijaczleweli@gmail.com>", "Henning Ottesen <henning@live.no>", "Peter...
1
1
1
9ca79b11e7d77d004ba94a3ddef32d1ba10458b3
Igor Gnatenko
2018-01-04T22:52:45
deps: update nix to 0.9 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 07f1268..2afe9d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ homepage = "https://github.com/Detegr/rust-ctrlc" repository = "https://github.com/Detegr/rust-ctrlc.git" [target.'cfg(unix)'.dependencies] -nix = "0.8" +nix = "0.9" [target.'cfg(windows)'.depen...
2
13
5
03ec945c7ba22fc68b2233e9643798e13ad863d3
equal-l2
2018-01-13T12:01:44
Separate dependencies
diff --git a/Cargo.toml b/Cargo.toml index ce262ed..07f1268 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,10 @@ documentation = "http://detegr.github.io/doc/ctrlc" homepage = "https://github.com/Detegr/rust-ctrlc" repository = "https://github.com/Detegr/rust-ctrlc.git" -[dependencies] +[target.'cfg(unix)'.d...
1
3
1
186b0d1a6be7ba58f723be4231a094d4de67f2ee
equal-l2
2018-01-13T11:44:11
Fix build on windows
diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 09c9158..669bf5b 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -10,7 +10,7 @@ extern crate kernel32; extern crate winapi; -use super::Error; +use error::Error; use self::winapi::{c_long, BOOL, DWORD, FALSE, HANDLE, TRUE}; ...
1
1
1
c952683c0e29c055bfe1d8a20d6e962bc62ecd1e
Antti Keränen
2018-01-09T11:36:11
Fix code formatting
diff --git a/examples/readme_example.rs b/examples/readme_example.rs index 256fd7f..d31bc9d 100644 --- a/examples/readme_example.rs +++ b/examples/readme_example.rs @@ -16,8 +16,9 @@ use std::time::Duration; fn main() { let running = Arc::new(AtomicBool::new(true)); let r = running.clone(); - ctrlc::set_h...
4
19
20