Commit Graph

22 Commits

Author SHA1 Message Date
Taiki Endo 7980b4696a Reduce syscalls in blocking_fd 2022-12-30 13:43:50 +09:00
Taiki Endo 93be5c2506 Replace direct dependency on libc with rustix 2022-12-30 13:43:50 +09:00
John Nunley de1071784e
Port to windows-sys (#27) 2022-11-26 21:14:01 -08:00
John Nunley a44d0b418a
Port from once-cell to async-lock (#26) 2022-11-27 12:43:59 +09:00
John Nunley 8dda23e06b
Add `AsRawFd`/`AsFd` to the `ChildStd*` types (#23)
* add asrawfd/asfd impls

* fmt
2022-08-17 17:42:17 -07:00
Alexander Berger 870cd2dc1f Impl From<std::process::Command> for Command
Allow creating Command from std::process::Command, similar to
what tokio::process::Command supports.
2022-01-27 20:46:09 +01:00
Jesse Luehrs afff8c533d don't unconfigure stdio streams on spawn 2021-12-30 22:13:17 -05:00
Paul Colomiets 378b8ac11a Improve debug implementation of `Command`
In normal mode `Debug` now prints just the command-line (similarly to
`std::process::Command`). This is useful for logging commands and
formatting error messages that includes command-line.

In "alternate" mode full internals of this structure are still printed.
2021-10-11 16:54:12 +03:00
Taiki Endo 4831e3cbb9 Fix format of syscall macro 2021-04-24 17:45:09 +09:00
BinCheng 7d9dc0b914
Adding the `into_stdio` make async-process more flexible. (#13) 2021-04-24 17:39:11 +09:00
Jayce Fayne afbc34d070 fix clippy warnings 2021-04-17 14:18:59 +02:00
Alexandru Macovei 6ea203d787 Fix Child::output to avoid killing the subprocess early when kill_on_drop is given 2021-01-31 22:43:19 +02:00
Taiki Endo 6a0916d1d1 Fix Command::output example 2021-01-16 19:29:23 +09:00
Wesley Merkel ae865efb27 Update signal-hook to version 0.3.0
The dependency on version v0.1.16 of signal-hook makes this library
impossible to use in a project alongside signal-hook version v0.3.0.
This is caused by an arguably incorrect dependency from signal-hook
v0.1.16 on `~1.2` of signal-hook-registry (I think it should just depend
on `^1.2` instead), however it seemed more beneficial overall to upgrade
this crate's dependency instead.
2020-12-25 05:05:12 -06:00
Stjepan Glavina 974c3cc080 Update futures-lite 2020-10-09 14:37:51 +02:00
Stjepan Glavina 3965add776 Remove let _ pattern 2020-09-13 13:52:26 +02:00
Stjepan Glavina 3acf5fcafa Bump to v0.1.3 2020-08-26 23:27:37 +02:00
Stjepan Glavina 056879ddf5 Add platform-specific extensions 2020-08-22 16:32:49 +00:00
Stjepan Glavina e1ab1d31c1 Add reap_on_drop and kill_on_drop 2020-08-22 16:12:15 +00:00
Stjepan Glavina 377e658288 Don't reap the child while there's a Child instance 2020-08-20 19:47:23 +00:00
Stjepan Glavina 71d3dfcbab Initial version 2020-08-19 13:34:03 +00:00
Stjepan Glavina 251ab32f59 Initial commit 2020-08-18 20:19:25 +00:00