Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Fix builds on Rust 1.39 #80

Merged
merged 4 commits into from
Dec 5, 2019
Merged

Fix builds on Rust 1.39 #80

merged 4 commits into from
Dec 5, 2019

Commits on Nov 30, 2019

  1. build: upgrade bindgen to 0.51.1

    The preivous bindgen version (0.32.0) fails on Rust 1.39 (see
    rust-lang/rust-bindgen#1627), so an upgrade is
    needed.
    
    However, the new version also breaks when enum values are also defined as
    macros. Previously, this could be handled with blacklist_type, but the
    recommended method is by implementing will_parse_macro and returning
    Ignore for problematic enum variants. This commit implements that method
    and removes the old method.
    Daniel Dulaney committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    0c86d6d View commit details
    Browse the repository at this point in the history
  2. build: upgrade build deps and fix try! warnings

    - upgrade num_cpus from 1.0 to 1.11
    - upgrade regex from 0.2 to 1.3
    - replace 3 instances of try! with ? in build.rs
    Daniel Dulaney committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    9c791e5 View commit details
    Browse the repository at this point in the history
  3. build: fix bindgen warnings breaking TravisCI

    When rustfmt is missing, bindgen puts anything on one line. Any warnings then
    dump so many logs that TravisCI is overwhelmed. The fix is to add rustfmt to the
    environment.
    
    See rust-lang/rust-bindgen#1600
    Daniel Dulaney committed Nov 30, 2019
    Configuration menu
    Copy the full SHA
    46d9d1a View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2019

  1. build: disable doctests

    In some cases, C comments end up looking like indented code blocks. rustdoc
    thinks those are doctests and tries to run them. Bindgen is working on a
    workaround, but in the meantime, the easiest solution is just disabling doctests
    crate-wide.
    
    See rust-lang/rust-bindgen#1313
    Daniel Dulaney committed Dec 1, 2019
    Configuration menu
    Copy the full SHA
    11e0ed0 View commit details
    Browse the repository at this point in the history