Add travis build.
Also, allow the new lint proc_macro_derive_resolution_fallback, which otherwise breaks diesel in current beta and nightly.
This commit is contained in:
parent
5a103f81b3
commit
5a241d78f5
|
@ -0,0 +1,13 @@
|
|||
language: rust
|
||||
rust:
|
||||
- stable
|
||||
- beta
|
||||
cache: cargo
|
||||
before_script:
|
||||
- cargo update || true
|
||||
matrix:
|
||||
include:
|
||||
- rust: nightly
|
||||
env: TASK=rustfmt
|
||||
before_script: rustup component add rustfmt-preview
|
||||
script: cargo fmt -- --check
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "warp-db-session"
|
||||
name = "warp-diesel-ructe-sample"
|
||||
version = "0.1.0"
|
||||
authors = ["Rasmus Kaj <kaj@kth.se>"]
|
||||
|
||||
|
|
|
@ -3,3 +3,5 @@
|
|||
This application is intended as an example of handling a login
|
||||
session, using the warp web framework, the ructe template engine and
|
||||
the diesel database layer.
|
||||
|
||||
[![Build Status](https://travis-ci.org/kaj/warp-diesel-ructe-sample.svg?branch=master)](https://travis-ci.org/kaj/warp-diesel-ructe-sample)
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
//! An example web service using ructe with the warp framework.
|
||||
#![deny(warnings)]
|
||||
// The new lint proc_macro_derive_resolution_fallback breaks diesel.
|
||||
// Current stable rustc (1.28.0) does not have the lint, so ignore unknowns.
|
||||
#![allow(unknown_lints)]
|
||||
#![allow(proc_macro_derive_resolution_fallback)]
|
||||
extern crate bcrypt;
|
||||
#[macro_use]
|
||||
extern crate diesel;
|
||||
|
|
Loading…
Reference in New Issue