chore(nightly): Travis CI support

Travis should now be able to use nightly as well.
This commit is contained in:
Sebastian Thiel
2016-05-20 15:49:13 +02:00
parent 8d7a49891f
commit 320d769c6f
4 changed files with 21 additions and 9 deletions

View File

@@ -31,15 +31,16 @@ hyper = "^ 0.9"
mime = "^ 0.2.0"
serde = "^ 0.7.5"
serde_json = "^ 0.7.0"
yup-oauth2 = { version = "^ 0.6.0", optional = true, default-features = false }
serde_macros = { version = "0.7.5", optional = true }
% for dep in cargo.get('dependencies', list()):
${dep}
% endfor
[features]
default = ["with_syntex"]
nightly = ["serde_macros"]
with_syntex = ["serde_codegen", "syntex"]
default = ["with-syntex"]
nightly = ["serde_macros", "yup-oauth2/nightly"]
with-syntex = ["serde_codegen", "syntex", "yup-oauth2/with-syntex"]
[build-dependencies]
syntex = { version = "= 0.32", optional = true }

View File

@@ -1,5 +1,5 @@
<%namespace name="util" file="../lib/util.mako"/>\
#[cfg(feature = "with_syntex")]
#[cfg(feature = "with-syntex")]
mod inner {
extern crate syntex;
extern crate serde_codegen;
@@ -19,7 +19,7 @@ mod inner {
}
}
#[cfg(not(feature = "with_syntex"))]
#[cfg(not(feature = "with-syntex"))]
mod inner {
pub fn main() {}
}

View File

@@ -24,5 +24,5 @@ ${lib.docs(c)}
#[cfg(feature = "nightly")]
include!("lib.rs.in");
#[cfg(feature = "with_syntex")]
#[cfg(feature = "with-syntex")]
include!(concat!(env!("OUT_DIR"), "/lib.rs"));