Skip to content

Commit

Permalink
Fixed crate attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse99 committed Sep 3, 2012
1 parent 91f5770 commit 3ee9cc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -40,10 +40,10 @@ dist: lib
# setting an executable's name, but not libraries).
.PHONY : lib
lib:
$(RUSTC) --lib -o bin/rparse -O src/crate.rc
$(RUSTC) --lib --out-dir bin -O src/crate.rc

bin/test-rparse: src/crate.rc src/*.rs src/tests/*.rs
$(RUSTC) -W non-camel-case-types --test -o $@ $<
$(RUSTC) --test -o $@ $<

bin/test-rparse-release: src/crate.rc src/*.rs src/tests/*.rs
$(RUSTC) --test -O -o $@ $<
22 changes: 10 additions & 12 deletions src/crate.rc
@@ -1,22 +1,20 @@
//! General purpose parser combinator library"
// If the version is changed also change the dist target in the Makefile.
use std;

#[link(name = "rparse",
vers = "0.6",
uuid = "0188129D-F459-4EA4-A928-A5BA5632EF2E",
url = "https://github.com/jesse99/rparse")]
#[crate_type = "lib"]
url = "https://github.com/jesse99/rparse")];
#[crate_type = "lib"];

#[author = "Jesse Jones"]
#[license = "MIT"]
#[author = "Jesse Jones"];
#[license = "MIT"];

// TODO: commented out because they don't do anything with
// my rust (Makefile enables them via the command line)
//#[allow(unused_imports)] // can't figure out which imports it's warning about
//#[allow(deprecated_pattern)] // not sure how to get code to compile with this on
//#[allow(deprecated_mode)] // think we want to use T instead of @T for succeeded type (and zillions of other places)
#[warn(non_camel_case_types)]
#[allow(unused_imports)]; // can't figure out which imports it's warning about
#[allow(deprecated_pattern)]; // not sure how to get code to compile with this on
#[allow(deprecated_mode)]; // think we want to use T instead of @T for succeeded type (and zillions of other places)
#[warn(non_camel_case_types)];

use std;

mod c99_parsers;
mod misc;
Expand Down

0 comments on commit 3ee9cc4

Please sign in to comment.