xshell-macros
Private implementation detail of xshell crate
0.2.7
19M downloads/mo
#2137 most downloaded on crates.io
matklad/xshell
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 9 months
Most releases are documented
notes for 21 of 25 stable releases
1 version withdrawn
withdrawn after publishing
6 years old
29 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
29 releases · Oct 2020 to Dec 2024Releases
latest 29-
0.3.0-pre.223 Dec 2024 pre-releaseRelease notes
Open source →A major release with significant changes to the API:
- Interior mutability and references are removed. Both
CmdandShellare now values. pushd-style API are removed in favor ofShell-returning functional builders likewith_current_dir.- Split
copy_fileintocopy_fileandcopy_file_to_dir, removing auto-magical directory detection. - Remove fine-grained control of stdin streams from
Cmd. Instead:- There's a menu of
run,run_echo,run_interactive,readthat generally try to do the right thing. runno longer echoes the command by default,run_echodoes that.- The error messages now carry last 128KiB of stdout/stderr and print them on error.
- There's
to_commandmethod for converting tostd::process::Commandwhich does allow for fine grained control.
- There's a menu of
- Support for timeouts.
- MSRV is raised to 1.73.0.
- Interior mutability and references are removed. Both
-
0.3.0-pre.123 Dec 2024 pre-releaseNothing published for this version
-
0.2.716 Nov 2024 -
0.2.628 Mar 2024 -
0.2.511 Jul 2023 -
0.2.411 Jul 2023 withdrawnNothing published for this version
-
0.2.314 Dec 2022Release notes
Open source →61: fix run ignoring stdin r=matklad a=matklad
bors r+
🤖Co-authored-by: Aleksey Kladov [email protected]
-
0.2.208 Jun 2022Release notes
Open source →56: Add path_exists r=lnicola a=azdavis
Just returns whether the path exists.
Co-authored-by: Ariel Davis [email protected]
-
0.2.116 Mar 2022Release notes
Open source →55: remove_path is idempotent r=lnicola a=matklad
Co-authored-by: Aleksey Kladov [email protected]
Release notes
Open source →Shell::remove_pathreturnsOkif the path does not exist (ie the function is now idempotent).
-
0.2.013 Mar 2022Release notes
Open source →51: Fix pre-release publishing r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov [email protected]
Release notes
Open source →A major release with significant changes to the API:
- All global state is removed in favor of explicitly passing a
Shellinstance. - Some methods are renamed to better match Rust naming conventions.
- New APIs for controlling working directory and environment.
- MSRV is raised to 1.59.0.
- Improved reliability across the board: the crate aims to become a dependable 1.0 tool in the future (no ETA).
- This is expected to be the last large API reshuffle.
- All global state is removed in favor of explicitly passing a
-
0.2.0-pre.113 Mar 2022 pre-releaseRelease notes
Open source → -
0.1.1704 Sep 2021Release notes
Open source →- Allow panics to transparently pass through xshell calls. This removes some internal lock poisoned errors.
-
0.1.1604 Sep 2021 -
0.1.1501 Sep 2021 -
0.1.1429 May 2021 -
0.1.1321 May 2021 -
0.1.1209 May 2021 -
0.1.1107 May 2021Release notes
Open source →write_filenow creates the intervening directory path if it doesn't exit.
-
0.1.1026 Apr 2021 -
0.1.901 Mar 2021Release notes
Open source →mktemp_dcreates an (insecure, world readable) temporary directory.- Fix cp docs.
-
0.1.817 Dec 2020Release notes
Open source →- Add option to not echo command at all.
- Add option to censor command contents when echoing.
- Add docs.
-
0.1.711 Dec 2020Release notes
Open source →cp(foo, bar)copiesfoointobar, ifbaris an existing directory.- Tweak reading API.
-
0.1.619 Oct 2020Release notes
Open source →.read()chomps\r\non Windows.- Prevent cwd/env races when using
.read()or.run(). - Better spans in error messages.
-
0.1.517 Oct 2020 -
0.1.417 Oct 2020 -
0.1.317 Oct 2020Nothing published for this version
-
0.1.217 Oct 2020Nothing published for this version
-
0.1.117 Oct 2020Nothing published for this version
-
0.1.017 Oct 2020Nothing published for this version