Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-11-08 | Update cexpr dependency | Ilia Kravets | |
2019-11-03 | Do not generate implementation for clone for FAM | David Frey | |
Flexible array members are represented in the generated binding by a struct __IncompleteArrayField<T>. Since such members do not contain any information about how big they are, it is impossible to automatically clone or copy them, either in C or rust. Fixes #1431. | |||
2019-10-28 | Move rust feature docs into a more useful place. | Emilio Cobos Álvarez | |
2019-10-27 | Turn off regex default features. | Danny Bautista | |
2019-10-26 | [book] Update most recent version of bindgen | Robbie Harwood | |
Signed-off-by: Robbie Harwood <rharwood@redhat.com> | |||
2019-10-22 | Add `disable_nested_struct_naming` option (#1610) | oblique | |
The following structs have different names for C and C++. In case of C they are visible as `foo` and `bar`. In case of C++ they are visible as `foo` and `foo::bar`. By default bindgen follows C++ naming to avoid generating duplicate names. With this option the following structs will be named as `foo` and `bar` instead of `foo` and `foo_bar`. ``` struct foo { struct bar { } b; }; ``` In case of an unnamed definition we build the canonical name from the inner most named definition. For example the following will generate `baz__bindgen_ty_1`: ``` struct foo { struct bar { struct baz { struct { } u; } z; } b; }; ``` This option should be used only for C headers. It is needed in some rare situations where user used another code generator that already mangled nested definitions. A real life example is [asn1c] with `-fcompound-names` option. [asn1c]: https://github.com/vlm/asn1c | |||
2019-10-22 | codegen: Handle opaque aliases to enums correctly. | Emilio Cobos Álvarez | |
Opaque types don't use the path to their aliased type but an opaque type like an array or primitive with the right alignment. Fixes #1599. | |||
2019-10-21 | Test the runtime feature and the non-static linking. | Emilio Cobos Álvarez | |
We can't test the "static" code-path, since there are no prebuilt binaries in releases.llvm.org. | |||
2019-10-21 | Cargo fmt. | Emilio Cobos Álvarez | |
2019-10-21 | Allow static and dynamic linking | Jeremy Fitzhardinge | |
Currently bindgen always uses clang-sys with the "runtime" feature - that is, load libclang at runtime with dlopen (or similar) at runtime. This PR keeps this default, but also - adds "static" to statically link libclang - without either "runtime" or "static", link with the shared library Many distributions don't ship with a static libclang, but linking with the dynamic library will use normal ld.so mechanisms to define where the .so file should be found. (Ditto for the Mac and Windows equivalents.) | |||
2019-10-14 | Rustfmt to account for rebase. | Emilio Cobos Álvarez | |
2019-10-14 | Fix bitfield-linux-32.hpp to not hit #1538. | Emilio Cobos Álvarez | |
The test was failing. | |||
2019-10-14 | bindgen-integration: Reformat crate too. | Emilio Cobos Álvarez | |
Cleanup a bit the reformatted bits while at it. | |||
2019-10-14 | tests: Remove support for test directive that is no longer used. | Emilio Cobos Álvarez | |
ae0fdf7a5519a175d887389c80399234637bdc29 changed the setup for the only test that actually used this. | |||
2019-10-14 | Enforce rustfmt on automation. | Emilio Cobos Álvarez | |
2019-10-14 | Run `cargo fmt` on the main crate. | Emilio Cobos Álvarez | |
2019-10-14 | tests: Reformat test crate. | Emilio Cobos Álvarez | |
Now that the rustfmt configuration is different we need to do this to not generate unexpected failures. | |||
2019-10-14 | tests: Use the same rustfmt configuration as the parent directory. | Emilio Cobos Álvarez | |
This allows us to workaround/fix https://github.com/rust-lang/rustfmt/issues/3799 | |||
2019-10-14 | tests: Fix some warning in the test crate. | Emilio Cobos Álvarez | |
2019-10-14 | Add llvm 9.0 to CI. | Emilio Cobos Álvarez | |
2019-10-14 | Update test expectations for libclang 9.0. | Emilio Cobos Álvarez | |
2019-10-14 | Create clang-9-specific test directory, as a copy of clang-5. | Emilio Cobos Álvarez | |
2019-10-14 | tests: Look at expectations/tests/libclang-9 expectations. | Emilio Cobos Álvarez | |
2019-10-14 | tests: Look at the more specific tests first, but don't require specific ↵ | Emilio Cobos Álvarez | |
expectations for all llvm versions. | |||
2019-10-14 | function: Fix #[must_use] support in libclang 9+. | Emilio Cobos Álvarez | |
2019-10-14 | features: core::ffi::c_void isn't really available before 1.30. | Emilio Cobos Álvarez | |
2019-10-08 | Fix BitfieldUnit constructor to handle 64 bit wide bitfields on 32 bit. | Cameron McCormack | |
Fixes #1639. | |||
2019-10-08 | Rename Item::canonical_name_cache for consistency. | Cameron McCormack | |
2019-10-08 | Use a LazyCell for Item::canonical_name_cache and Item::local_id. | Cameron McCormack | |
It's slightly neater. | |||
2019-10-08 | Cache the result of Item::path_for_whitelisting. | Cameron McCormack | |
2019-10-08 | Add ParseCallbacks handler for included files | chrysn | |
As the clang_File_tryGetRealPathName function is only exposed by clang_sys for clang >= 7.0, this raises the clang dependency. Closes: https://github.com/rust-lang/rust-bindgen/issues/1635 The book example code for creating a builder to run inside Cargo is extended by using the rereun-if-changed headers. | |||
2019-10-08 | Don't always output translation_unit timer. | Cameron McCormack | |
2019-10-04 | Update env_logger and run a full cargo update | Bastien Orivel | |
2019-10-04 | Build the rustified_non_exhaustive_enums RegexSet. | Cameron McCormack | |
2019-10-04 | Add a couple more timers. | Cameron McCormack | |
For the remaining named parts of Context::gen. | |||
2019-10-03 | Use c_void from core when --use-core is specified | Kyle Tomsic | |
`c_void` is available as `::std::os::raw::c_void` and `::core::ffi::c_void`. If the "--use-core" option is specified (but no --ctypes-prefix is provided), we should emit `::core::ffi::c_void` rather than the `std` one. | |||
2019-09-28 | Fallback: call "rustfmt" directly without which | heidezomp | |
If the `which-rustfmt` feature isn't enabled, assume that the binary is called "rustfmt" and that it is in the user's PATH, instead of returning an error. | |||
2019-09-24 | Mention v0.51.1-oldsyn. | Emilio Cobos Álvarez | |
2019-09-23 | Fix changelog links. | Emilio Cobos Álvarez | |
2019-09-23 | Release v0.51.1v0.51.1 | Emilio Cobos Álvarez | |
(Cargo.toml file was updated already in the syn update) | |||
2019-09-23 | ir: Make Ord and PartialOrd implementations agree. | Emilio Cobos Álvarez | |
See https://github.com/rust-lang/rust/issues/64710. Bogus implementations were introduced in 230545e7c, d3e39dc62, and 379bb1663. | |||
2019-09-23 | Upgrade 'which' to remove indirect dependency on 'failure'. | Adrien Prokopowicz | |
2019-09-23 | fxhash -> rustc-hash | Evgeniy A. Dushistov | |
fixes #1616 | |||
2019-09-20 | Update Debian requirements. | Emilio Cobos Álvarez | |
Closes #1613 | |||
2019-09-17 | Improve the script to enforce rustfmt on automation. | Emilio Cobos Álvarez | |
2019-09-17 | Rustfmt. | Emilio Cobos Álvarez | |
2019-09-17 | Add rustfmt to nightly toolchain | Ryan Lopopolo | |
2019-09-17 | Set RUSTFMT for nofeatures tests | Ryan Lopopolo | |
2019-09-17 | lint ci/script.sh | Ryan Lopopolo | |
2019-09-17 | Test bindgen with no default features | Ryan Lopopolo | |