MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / main

Function main

xtask/src/main.rs:8–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6use crate::extract_llfns::extract_llfns;
7
8fn main() -> Result<(), Box<dyn Error>> {
9 let mut args = Arguments::from_env();
10 let sub = args.subcommand()?.unwrap_or_default();
11
12 match sub.as_str() {
13 "extract_llfns" => {
14 let arg1 = args.free_from_str::<String>()?;
15 let file = Path::new(&arg1);
16 let arg2 = args.free_from_str::<String>()?;
17 let dir = Path::new(&arg2);
18 args.finish();
19 extract_llfns(file, dir);
20 Ok(())
21 }
22 _ => panic!("Unknown command, available: `extract_llfns`"),
23 }
24}

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
extract_llfnsFunction · 0.85

Tested by

no test coverage detected