Skip to main content

handle_runtime_command

Function handle_runtime_command 

Source
pub fn handle_runtime_command(
    verb: &str,
    config: &mut ServeConfig,
    repo_root: Option<&Path>,
    binary_dir: Option<&Path>,
) -> Result<String, &'static str>
Expand description

Dispatches a runtime command against the direct Rust runtime implementation.

§Parameters

§Returns

Returns the successful value produced by crate::binaries::handle_runtime_command or an error when the operation fails.

§Errors

Returns an error value when crate::binaries::handle_runtime_command cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::binaries::handle_runtime_command(todo!(), todo!(), std::path::Path::new("."), std::path::Path::new("bin"));
  • crate::binaries for adjacent helpers that share the same runtime surface.