Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla/cbindgen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.0
Choose a base ref
...
head repository: mozilla/cbindgen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.1
Choose a head ref
  • 9 commits
  • 62 files changed
  • 3 contributors

Commits on Dec 22, 2019

  1. ir: support #[repr(*64)] enums

    Since there is a native C type for 64-bit integers (*int64_t), we can
    just add support for them. Support for larger enums (u128) are currently
    unstable and don't have a reasonable (standard-enough) C representation
    to support at the moment.
    
    Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
    cyphar authored and emilio committed Dec 22, 2019
    Configuration menu
    Copy the full SHA
    0e1c9f2 View commit details
    Browse the repository at this point in the history
  2. tests: enum: add #[repr(u64)] test

    Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
    cyphar authored and emilio committed Dec 22, 2019
    Configuration menu
    Copy the full SHA
    8c66c0c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f245881 View commit details
    Browse the repository at this point in the history
  4. Update to rust 2018.

    emilio committed Dec 22, 2019
    Configuration menu
    Copy the full SHA
    16fe3ec View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2019

  1. Add enum_class option

    This option allows specifying that a C++ enum should be emitted with
    plain `enum` rather than `enum class`. It's true that `enum class` should
    generally be preferred, but sometimes there's existing code which is
    already using plain `enum`, and porting that code to Rust becomes easier when
    `cbindgen` can emit plain `enum`.
    
    This option can be overridden on a per-enum basis using a `cbindgen:` annotation.
    
    It defaults to true for two reasons:
    
    * Backward compatibility.
    * `enum class` is probably actually what you want, in general.
    Evan Shaw authored and emilio committed Dec 29, 2019
    Configuration menu
    Copy the full SHA
    6a9066f View commit details
    Browse the repository at this point in the history
  2. Add a test for expanding dependencies with Cargo.lock v2, with both c…

    …onflicting and non-conflicting deps.
    emilio committed Dec 29, 2019
    Configuration menu
    Copy the full SHA
    b912c04 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a80f07 View commit details
    Browse the repository at this point in the history
  4. Fix dependency resolution with lockfile v2.

    Lockfile v2 only includes version numbers if they're conflicting.
    
    Fixes #436
    emilio committed Dec 29, 2019
    Configuration menu
    Copy the full SHA
    f03252c View commit details
    Browse the repository at this point in the history
  5. Release v0.12.1

    emilio committed Dec 29, 2019
    Configuration menu
    Copy the full SHA
    f5d76c4 View commit details
    Browse the repository at this point in the history
Loading