Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom attributes to fn items #3088

Open
wants to merge 66 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
fd12a02
chore: bump `itertools` semver and activate `use_alloc`
oberrich Feb 5, 2025
75860ae
feat(integration): add integration tests for custom attributes
oberrich Feb 5, 2025
2c4742f
feat(attrs): add tests for custom attributes and cli
oberrich Feb 5, 2025
8506bc9
feat(attrs): implement codegen
oberrich Feb 5, 2025
4ae1854
feat(attrs): add `merge_cfg_attributes` pass
oberrich Feb 5, 2025
1599556
doc(attrs): fix docs for `merge_cfg_attributes` pass
oberrich Feb 5, 2025
8542bfa
fix: visibility of `FunctionKind` and `MethodKind`
oberrich Feb 5, 2025
2878dbe
feat(attrs): implement cli
oberrich Feb 5, 2025
d12cce9
feat(attrs): use `Vec` instead of `HashSet`
oberrich Feb 5, 2025
48b8599
feat(attrs): format attribute tokens using config
oberrich Feb 6, 2025
ab272ad
feat(attrs): always use `prettyplease::unparse` and some refactoring
oberrich Feb 6, 2025
6ec8523
refactor: unnest codegen for var to reduce code duplication
oberrich Feb 6, 2025
3e98b56
style: spelling
oberrich Feb 6, 2025
fe77c8b
docs: fix comments
oberrich Feb 6, 2025
678e52b
fix: remove debug prints
oberrich Feb 6, 2025
724fc19
fix(attrs): use `Vec<_>` over `HashSet<_>`
oberrich Feb 6, 2025
91928be
chore: fix rustfmt check
oberrich Feb 6, 2025
3600115
fix: crate version
oberrich Feb 6, 2025
31e3c5f
fix: remove unused imports
oberrich Feb 6, 2025
3c552de
fix: cli build
oberrich Feb 6, 2025
8dc4963
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
b2b3181
chore: run rustfmt on `options/cli.rs`
oberrich Feb 6, 2025
1be9954
fix: make clippy happy
oberrich Feb 6, 2025
3d1ff2c
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
a833e10
feat(attrs): always enable `prettyplease`
oberrich Feb 6, 2025
b4eb4fc
fix(attrs): emit comment as first attribute
oberrich Feb 6, 2025
786c1bc
style: minor fixes
oberrich Feb 6, 2025
dc468ee
fix(attrs): only quote `cfg_attrs` for constified enum variant `impl`s
oberrich Feb 6, 2025
7834cdc
fix(regr): prepend space inside block comments
oberrich Feb 6, 2025
d2b5b19
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
ed8fc84
chore: apply clippy fixes
oberrich Feb 6, 2025
63f7863
fix: improve comment formatting, unnest branch
oberrich Feb 6, 2025
c270044
fix: don't skip empty lines indiscriminately
oberrich Feb 6, 2025
ec0a0dc
fix: skip -> take
oberrich Feb 6, 2025
9305a1d
fix: use itertools for logic
oberrich Feb 6, 2025
67ef11f
fix: attempt to not trim whitespaces
oberrich Feb 6, 2025
031be86
fix: syntax error
oberrich Feb 6, 2025
dd80133
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
e1d3855
fix: filter out `#[must_use]` attributes
oberrich Feb 6, 2025
c4c5358
fix: invert logic
oberrich Feb 6, 2025
9dcbd24
fix: invert operator
oberrich Feb 6, 2025
9c02ec5
fix(tests): apply new `#[must_use]` order
oberrich Feb 6, 2025
d646345
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
c7d0890
fix: test to apply attrs for function_item
oberrich Feb 6, 2025
de6805e
fix: remaining expectations related to new attribute handling
oberrich Feb 6, 2025
1caa01a
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
6fe99c9
chore: apply clippy fix
oberrich Feb 6, 2025
a4f583d
fix: attempt to fix CI
oberrich Feb 6, 2025
ffaec44
fix: terminate comment
oberrich Feb 6, 2025
f27db9a
fix: attempt to fix ci
oberrich Feb 6, 2025
fad0ff5
fix: attempt to fix ci
oberrich Feb 6, 2025
d0652a0
fix: attempt to fix ci
oberrich Feb 6, 2025
b625a69
fix: only remove `#[must_use]` for non-dynamic fns
oberrich Feb 6, 2025
726ff75
chore: run rustfmt on `codegen/mod.rs`
oberrich Feb 6, 2025
f7eeecd
fix: attempt to fix ci
oberrich Feb 6, 2025
00663bf
fix: attempt to fix ci
oberrich Feb 6, 2025
e6c4596
fix: attempt to fix ci at last
oberrich Feb 6, 2025
05178c6
fix: attempt to fix ci - see what happens
oberrich Feb 6, 2025
cd86a8f
fix: make it compile
oberrich Feb 6, 2025
a0c642e
fix: invert condition
oberrich Feb 6, 2025
973cca1
fix: attempt to fix ci
oberrich Feb 6, 2025
f2aecce
fix: setting attributes on dynamic_functions seems bad, so let's not …
oberrich Feb 6, 2025
d5c134b
fix: syntax errors
oberrich Feb 6, 2025
0698c4f
fix: try the helper again
oberrich Feb 6, 2025
c9c772b
fix: try to combine the attrs
oberrich Feb 6, 2025
e95c7e5
fix: version number
oberrich Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: version number
  • Loading branch information
oberrich committed Feb 6, 2025
commit e95c7e5497a5943eceaae6a1f08f1df3b2d9b2db
2 changes: 1 addition & 1 deletion bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ readme = "../README.md"
repository = "https://github.com/rust-lang/rust-bindgen"
documentation = "https://docs.rs/bindgen"
homepage = "https://rust-lang.github.io/rust-bindgen/"
version = "0.69.5"
version = "0.71.1"
build = "build.rs"
rust-version.workspace = true
edition.workspace = true
Expand Down
Loading