Update for Cargo

This commit is contained in:
Corey Richardson 2014-06-22 20:35:40 -07:00
parent 1382c2ea4b
commit c9bdf838a5
24 changed files with 22 additions and 1 deletions

View file

@ -17,13 +17,16 @@ env:
global:
- secure: N41M4QTWbez7FRMh2HQqB3Z051FcruoRGLTdMdQJNMaZRqJiAfUBTO5NGXS5XGjIofknE4r/+WLv7KED2rTf6nvLFOHmGY2pL+agABcyD0DU0ltRLckjONWTxFN+SMTB0l38v3XIXxXX5y977Hl6wk3++kYZgCNVG3OTkJwWzQg=
before_install:
- yes | sudo add-apt-repository ppa:cmrx64/cargo
- sudo apt-get update
install:
- sudo apt-get install cargo
- wget http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
- tar xzf rust-nightly-x86_64-unknown-linux-gnu.tar.gz
- export PATH=$PATH:$(pwd)/rust-nightly-x86_64-unknown-linux-gnu/bin
- rustc -v
script:
- cargo build
- make
# - make check # bench is too slow
- make test

18
Cargo.toml Normal file
View file

@ -0,0 +1,18 @@
[package]
name = "cgmath-rs"
version = "0.0.1"
authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>",
"Brian Heylin",
"Colin Sherratt",
"Dzmitry Malyshau",
"Erick Tryzelaar",
"Luqman Aden",
"Maik Klein",
"Mikko Perttunen",
"Tomasz Stachowiak"
]
[[lib]]
name = "cgmath"

View file

@ -17,7 +17,7 @@ RUSTC = rustc
RUSTDOC = rustdoc
SRC_DIR = src
LIB_FILE = $(SRC_DIR)/cgmath/lib.rs
LIB_FILE = $(SRC_DIR)/cgmath.rs
TEST_FILE = $(SRC_DIR)/test/test.rs
BENCH_FILE = $(SRC_DIR)/bench/bench.rs