pub struct SupportedTarget {
pub archs: Vec<String>,
pub default_deployment_target: String,
pub default_variant: Option<String>,
pub deployment_target_setting_name: Option<String>,
pub minimum_deployment_target: String,
pub platform_family_name: Option<String>,
pub valid_deployment_targets: Vec<String>,
}
Expand description
Represents a SupportedTargets value in a SDKSettings.json file.
Fields§
§archs: Vec<String>
Names of machine architectures that can be targeted.
e.g. x86_64
, arm64
, arm64e
.
default_deployment_target: String
Default deployment target version.
Likely corresponds to the OS version this SDK is associated with.
e.g. the macOS 12.3 SDK would target 12.3
by default.
default_variant: Option<String>
The name of the settings variant to use by default.
deployment_target_setting_name: Option<String>
The name of the toolchain setting that influences which deployment target version is used.
e.g. on macOS this will be MACOSX_DEPLOYMENT_TARGET
. This represents an
environment variable that can be set to influence which deployment target
version to use.
minimum_deployment_target: String
The lowest version of a platform that this SDK can target.
Using this SDK, it is possible to emit code that will support running
down to the OS version specified by this value. e.g. 10.9
is a
common value for macOS SDKs.
platform_family_name: Option<String>
A name given to the platform.
e.g. macOS
.
valid_deployment_targets: Vec<String>
List of platform versions that this SDK can target.
This is likely a range of all major versions between minimum_deployment_target
and default_deployment_target
.
Implementations§
Source§impl SupportedTarget
impl SupportedTarget
Sourcepub fn deployment_targets_versions(&self) -> Vec<SdkVersion>
pub fn deployment_targets_versions(&self) -> Vec<SdkVersion>
Obtain SdkVersion for each deployment target this target supports.
Trait Implementations§
Source§impl Clone for SupportedTarget
impl Clone for SupportedTarget
Source§fn clone(&self) -> SupportedTarget
fn clone(&self) -> SupportedTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more