Просмотр исходного кода

Merge pull request #23 from Stebalien/cargo-release

Optimize Builds
Ben S 11 лет назад
Родитель
Сommit
51b35e795e
2 измененных файлов с 6 добавлено и 1 удалено
  1. 5 0
      Cargo.toml
  2. 1 1
      README.md

+ 5 - 0
Cargo.toml

@@ -22,6 +22,11 @@ bitflags = "0.1"
 default = [ "git" ]
 git = [ "git2" ]
 
+[profile.release]
+opt-level = 3
+debug = false
+lto = true
+
 [dependencies.git2]
 version = "0.1.13"
 optional = true

+ 1 - 1
README.md

@@ -33,6 +33,6 @@ You can sort by **name**, **size**, **ext**, **inode**, **modified**, **created*
 
 ## Installation
 
-exa is written in [Rust](http://www.rust-lang.org). You'll have to use the nightly -- I try to keep it up to date with the latest version when possible. Once you have it set up, a simple `cargo build` will pull in all the dependencies and compile exa.
+exa is written in [Rust](http://www.rust-lang.org). You'll have to use the nightly -- I try to keep it up to date with the latest version when possible.  Once you have it set up, a simple `cargo build --release` will pull in all the dependencies and compile exa as `target/release/exa`.
 
 exa depends on [libgit2](https://github.com/alexcrichton/git2-rs) for certain features. If you're unable to compile libgit2, you can opt out of Git support by passing `--no-default-features` to Cargo.