Update for Cargo
This commit is contained in:
parent
1382c2ea4b
commit
c9bdf838a5
24 changed files with 22 additions and 1 deletions
|
@ -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
18
Cargo.toml
Normal 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"
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue