main

Function main 

Source
pub unsafe fn main<I, T>(args: I) -> ExitCode
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

The main entry point for a uv invocation.

§Usage

This entry point is not recommended for external consumption, the uv binary interface is the official public API.

When using this entry point, uv assumes it is running in a process it controls and that the entire process lifetime is managed by uv. Unexpected behavior may be encountered if this entry point is called multiple times in a single process.

§Safety

It is only safe to call this routine when it is known that multiple threads are not running.