From 38958d31384ad13cabf918c2a026f11dc77532c0 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Mon, 30 Sep 2019 21:53:45 -0700 Subject: [PATCH] Test build on CI --- .circleci/config.yml | 3 +++ Cargo.toml | 4 ++-- README.md | 9 ++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3772749..79f9eb0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,3 +8,6 @@ jobs: - run: git submodule update --init --recursive - run: cargo build - run: cd examples && ./test.sh + - run: | + git clean -dfx + cargo build --no-default-features --features cmake diff --git a/Cargo.toml b/Cargo.toml index 7a9237d..4f69945 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ default = ["autotools"] libc = "0.2" [build-dependencies] -autotools = {version = "0.2", optional = true} -cmake = {version = "0.1", optional = true} +autotools = { version = "0.2", optional = true } +cmake = { version = "0.1", optional = true } diff --git a/README.md b/README.md index 5e1ee26..f3807e8 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,11 @@ This crate is for use cases in which developers need to integrate [`bdwgc`][bdwg See [`examples`](examples) directory. -By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake enable the `cmake` feature in `Cargo.toml`: +By default [`bdwgc`][bdwgc] is built with autotools. To build with cmake, enable the `cmake` feature: - [dependencies.bdwgc-alloc] - version = "0.4" - default-features = false - features = ["cmake"] +```sh +cargo build --no-default-features --features cmake +``` ## License