Skip to content

Added all-features flag for all build targets #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,29 @@ jobs:
environment:
RUST_BACKTRACE: 1
command: cargo test --verbose --frozen

test_all_features:
docker:
- image: rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: /mnt/crate
- restore_cache:
keys:
- cargo-v3-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
- run:
name: Print version information
command: rustc --version; cargo --version
- run:
name: Build
command: cargo build --tests --verbose --frozen -p chain-impl-mockchain --all-features
- run:
name: Test
environment:
RUST_BACKTRACE: 1
command: cargo test --verbose --frozen -p chain-impl-mockchain --all-features

workflows:
version: 2
Expand All @@ -122,3 +145,7 @@ workflows:
requires:
#- rustfmt
- cargo_fetch
- test_mockchain_all_features:
requires:
#- rustfmt
- cargo_fetch
17 changes: 0 additions & 17 deletions chain-impl-mockchain/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,3 @@ impl property::HasHeader for Block {
self.header.clone()
}
}

#[cfg(test)]
#[cfg(feature = "with-bench")]
mod bench {
use test::Bencher;

/*
#[bench]
pub fn serialization(&b: &mut Bencher) -> Self {
let bc = BlockContent::new();

b.iter(|| {

})
}
*/
}