Build features separately.

Compiling rocket and actix-web together presents problems, since ring - a
native dependency - cannot have more than one version linked.
This commit is contained in:
Coleman McFarland 2018-06-11 17:40:10 -07:00 committed by Chris Wong
parent fd59814f8b
commit 8ce98f689f
2 changed files with 5 additions and 2 deletions

View file

@ -7,7 +7,10 @@ before_script:
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo test --all --all-features
- cargo build --features="iron"
- cargo build --features="rocket"
- cargo build --features="actix-web"
- cargo test --all
- |
if command -v cargo-clippy > /dev/null; then
CLIPPY_STATUS=0

View file

@ -199,7 +199,7 @@ mod actix_support {
impl Responder for PreEscaped<String> {
type Item = HttpResponse;
type Error = Error;
fn respond_to<String>(self, _req: &HttpRequest<String>) -> Result<Self::Item, Self::Error> {
fn respond_to<S>(self, _req: &HttpRequest<S>) -> Result<Self::Item, Self::Error> {
Ok(HttpResponse::Ok().body(self.0))
}
}