Function wdk_build::cargo_make::load_rust_driver_makefile
source · pub fn load_rust_driver_makefile() -> Result<(), ConfigError>
Expand description
Symlinks rust-driver-toolchain.toml
to the target
folder where it can be
extended from a Makefile.toml
. This is necessary so that paths in the
rust-driver-toolchain.toml
can to be relative to
CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY
§Errors
This function returns:
ConfigError::CargoMetadataError
if there is an error executing or parsingcargo_metadata
ConfigError::MultipleWDKBuildCratesDetected
if there are multiple versions of the WDK build crate detectedConfigError::IoError
if there is an error creating or updating the symlink torust-driver-toolchain.toml
§Panics
This function will panic if the CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY
environment variable is not set