Add dedicated target_dir field to CargoConfig and FlycheckConfig

Add dedicated field for `target_dir` in the configurations for Cargo
and Flycheck. Also change the directory to be a `PathBuf` as opposed to
a `String` to be more appropriate to the operating system.
This commit is contained in:
Victor Song 2023-09-30 21:02:12 -05:00
parent aeef7b644b
commit 53b6700594
4 changed files with 54 additions and 68 deletions

View file

@ -96,6 +96,8 @@ pub struct CargoConfig {
pub extra_env: FxHashMap<String, String>,
pub invocation_strategy: InvocationStrategy,
pub invocation_location: InvocationLocation,
/// Optional path to use instead of `target` when building
pub target_dir: Option<PathBuf>,
}
pub type Package = Idx<PackageData>;