Update README.md

This commit is contained in:
Thanasis Tserpelis
2021-09-30 21:02:05 +03:00
committed by GitHub
parent 59899d95b3
commit dbad596ad7
+4 -4
View File
@@ -71,9 +71,9 @@ For creating a project, execute:
`cargo new <name>`
This will automatically create the structured project folders with:
project
`project
-------->Cargo.toml
-------->src-------->main.rs
-------->src-------->main.rs`
Cargo.toml is the file that contains the dependencies and the configuration for the compilation.
main.rs is the main file that will be compiled along with any potential directories that contain libraries.
@@ -86,8 +86,8 @@ If you want to build the final "release" version execute:
`cargo build --release`
For static binaries, in terminal before the build command execute:
```"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set RUSTFLAGS=-C target-feature=+crt-static```
`"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set RUSTFLAGS=-C target-feature=+crt-static`
[Install Rust](https://www.rust-lang.org/tools/install) Simply download the binary and install.