Commit Graph

113 Commits

Author SHA1 Message Date
John Nunley de1071784e
Port to windows-sys (#27) 2022-11-26 21:14:01 -08:00
Taiki Endo f835f75f39 Fix build failure with minimal-versions 2022-11-27 13:31:38 +09:00
Taiki Endo e1d6664e5a Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-11-27 13:31:38 +09:00
John Nunley a44d0b418a
Port from once-cell to async-lock (#26) 2022-11-27 12:43:59 +09:00
Taiki Endo 115741b59a Update changelog 2022-08-21 18:25:48 +09:00
Taiki Endo 00f30f09e2 Release 1.5.0 2022-08-21 18:24:34 +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
Taiki Endo d9b78cb400 Fix clippy::needless_return warning in test
```
warning: unneeded `return` statement
  --> tests/std.rs:80:5
   |
80 |     return ret;
   |     ^^^^^^^^^^^ help: remove `return`: `ret`
   |
   = note: `#[warn(clippy::needless_return)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
```
2022-07-17 21:32:20 +09:00
Taiki Endo fbc300608c Fix clippy::single_match warning in test
```
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
  --> tests/std.rs:26:5
   |
26 | /     match Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() {
27 | |         Ok(..) => panic!(),
28 | |         Err(..) => {}
29 | |     }
   | |_____^ help: try this: `if let Ok(..) = Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() { panic!() }`
   |
   = note: `#[warn(clippy::single_match)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
```
2022-07-17 21:31:38 +09:00
Taiki Endo bffd4efe40 Apply clippy to all targets 2022-07-17 21:21:19 +09:00
Taiki Endo a23f4dc38e Update CI config 2022-07-08 02:35:56 +09:00
Taiki Endo 2e0881f64d Bump to v1.4.0 2022-05-01 13:57:48 +09:00
Taiki Endo f8c34c49ef Update actions/checkout action to v3 2022-05-01 13:51:49 +09:00
Taiki Endo 9a3fc54342
Merge pull request #21 from alex-berger/master
Impl From<std::process::Command> for Command
2022-01-28 09:54:35 +09: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
Taiki Endo 69789af2ca Remove rustfmt.toml 2022-01-09 01:25:47 +09:00
Taiki Endo 4661d33dfe Create GitHub release automatically 2022-01-08 22:03:27 +09:00
Taiki Endo 6beffb4373 Clean up CI config 2022-01-08 22:03:15 +09:00
Taiki Endo aa5e6c7cb4
Merge pull request #20 from doy/multiple-spawns
don't unconfigure stdio streams on spawn
2021-12-31 14:31:29 +09:00
Jesse Luehrs afff8c533d don't unconfigure stdio streams on spawn 2021-12-30 22:13:17 -05:00
Taiki Endo 327f176ba4 Bump to v1.3.0 2021-11-10 20:40:38 +09:00
Taiki Endo c8bdbc1de6
Merge pull request #18 from tailhook/better_debug
Improve debug implementation of `Command`
2021-10-11 23:22:26 +09: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 fa4ab47e97 Bump to v1.2.0 2021-08-07 16:51:24 +09:00
Taiki Endo c806438681
Merge pull request #17 from passcod/child/as-raw-handle
Implement AsRawHandle on Child on Windows
2021-07-31 16:39:24 +09:00
Félix Saparelli d91b557db3 Implement AsRawHandle on Child on Windows 2021-07-31 18:45:29 +12:00
Taiki Endo bc9719e64a
Merge pull request #15 from smol-rs/next
Bump to v1.1.0
2021-04-24 17:49:40 +09:00
Taiki Endo 0da238915e Bump to v1.1.0 2021-04-24 17:45:31 +09: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
Taiki Endo 716cc8aa01
Merge pull request #14 from JayceFayne/clippy
fix clippy warnings
2021-04-17 21:29:33 +09:00
Jayce Fayne afbc34d070 fix clippy warnings 2021-04-17 14:18:59 +02:00
Taiki Endo f6782f6f0c
Merge pull request #12 from smol-rs/readme
Remove readme field from Cargo.toml
2021-02-14 19:52:52 +09:00
Taiki Endo e38b5f843a Remove readme field from Cargo.toml 2021-02-14 19:43:45 +09:00
Taiki Endo d953551a8c
Merge pull request #11 from smol-rs/badge
Update license badge to match Cargo.toml
2021-02-14 13:47:50 +09:00
Taiki Endo 90364462a2 Update license badge to match Cargo.toml 2021-02-14 13:38:37 +09:00
Stjepan Glavina 16b78764ae Bump to v0.1.2 2021-02-05 21:03:55 +01:00
Stjepan Glavina 03c6a06099
Merge pull request #10 from alexmaco/kod
Fix Child::output to avoid killing the subprocess early when kill_on_drop is given
2021-02-05 21:03:02 +01: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 fc5959c6f6
Merge pull request #9 from taiki-e/example
Fix Command::output example
2021-01-19 14:28:09 +09:00
Taiki Endo 6a0916d1d1 Fix Command::output example 2021-01-16 19:29:23 +09:00
Taiki Endo b83f51aa7f
Merge pull request #4 from ooesili/update-signal-hook
Update signal-hook to version 0.3.0
2020-12-29 20:01:12 +09:00
Taiki Endo 524d95f1f5
Merge pull request #5 from taiki-e/url
Update URLs
2020-12-26 23:57:11 +09:00
Taiki Endo f17226fcbd Update URLs 2020-12-26 23:47:13 +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
Taiki Endo db789922f7
Merge pull request #3 from taiki-e/ci
Fix CI
2020-12-24 19:11:44 +09:00
Taiki Endo ac961170d3 Fix CI 2020-12-24 19:03:31 +09:00
Stjepan Glavina cc61088311
. 2020-11-30 12:30:03 +01:00
Stjepan Glavina 9e0bcbe22d
Merge pull request #2 from Keruspe/deps
update cfg-if
2020-11-06 16:13:12 +01:00
Marc-Antoine Perennou 166679449d update cfg-if
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-11-06 11:36:48 +01:00