Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
remove feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ubnt-intrepid committed Oct 1, 2018
1 parent f6f6228 commit a17b168
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ matrix:
- export CARGO_INCREMENTAL=0
script:
- cargo update
- cargo test --features "strict"
- cargo test
- cargo fmt -- --check
- if [[ "${TRAVIS_PULL_REQUEST_BRANCH:-}" = release-* ]]; then cargo publish --dry-run; fi
after_success:
Expand All @@ -46,7 +46,7 @@ matrix:
- export CARGO_INCREMENTAL=0
script:
- cargo update
- cargo test --features strict
- cargo test

- rust: nightly
before_script:
Expand All @@ -62,7 +62,7 @@ matrix:
- rm -rf target/doc
- cargo update
- cargo doc --no-deps -p tungstenite
- cargo doc --no-deps
- cargo doc --no-deps --all-features
- rm -f target/doc/.lock
- echo '<meta http-equiv="refresh" content="0;URL=finchers_tungstenite/index.html">' > target/doc/index.html
deploy:
Expand Down
11 changes: 3 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ include = [
]

[package.metadata.docs.rs]
features = [
# FIXME: remove it as soon as the rustc version used in docs.rs is updated.
"extern-prelude",
rustc-args = [
# FIXME: remove it as soon as the rustc version used in docs.rs is updated
"--cfg", "finchers_inject_extern_prelude",
]

[features]
strict = []
# FIXME: remove it as soon as the rustc version used in docs.rs is updated
extern-prelude = []

[dependencies]
finchers = "0.12"

Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// FIXME: remove it as soon as the rustc version used in docs.rs is updated
#![cfg_attr(finchers_inject_extern_prelude, feature(extern_prelude))]

//! WebSocket support for Finchers based on tungstenite.
//!
//! # Example
Expand Down Expand Up @@ -43,8 +46,8 @@
unused,
)]
//#![warn(rust_2018_compatibility)]
#![cfg_attr(feature = "strict", deny(warnings))]
#![cfg_attr(feature = "strict", doc(test(attr(deny(warnings)))))]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, doc(test(attr(deny(warnings)))))]

extern crate base64;
#[macro_use]
Expand Down

0 comments on commit a17b168

Please sign in to comment.