Skip to content

请教一个问题,cargo build 打包成exe之后,双击执行这个exe,会出现一个cmd框,请问应该执行哪个编译选项,感谢解答 #31

Answered by syf20020816
FiveKm asked this question in Q&A
Discussion options

You must be logged in to vote

I am afraid you may not understand, the following is detail:

you can add #![windows_subsystem = "{{your system}}"] in main.rs

such as:

#![windows_subsystem = "windows")]

fn main() {
    // other code ...
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by syf20020816
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
2 participants
Converted from issue

This discussion was converted from issue #30 on April 02, 2024 13:55.