INNER CODE UNIT · Rust

Some

vercel-community/rust · crates/vercel_runtime_macro/src/lib.rs:23

            if let Some(key) = path.get_ident() {
                args_map.insert(key.to_string(), lit_str.value());
            }
        }
    });

    let prefix = args_map
        .get("path")
        .map(|p| {
            if p.ends_with('/') {
                p.to_owned()
            } else {
                format!("{}/", p)
            }
        })
        .and_then(|p| {
            if fs::metadata(format!("{}api/main.rs", p)).is_ok() {
                Some(p)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…