csbindgen icon indicating copy to clipboard operation
csbindgen copied to clipboard

Add support for parsing Rust 2024 edition of #[unsafe(no_mangle)] and unsafe(export_name = "foo")] attributes.

Open mmusial opened this issue 9 months ago • 1 comments

Hi,

This change enable csbindgen to work with Rust 2024, which requires attributes to be inside unsafe(), like:

#[unsafe(no_mangle)]
#[unsafe(export_name = "foo")]

mmusial avatar Mar 10 '25 23:03 mmusial

fixes! #102

arontsang avatar Apr 28 '25 07:04 arontsang

Any chance this will be merged in soon?

daxpryce avatar Jun 17 '25 16:06 daxpryce

Thoughts on merging this?

cc @guitarrapc

yuyoyuppe avatar Jul 31 '25 10:07 yuyoyuppe

+1

robertschaedler3 avatar Aug 13 '25 00:08 robertschaedler3

Thank you for great contribute and sorry for delayed response. I've merged in #110, it resolve conflict in main. However your commit has been incorporated as is, so I believe there will be no problem with the credit. Thank you.

neuecc avatar Aug 18 '25 07:08 neuecc