creator-tools 0.3.5

Mobile Game Framework
Documentation
use crate::commands::shared::cargo_rustc_command;
use crate::error::*;
use crate::types::*;
use std::path::Path;

pub fn apple_rust_compile(
    target: Target,
    build_target: AppleTarget,
    project_path: &Path,
    profile: Profile,
    features: Vec<String>,
    all_features: bool,
    no_default_features: bool,
) -> Result<()> {
    let cargo = cargo_rustc_command(
        &target,
        project_path,
        &profile,
        &features,
        all_features,
        no_default_features,
        &build_target.into(),
        &[],
    );
    cargo.output_err(true)?;
    Ok(())
}