فهرست منبع

Move to Cargo

Ben S 11 سال پیش
والد
کامیت
a8465fed45
15فایلهای تغییر یافته به همراه12 افزوده شده و 19 حذف شده
  1. 1 2
      .gitignore
  2. 1 1
      .travis.yml
  3. 9 0
      Cargo.toml
  4. 0 15
      Makefile
  5. 1 1
      README.md
  6. 0 0
      src/colours.rs
  7. 0 0
      src/column.rs
  8. 0 0
      src/dir.rs
  9. 0 0
      src/exa.rs
  10. 0 0
      src/file.rs
  11. 0 0
      src/filetype.rs
  12. 0 0
      src/format.rs
  13. 0 0
      src/options.rs
  14. 0 0
      src/sort.rs
  15. 0 0
      src/unix.rs

+ 1 - 2
.gitignore

@@ -1,3 +1,2 @@
-exa
-exa-test
 *~
+target

+ 1 - 1
.travis.yml

@@ -4,4 +4,4 @@ before_install:
 install:
   - sudo apt-get install rust-nightly
 script:
-  - make test
+  - cargo test

+ 9 - 0
Cargo.toml

@@ -0,0 +1,9 @@
+[package]
+
+name = "exa"
+version = "0.1.0"
+authors = [ "ogham@bsago.me" ]
+
+[[bin]]
+
+name = "exa"

+ 0 - 15
Makefile

@@ -1,15 +0,0 @@
-COMPILER = rustc
-
-all:
-	$(COMPILER) exa.rs
-
-test:
-	$(COMPILER) --test exa.rs -o exa-test
-	./exa-test
-
-clean:
-	rm -f exa
-	rm -f exa-test
-
-
-

+ 1 - 1
README.md

@@ -27,4 +27,4 @@ Options
 Installation
 ------------
 
-exa is written in [Rust](http://www.rust-lang.org). You should use the nightly, rather than the 0.10 release, which is rather out of date at this point. Once you have Rust set up, a simple `make` should compile exa.
+exa is written in [Rust](http://www.rust-lang.org). You should use the nightly, rather than the 0.10 release, which is rather out of date at this point. Once you have Rust set up, a simple `cargo build` will compile exa. Unless you don't have Cargo installed, in which case just `rustc src/exa.rs` will do.

+ 0 - 0
colours.rs → src/colours.rs


+ 0 - 0
column.rs → src/column.rs


+ 0 - 0
dir.rs → src/dir.rs


+ 0 - 0
exa.rs → src/exa.rs


+ 0 - 0
file.rs → src/file.rs


+ 0 - 0
filetype.rs → src/filetype.rs


+ 0 - 0
format.rs → src/format.rs


+ 0 - 0
options.rs → src/options.rs


+ 0 - 0
sort.rs → src/sort.rs


+ 0 - 0
unix.rs → src/unix.rs