We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 490294c + c03647b commit 7b92948Copy full SHA for 7b92948
src/manifest.rs
@@ -27,7 +27,8 @@ pub fn split_input(
27
toolchain: Option<String>,
28
) -> MainResult<(String, String)> {
29
fn contains_main_method(source: &str) -> bool {
30
- let re_shebang: Regex = Regex::new(r"(?m)^ *(pub )?(async )?fn main *\(").unwrap();
+ let re_shebang: Regex =
31
+ Regex::new(r#"(?m)^ *(pub )?(async )?(extern "C" )?fn main *\("#).unwrap();
32
re_shebang.is_match(source)
33
}
34
0 commit comments