Skip to main content

handle_serve

Function handle_serve 

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

Dispatches the direct serve boundary for app or shared runtime targets.

§Parameters

§Returns

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

§Errors

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

§Examples

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