Parcourir la source

Merge #116

116: bump autocfg to fix no_std probing r=cuviper a=cuviper



Co-authored-by: Josh Stone <[email protected]>
bors[bot] il y a 5 ans
Parent
commit
84e14d4f36
3 fichiers modifiés avec 18 ajouts et 2 suppressions
  1. 8 0
      .travis.yml
  2. 2 2
      Cargo.toml
  3. 8 0
      RELEASES.md

+ 8 - 0
.travis.yml

@@ -14,6 +14,14 @@ script:
   - ./ci/test_full.sh
 matrix:
   include:
+    # try a target that doesn't have std at all
+    - name: "no_std"
+      rust: stable
+      env: TARGET=thumbv6m-none-eabi
+      before_script:
+        - rustup target add $TARGET
+      script:
+        - cargo build --verbose --target $TARGET --no-default-features --features i128
     - name: "rustfmt"
       rust: 1.31.0
       before_script:

+ 2 - 2
Cargo.toml

@@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"]
 license = "MIT/Apache-2.0"
 repository = "https://github.com/rust-num/num-traits"
 name = "num-traits"
-version = "0.2.7"
+version = "0.2.8"
 readme = "README.md"
 build = "build.rs"
 exclude = ["/ci/*", "/.travis.yml", "/bors.toml"]
@@ -24,4 +24,4 @@ std = []
 i128 = []
 
 [build-dependencies]
-autocfg = "0.1.2"
+autocfg = "0.1.3"

+ 8 - 0
RELEASES.md

@@ -1,3 +1,11 @@
+# Release 0.2.8 (2019-05-21)
+
+- [Fixed feature detection on `no_std` targets][116].
+
+**Contributors**: @cuviper
+
+[116]: https://github.com/rust-num/num-traits/pull/116
+
 # Release 0.2.7 (2019-05-20)
 
 - [Documented when `CheckedShl` and `CheckedShr` return `None`][90].