ProcessBuilder Allow Use of raw_arg
for Command
on specific platforms
#15179
Labels
A-cargo-api
Area: cargo-the-library API and internal code issues
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
rust-lang/rust#29494
rust-lang/rust#92939
Right now when using
ProcessBuilder::exec_with_streaming
, it uses thecmd.arg()
method to build theCommand
which on Windows, does not allow us to pass in args that are in quotes (see the above issues for more information).Steps
No response
Possible Solution(s)
It'd be nice if we could specify if an arg is "raw" or not, or have some other work around.
Notes
I'm using the cargo-quad-apk crate which uses cargo-util for executing a build command. The problem is, if your project has spaces in the name on windows, the Clink-args escape incorrectly and cause the tool to fail to resolve paths.
https://github.com/not-fl3/cargo-quad-apk/blob/8962f68/src/ops/build/compile.rs#L271C13-L271C72
Version
The text was updated successfully, but these errors were encountered: