summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-17Return Error if no rustfmt path given and which-rustfmt feature is disabledRyan Lopopolo
2019-09-17Do not use which if which-rustfmt feature is disabledRyan 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-17Add which-rustfmt featureRyan 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-02Update syn related dependencies and bump versionBastien Orivel
2019-07-27Fix beta build warnings / errors. (#1603)Emilio Cobos Álvarez
Fixes #1598
2019-07-26Release 0.51.0.v0.51.0Emilio Cobos Álvarez
2019-07-26Allow 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-26Fix rustfmt installation to be via rustup.Emilio Cobos Álvarez
2019-07-26Allow to override rustfmt path with an environment variable.Emilio Cobos Álvarez
Fixes #1601
2019-07-24Cleanup 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-23Don't emit #[repr(align(0))] for empty unions (#1595)Patrick Marks
2019-07-15Fix layout computation for union forward declarations (#1593)Patrick Marks
2019-07-10Merge pull request #1592 from emilio/incomplete-array-layoutEmilio Cobos Álvarez
ir: Properly find the layout of incomplete arrays.
2019-07-10ir: 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-09Merge pull request #1591 from emilio/value-dependentEmilio Cobos Álvarez
Improve workaround for LLVM bug when evaluating value-dependent expressions.
2019-07-09Improve 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-02Do a breaking version bump, yank 0.49.3v0.50.0Emilio Cobos Álvarez
Fixes #1587
2019-07-01Bump 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-26Merge pull request #1582 from gmnicke2/issue-1580Emilio Cobos Álvarez
Make TypeKind::BlockPointer's canonical type in IR be itself
2019-06-25Make BlockPointer's canonical type in IR be itself, not as if it is an alias.Garrett Nickel
2019-06-25Merge pull request #1581 from emilio/clap-optionalEmilio Cobos Álvarez
Make clap optional.
2019-06-25Make clap optional.Emilio Cobos Álvarez
2019-06-14Merge pull request #1578 from georgio/patch-1Emilio Cobos Álvarez
Update bindgen version
2019-06-13Update bindgen versionGeorgio Nicolas
2019-06-13Add 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-12Style fixes.uk
See https://github.com/rust-lang/rust-bindgen/pull/1575
2019-06-12Add missing --rust-target flags on test case.uk
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r293079226
2019-06-11Hopefully fixes automated tests for #1554.uk
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292230729
2019-06-11Add rust target configuration for feature #1554uk
Will panic if the feature is being used outside nightly. See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292231027
2019-06-11Rename a couple miscalled identifiers.uk
See https://github.com/rust-lang/rust-bindgen/pull/1575
2019-06-10Add support for non_exhaustive rustified enums.uk
Implements the feature discussed in https://github.com/rust-lang/rust-bindgen/issues/1554.
2019-06-06Update rustfmt.toml options for compatibility with modern rustfmtColin 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-06For rust-target >= 1.30, make __IncompleteArrayField::new a const fnColin Wallace
2019-06-06For rust-target >= 1.30, make __BindgenUnionField::new a const fnColin Wallace
2019-06-06FIX #1571: For rust-target >= 1.30, make __BindgenBitfieldUnit::new a const fnColin Wallace
2019-06-06Remove the parameter bounds for __BindgenBitfieldUnit::newColin 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-24updated `default-enum-variant` to `default-enum-style`Elichai Turkel
2019-05-22Bump version.v0.49.2Emilio Cobos Álvarez
2019-05-22Added tests with typedef for array pointersElichai Turkel
2019-05-22Added tests for array pointersElichai Turkel
2019-05-22Added array pointers to the CLIElichai Turkel
2019-05-22Added array pointers codegenElichai Turkel
2019-05-22Added array_pointers to the builderElichai Turkel
2019-05-22More link updatesatouchet
2019-05-21Update LinksAlex Touchet
2019-05-16Bump version.v0.49.1Emilio Cobos Álvarez
2019-05-15Add test cases for x86 Windows calling conventions.Michael Woerister
2019-05-15Update tests to account for changed #[link_name] attribute emission.Michael Woerister
2019-05-15Only emit #[link_name] attribute if necessary.Michael Woerister
2019-05-12Revert "Switch to hashbrown."Emilio Cobos Álvarez
This reverts commit 8a579b134dbaf369803cffbe835ba14ab2765fba. Reason for revert: hashbrown made it to libstd, so this saves some dependencies.