pub fn set_target_platform(&mut self, target_platform: impl Into<PlatformSpec>) -> &mut Self {
        self.target_platform = target_platform.into();
        self
    }
Sets the target platform to the provided spec.
guppy/src/graph/cargo/cargo_api.rs