Skip to content

Commit

Permalink
Update to latest cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Jul 8, 2014
1 parent c04e5fe commit c1a6984
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 24 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
before_install:
- yes | sudo add-apt-repository ppa:cmrx64/cargo
- sudo apt-get update
install:
- sudo apt-get install cargo
# cargo
- curl -O http://static.rust-lang.org/cargo-dist/cargo-nightly-linux.tar.gz
- tar xf cargo-nightly-linux.tar.gz
# rustc
- 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
Expand All @@ -20,6 +19,6 @@ install:
- sudo make install
- cd ..
script:
- cargo build
- ./cargo-nightly/bin/cargo build
- make
- make clean
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ authors = ["Brendan Zabarauskas <[email protected]>",
[[lib]]

name = "gl"
path = "src/gl_bind.rs"
path = "src/lib.rs"

[dependencies.gl_generator]

path = "src/gen"
path = "src/gl_generator"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUSTDOC = rustdoc
SRC_DIR = src
TEST_DIR = test
LIB_FILE = $(SRC_DIR)/gl.rs
GEN_FILE = $(SRC_DIR)/gen/main.rs
GEN_FILE = $(SRC_DIR)/gl_generator/src/main.rs
EXAMPLE_FILES = $(SRC_DIR)/examples/*.rs

BIN_DIR = bin
Expand Down
4 changes: 0 additions & 4 deletions cargo-lite.conf

This file was deleted.

6 changes: 0 additions & 6 deletions src/gen/cargo-lite.conf

This file was deleted.

3 changes: 0 additions & 3 deletions src/gl/cargo-lite.conf

This file was deleted.

2 changes: 1 addition & 1 deletion src/gen/Cargo.toml → src/gl_generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = ["Brendan Zabarauskas <[email protected]>",

name = "gl_generator"
crate_type = ["dylib"]
path = "lib.rs"
path = "src/gl_generator.rs"

[dependencies.sax-rs]

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/gen/lib.rs → src/gl_generator/src/gl_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![crate_name = "gen"]
#![crate_name = "gl_generator"]
#![comment = "OpenGL function loader generator."]
#![license = "ASL2"]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/gl_bind.rs → src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#![allow(unused_variable)]

#[phase(plugin)]
extern crate gen;
extern crate gl_generator;

extern crate libc;

Expand Down

0 comments on commit c1a6984

Please sign in to comment.