Age | Commit message (Collapse) | Author |
|
Should fix https://github.com/zzeroo/libmodbus-rs/issues/4
|
|
Going through the rust dev tools contributing checklist
Filling in some obvious gaps from https://github.com/nrc/dev-tools-team/blob/master/contribution/checklist.md
r? @emilio
cc @rust-lang/dev-tools : would anyone like to review our CONTRIBUTING.md file in general? (and our contribution workflow?) (and probably outside of this PR)
|
|
|
|
CONTRIBUTING.md
|
|
|
|
Bump version number.
|
|
|
|
|
|
ir: Prevent integer overflow when using word-size bitfields.
|
|
|
|
|
|
Add union tutorial
Here is a first addition to describe usage of unions. Please let me know if there are any changes you would like, or additional features to cover.
For now, I have described both ways to interact with unions, as the new union type has not stabilized.
|
|
Fixes #739
|
|
|
|
|
|
ir: Fix a bunch of bitfield correctness issues.
In particular, the "flush the allocation unit" logic is only valid for
ms_structs (that is, MSVC).
It's slightly annoying to have this different behavior, but it'd work just fine
if we'd turn that on for MSVC.
This patch doesn't do that, yet at least, and adds tests for all the weird
bitfield alignments around.
Fixes #726 (and another set of hidden issues by the old code).
|
|
In particular, the "flush the allocation unit" logic is only valid for
ms_structs (that is, MSVC).
It's slightly annoying to have this different behavior, but it'd work just fine
if we'd turn that on for MSVC.
This patch doesn't do that, yet at least, and adds tests for all the weird
bitfield alignments around.
Fixes #726 (and another set of hidden issues by the old code).
|
|
Cargo picks up on build.rs without being told now.
|
|
|
|
Prevent cargo from packaging orig files.
None
|
|
|
|
ir: Use the mangling hack in win32 too.
|
|
Fixes #727
|
|
Fixes #593
Fixes #728
|
|
have proper clang support.
|
|
Minor version bump.
|
|
|
|
ir: Don't panic when finding an unknown calling convention until code generation
This unblocks stylo in windows until we get `__thiscall` support in syntex. see #541.
|
|
generation.
|
|
Bump to version 0.25.2
Need to publish a new version so I can rely on the MacOS mangling fix for my smup branch.
r? @emilio
|
|
|
|
Gate on libclang 4 CI passing :)
Need those test expectation diffs across libclang versions from Travis CI...
|
|
Rather than having a tests that we only run if libclang >= 3.9, this makes the
test suite dynamically detect when we have different expectations for different
libclang versions. It does this by adding `tests/expectations/tests/libclang-$VERSION`
directories, and `testing_only_libclang_$VERSION` features that are consulted
when the usual expectation file does not exist.
Fixes #697
|
|
Only run call-conv-field.h test on linux
This is a temporary work around for issue #593 and this test failing on MacOS because we don't currently handle when the bindgen executable's target OS is not the same as the emitted bindings' target OS.
r? @emilio
|
|
|
|
We should take any number of `// bindgen-$whatever` flags at the top of the
file. Only considering the first three lines of the file was confusing when I
tried adding new pragmas with an empty line between the new ones and old ones.
|
|
This is a temporary work around for issue #593 and this test failing on MacOS
because we don't currently handle when bindgen's target OS is not the same as
the emitted bindings' target OS.
|
|
Fix bitfield generation bug with const function
Const function can't have variables or blocks.
r? @fitzgen
|
|
Const function can't have variables or blocks.
|
|
Fix osx mangling hack
Rust automatically adds one _ in the symbol. If we don't remove it, we will
endup getting three _.
r? @emilio
|
|
Rust automatically adds one _ in the symbol. If we don't remove it, we will
endup getting three _.
|
|
Add a test for short enums.
Closes #711.
|
|
Closes #711.
|
|
Minor version bump to peek up clang-sys updates in stylo.
This should fix https://bugzilla.mozilla.org/show_bug.cgi?id=1365488
There aren't any breaking changes since 0.25, only new features and fixes for libclang >3.9
|
|
This should fix https://bugzilla.mozilla.org/show_bug.cgi?id=1365488
|
|
codegen: Reuse the next_child_local_id hack for template instantiations.
This should be good enough, following the pattern of anonymous items, and should
prevent most of the current noise in stylo updates.
Closes #620
Fixes #619
|
|
This should be good enough, following the pattern of anonymous items, and should
prevent most of the current noise in stylo updates.
Closes #620
Fixes #619
|
|
Add bitfield allocation unit constructors
This commit gives bindgen the ability to generate constructors for bitfield allocation units. This enables more ergonomic use of struct literals for bindings structs that contain bitfields.
Additionally, when we are generating unstable Rust, these constructors are marked as const functions. This enables the creation of const binding structs that contain bitfields. (Something necessary for Servo's usage of SpiderMonkey).
r? @emilio
|
|
This commit flattens the nesting in `Bitfield::extend_ctor_impl`, as requested
in review, because it was getting pretty deep. Should be easier to read now.
|
|
This commit gives bindgen the ability to generate constructors for bitfield
allocation units. This enables more ergonomic use of struct literals for
bindings structs that contain bitfields.
Additionally, when we are generating unstable Rust, these constructors are
marked as const functions. This enables the creation of const binding structs
that contain bitfields.
|