-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better Cargo.toml for cross-compilation and dynamic linking
+Xargo.toml for cross compilation.
- Loading branch information
1 parent
a62c091
commit d3df955
Showing
4 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "MFEKglif" | ||
version = "1.0.1" | ||
version = "1.1.0-beta1" | ||
authors = ["Fredrick Brennan <[email protected]>", "Matthew Blanchard <[email protected]>"] # + MFEK authors | ||
edition = "2021" | ||
|
||
|
@@ -45,7 +45,6 @@ enum-unitary = "0.4" | |
itertools = "0.10" | ||
|
||
# Display backtraces | ||
backtrace = "0.3" | ||
colored = "2.0" | ||
|
||
arboard = { version = "2.0" } | ||
|
@@ -58,6 +57,9 @@ env_logger = "0.9" | |
# Gives us derive(Display) | ||
derive_more = "0.99" | ||
|
||
# Gives us derivative(Debug) | ||
derivative = "2.2" | ||
|
||
# File dialog | ||
nfd = { git = "https://github.com/raphlinus/nfd-rs", rev = "5e09b79bf511e3a91ae8cefdb96e9734fa4a79c2" } | ||
|
||
|
@@ -109,14 +111,18 @@ plist = "1.3" | |
# we use this for affine matrices in some of our data types | ||
kurbo = {version = "0.8", features = ["serde"]} | ||
|
||
[features] | ||
default = ["sdl2/bundled", "sdl2/static-link"] | ||
[target.'cfg(debug)'.dependencies] | ||
backtrace = "0.3" | ||
|
||
# See src/util/mod.rs::set_codepage_utf8 | ||
[target.'cfg(windows)'.dependencies] | ||
winapi = "0.3" | ||
|
||
[features] | ||
default = ["sdl2/bundled", "sdl2/static-link"] | ||
|
||
[profile.release] | ||
opt-level = 'z' | ||
lto = true | ||
opt-level = 3 | ||
#lto = true | ||
codegen-units = 1 | ||
panic = "abort" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[target.x86_64-unknown-linux-gnu.dependencies] | ||
core = {} | ||
alloc = {} | ||
std = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn main() { | ||
let profile = std::env::var("PROFILE").unwrap(); | ||
if profile == "dev" { | ||
println!("cargo:rustc-env=debug"); | ||
} | ||
} |