MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / run_from_env_args

Function run_from_env_args

src/driver.rs:70–81  ·  view source on GitHub ↗

给 bin/api-bypass.rs 调用:从当前进程 env::args 读取

()

Source from the content-addressed store, hash-verified

68
69/// 给 bin/api-bypass.rs 调用:从当前进程 env::args 读取
70pub fn run_from_env_args() -> i32 {
71 let rustc_args = env::args_os()
72 .enumerate()
73 .map(|(i, arg)| {
74 arg.into_string().unwrap_or_else(|arg| {
75 panic!("Argument {} is not valid Unicode: {:?}", i, arg);
76 })
77 })
78 .collect::<Vec<_>>();
79
80 run_with_rustc_args(rustc_args)
81}
82
83/// 可选:兼容旧写法
84pub fn main_like() -> ! {

Callers 2

main_likeFunction · 0.85
mainFunction · 0.85

Calls 1

run_with_rustc_argsFunction · 0.85

Tested by

no test coverage detected