pub fn from_sdk_env() -> Result<Self> {
        let sdk_tool_dir = match read_env_path("TOOL_DIR") {
            Ok(dir) => dir,
            _ => get_fuchsia_sdk_tools_dir()?,
        };

        Ok(Self {
            // prebuilt binaries that can be optionally fetched from cipd.
            aemu: PathBuf::new(),
            grpcwebproxy: PathBuf::new(),
            vdl: PathBuf::new(),
            // in-tree tools that are packaged with GN SDK.
            far: Some(sdk_tool_dir.join("far")),
            ffx: Some(sdk_tool_dir.join("ffx")),
            fvm: Some(sdk_tool_dir.join("fvm")),
            pm: Some(sdk_tool_dir.join("pm")),
            zbi: sdk_tool_dir.join("zbi"),
            is_sdk: true,
        })
    }
/// Initialize host tools for GN SDK usage.
///
/// First check the existence of environment variable TOOL_DIR, if not specified
/// look for host tools in the program's containing directory.
Initialize host tools for GN SDK usage.
First check the existence of environment variable TOOL_DIR, if not specified
look for host tools in the program's containing directory.
Initialize host tools for GN SDK usage . First check the existence of environment variable TOOL_DIR if not specified look for host tools in the program ' s containing directory .
pub fn from_sdk_env() -> Result<Self> {
        let sdk_tool_dir = match read_env_path("TOOL_DIR") {
            Ok(dir) => dir,
            _ => get_fuchsia_sdk_tools_dir()?,
        };
        Ok(Self {
            // prebuilt binaries that can be optionally fetched from cipd.
            aemu: PathBuf::new(),
            grpcwebproxy: PathBuf::new(),
            vdl: PathBuf::new(),
            // in-tree tools that are packaged with GN SDK.
            far: Some(sdk_tool_dir.join("far")),
            ffx: Some(sdk_tool_dir.join("ffx")),
            fvm: Some(sdk_tool_dir.join("fvm")),
            pm: Some(sdk_tool_dir.join("pm")),
            zbi: sdk_tool_dir.join("zbi"),
            is_sdk: true,
        })
    }
pub fn from_sdk_env ( ) -> Result < Self > { let sdk_tool_dir = match read_env_path ( " " ) { Ok ( dir ) => dir , _ => get_fuchsia_sdk_tools_dir ( ) ? , } ; Ok ( Self { // prebuilt binaries that can be optionally fetched from cipd. aemu : PathBuf :: new ( ) , grpcwebproxy : PathBuf :: new ( ) , vdl : PathBuf :: new ( ) , // in-tree tools that are packaged with GN SDK. far : Some ( sdk_tool_dir . join ( " " ) ) , ffx : Some ( sdk_tool_dir . join ( " " ) ) , fvm : Some ( sdk_tool_dir . join ( " " ) ) , pm : Some ( sdk_tool_dir . join ( " " ) ) , zbi : sdk_tool_dir . join ( " " ) , is_sdk : true , } ) }
Initialize host tools for GN SDK usage.
Initialize host tools for GN SDK usage .