About 50 results
Open links in new tab
  1. Why are Rust executables so huge? - Stack Overflow

    Mar 12, 2015 · To force Rust to dynamically link programs, use the command-line arguments -C prefer-dynamic; this will result in a much smaller file size but will also require the Rust libraries (including its …

  2. How do I make a Rust program which can be executed without using …

    Mar 31, 2020 · 28 How can I make a program in Rust which can be executed from anywhere without using cargo run, by just clicking on the file? Is there any crate? I have written code for snake game …

  3. Add exe file details to binary of compiled Rust code

    Nov 20, 2022 · After compiling a Rust command line application to an *.exe binary on Windows I have checked the binary details and they are mostly blank: Is there a way to add the file description, file …

  4. Rust .exe fails to open on Windows - Stack Overflow

    Mar 6, 2021 · Those file dependencies you are mentioning. Try copying your exec to your app root instead. cargo run --release uses your app root as working directory but if you try to run the exe …

  5. Changing the icon of an .exe file in Rust - Stack Overflow

    Mar 28, 2021 · Changing the icon of an .exe file in Rust Asked 4 years, 9 months ago Modified 4 years, 9 months ago Viewed 4k times

  6. module - How to build a Rust binary executable - Stack Overflow

    Nov 4, 2021 · Your original code wasn't working because Rust's use is looking for a crate to import from, not just a file in the same directory. If you want to separate logic into other files, you will need to …

  7. Running a Rust program that is outside of the current directory

    Jan 26, 2019 · If I want to be in the Downloads/ directory and run a Rust file that is in the Desktop/ directory, how do I use cargo run? I assumed I could do something like cargo run <path of rust file>.

  8. Why does the Rust compiler generate huge executables?

    Dec 6, 2014 · Compiling a simple hello world application like this: fn main() { println!("Hello, World!"); } Generates a relatively huge 822 KB executable using the default compiler options (rustc hello.rs)...

  9. How to stop .exe file from closing immediately? - Stack Overflow

    Apr 5, 2022 · I am trying to run the rust executable file but it kept closing immediately.

  10. gcc - Rust installation on Windows - Stack Overflow

    Mar 8, 2017 · ar = "D:\\Applications\\msys64\\mingw64\\bin\\ar.exe" (clang++.exe is the same file as clang.exe from the same directory.) I got everything installed and running well - I could run the …