Skip to content

Commit

Permalink
implement opt level and compile target specs
Browse files Browse the repository at this point in the history
  • Loading branch information
coletonodonnell committed Feb 21, 2022
1 parent 8837231 commit c005c8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@ authors = ["Coleton O'Donnell contact@coleton.io"]

[dependencies]
text_io = "0.1.9"
substring = "1.4.5"
substring = "1.4.5"

[profile.dev]
opt-level = 0

[profile.release]
opt-level = 3

# Cross Compile for Windows. I found that this wasn't fully working so I just compiled using:
# RUSTFLAGS="-L /usr/lib" cargo build --release --target x86_64-pc-windows-gnu
# And that worked great
[target.x86_64-pc-windows-gnu]
rustc-link-search = ["/usr/lib"]

0 comments on commit c005c8f

Please sign in to comment.