Browse Source

Add release configuration for maximum performance + native CPU features

Now that Sha1 is integrated, this seems in order ;)
pull/2/head
Sebastian Thiel 11 months ago
parent
commit
07859cb603
No known key found for this signature in database GPG Key ID: EE029D1E5EB40300
  1. 1
      .cargo/config
  2. 5
      Cargo.toml
  3. 8
      demos/Cargo.toml

1
.cargo/config

@ -0,0 +1 @@
rustflags = "-C target-cpu=native"

5
Cargo.toml

@ -18,7 +18,10 @@ anyhow = "1.0.31"
structopt = "0.3.14"
[profile.release]
panic = 'unwind'
overflow-checks = false
lto = "fat"
panic = 'abort'
codegen-units = 1
incremental = false
[workspace]

8
demos/Cargo.toml

@ -15,3 +15,11 @@ test = false
git-odb = { version = "0.1.0", path = "../gitoxide-odb" }
rayon = "1.3.0"
anyhow = "1.0.31"
[profile.release]
overflow-checks = false
lto = "fat"
panic = 'abort'
codegen-units = 1
incremental = false
Loading…
Cancel
Save