Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-09-17 | Return Error if no rustfmt path given and which-rustfmt feature is disabled | Ryan Lopopolo | |
2019-09-17 | Do not use which if which-rustfmt feature is disabled | Ryan Lopopolo | |
This commit changes the API of rustfmt_path to return Result<Option<Cow<PathBuf>>>. Ok(None) is returned in the case where which is disabled and no rustfmt command is supplied explicitly either via configuration or env variable. Downstream code checks for the presence of None to directly return the source without emitting an error. | |||
2019-09-17 | Add which-rustfmt feature | Ryan Lopopolo | |
This feature controls whether bindgen will use the which crate to detect the rustfmt binary. This makes which an optional dependency. which-rustfmt is a default feature which makes this change backward compatible. | |||
2019-09-02 | Update syn related dependencies and bump version | Bastien Orivel | |
2019-07-27 | Fix beta build warnings / errors. (#1603) | Emilio Cobos Álvarez | |
Fixes #1598 | |||
2019-07-26 | Release 0.51.0.v0.51.0 | Emilio Cobos Álvarez | |
2019-07-26 | Allow to override rustfmt path with an environment variable. (#1602) | Emilio Cobos Álvarez | |
Also fix rustfmt installation to be via rustup, since rustfmt-nightly doesn't compile in nightly rust. Fixes #1601 | |||
2019-07-26 | Fix rustfmt installation to be via rustup. | Emilio Cobos Álvarez | |
2019-07-26 | Allow to override rustfmt path with an environment variable. | Emilio Cobos Álvarez | |
Fixes #1601 | |||
2019-07-24 | Cleanup wchar_t layout computation to happen later. (#1596) | Emilio Cobos Álvarez | |
This is a breaking cheange since WChar is exposed, but should be no behavior change otherwise. | |||
2019-07-23 | Don't emit #[repr(align(0))] for empty unions (#1595) | Patrick Marks | |
2019-07-15 | Fix layout computation for union forward declarations (#1593) | Patrick Marks | |
2019-07-10 | Merge pull request #1592 from emilio/incomplete-array-layout | Emilio Cobos Álvarez | |
ir: Properly find the layout of incomplete arrays. | |||
2019-07-10 | ir: Properly find the layout of incomplete arrays. | Emilio Cobos Álvarez | |
So as to not pad stuff incorrectly, or needlessly add extra alignment, for example. Fixes #1589 | |||
2019-07-09 | Merge pull request #1591 from emilio/value-dependent | Emilio Cobos Álvarez | |
Improve workaround for LLVM bug when evaluating value-dependent expressions. | |||
2019-07-09 | Improve workaround for LLVM bug when evaluating value-dependent expressions. | Emilio Cobos Álvarez | |
Using the canonical type makes it work across typedefs. Fixes #1590 | |||
2019-07-02 | Do a breaking version bump, yank 0.49.3v0.50.0 | Emilio Cobos Álvarez | |
Fixes #1587 | |||
2019-07-01 | Bump bindgen version. | Emilio Cobos Álvarez | |
NOTE: For $REASONS (see https://github.com/rust-lang/rust-bindgen/issues/1587), this is not the actual commit that is tagged on the release. | |||
2019-06-26 | Merge pull request #1582 from gmnicke2/issue-1580 | Emilio Cobos Álvarez | |
Make TypeKind::BlockPointer's canonical type in IR be itself | |||
2019-06-25 | Make BlockPointer's canonical type in IR be itself, not as if it is an alias. | Garrett Nickel | |
2019-06-25 | Merge pull request #1581 from emilio/clap-optional | Emilio Cobos Álvarez | |
Make clap optional. | |||
2019-06-25 | Make clap optional. | Emilio Cobos Álvarez | |
2019-06-14 | Merge pull request #1578 from georgio/patch-1 | Emilio Cobos Álvarez | |
Update bindgen version | |||
2019-06-13 | Update bindgen version | Georgio Nicolas | |
2019-06-13 | Add support for non_exhaustive rustified enums. (#1575) | Emilio Cobos Álvarez | |
Implements the feature discussed in https://github.com/rust-lang/rust-bindgen/issues/1554. | |||
2019-06-12 | Style fixes. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575 | |||
2019-06-12 | Add missing --rust-target flags on test case. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r293079226 | |||
2019-06-11 | Hopefully fixes automated tests for #1554. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292230729 | |||
2019-06-11 | Add rust target configuration for feature #1554 | uk | |
Will panic if the feature is being used outside nightly. See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292231027 | |||
2019-06-11 | Rename a couple miscalled identifiers. | uk | |
See https://github.com/rust-lang/rust-bindgen/pull/1575 | |||
2019-06-10 | Add support for non_exhaustive rustified enums. | uk | |
Implements the feature discussed in https://github.com/rust-lang/rust-bindgen/issues/1554. | |||
2019-06-06 | Update rustfmt.toml options for compatibility with modern rustfmt | Colin Wallace | |
Running `cargo fmt` or `cargo +nightly fmt` gives the following warnings: ``` Warning: Unknown configuration option `fn_brace_style` Warning: Unknown configuration option `item_brace_style` Warning: Unknown configuration option `struct_lit_multiline_style` Warning: Unknown configuration option `where_trailing_comma` ``` rustfmt changed these options here, and this PR reflects the changes: * `fn_brace_style` and `item_brace_style` were folded into `brace_style`: https://github.com/rust-lang/rustfmt/commit/f8074b340d328513077b59084e0ea3856181e699#diff-6d8a5e2104954a026de2bfe2b936aea4R541 * `struct_lit_multiline_style` option was renamed to `struct_lit_single_line`: https://github.com/rust-lang/rustfmt/commit/45d4f7a2dd1c95e47d4ae4dc413dfb71e53c16ff#diff-9de0a570da3404ffd4b364ef6a9f8195L1749 * `where_trailing_comma` was removed, but appears to have no replacement: https://github.com/rust-lang/rustfmt/commit/6a58d9123952de104b1e02640261b7e90908bb0e#diff-6d8a5e2104954a026de2bfe2b936aea4L369 So I left it in. Running `cargo fmt` over the bindgen codebase produces a _lot_ of changes, so I haven't done that. But I think it'd be a good idea to do it at some point: opening PRs against a project that has its own rustfmt.toml file but doesn't seem to follow it is a confusing process. | |||
2019-06-06 | For rust-target >= 1.30, make __IncompleteArrayField::new a const fn | Colin Wallace | |
2019-06-06 | For rust-target >= 1.30, make __BindgenUnionField::new a const fn | Colin Wallace | |
2019-06-06 | FIX #1571: For rust-target >= 1.30, make __BindgenBitfieldUnit::new a const fn | Colin Wallace | |
2019-06-06 | Remove the parameter bounds for __BindgenBitfieldUnit::new | Colin Wallace | |
This will enable `new` to be changed to a `const fn` in a future patch: `const fn`s do not support trait bounds. | |||
2019-05-24 | updated `default-enum-variant` to `default-enum-style` | Elichai Turkel | |
2019-05-22 | Bump version.v0.49.2 | Emilio Cobos Álvarez | |
2019-05-22 | Added tests with typedef for array pointers | Elichai Turkel | |
2019-05-22 | Added tests for array pointers | Elichai Turkel | |
2019-05-22 | Added array pointers to the CLI | Elichai Turkel | |
2019-05-22 | Added array pointers codegen | Elichai Turkel | |
2019-05-22 | Added array_pointers to the builder | Elichai Turkel | |
2019-05-22 | More link updates | atouchet | |
2019-05-21 | Update Links | Alex Touchet | |
2019-05-16 | Bump version.v0.49.1 | Emilio Cobos Álvarez | |
2019-05-15 | Add test cases for x86 Windows calling conventions. | Michael Woerister | |
2019-05-15 | Update tests to account for changed #[link_name] attribute emission. | Michael Woerister | |
2019-05-15 | Only emit #[link_name] attribute if necessary. | Michael Woerister | |
2019-05-12 | Revert "Switch to hashbrown." | Emilio Cobos Álvarez | |
This reverts commit 8a579b134dbaf369803cffbe835ba14ab2765fba. Reason for revert: hashbrown made it to libstd, so this saves some dependencies. |