Browse Source

make build fail on deprecated

pull/299/head
o2sh 5 years ago
parent
commit
b5423111e7
  1. 2
      .github/workflows/ci.yml
  2. 3
      Cargo.toml
  3. 2
      Makefile
  4. 1
      src/main.rs

2
.github/workflows/ci.yml

@ -26,7 +26,7 @@ jobs: @@ -26,7 +26,7 @@ jobs:
- name: Build Debug
run: |
rustc --version
cargo build
cargo build --features=fail-on-deprecated
- name: Run tests
run: cargo test

3
Cargo.toml

@ -43,3 +43,6 @@ base64 = "0.13.0" @@ -43,3 +43,6 @@ base64 = "0.13.0"
lazy_static = "1.4"
more-asserts = "0.2"
paste = "1"
[features]
fail-on-deprecated = []

2
Makefile

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
build:
cargo build --release
cargo build --release --features=fail-on-deprecated
install: build
sudo cp target/release/onefetch /usr/local/bin

1
src/main.rs

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
// `error_chain!` can recurse deeply
#![recursion_limit = "1024"]
#![cfg_attr(feature="fail-on-deprecated", deny(deprecated))]
use onefetch::{cli::Cli, cli_utils, error::*, info};

Loading…
Cancel
Save