Nemeski@mander.xyz to Rust@programming.dev · 19 天前Switching to Rust's own mangling scheme on nightlyblog.rust-lang.orgexternal-linkmessage-square3linkfedilinkarrow-up141arrow-down10
arrow-up141arrow-down1external-linkSwitching to Rust's own mangling scheme on nightlyblog.rust-lang.orgNemeski@mander.xyz to Rust@programming.dev · 19 天前message-square3linkfedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up2·19 天前https://doc.rust-lang.org/reference/abi.html#the-no_mangle-attribute https://doc.rust-lang.org/nomicon/other-reprs.html#reprc Does no_mangle and repr(c) do that?
minus-squareINeedMana@piefed.ziplinkfedilinkEnglisharrow-up2·19 天前Those are good to know, thanks. But as far as I understand, attribute enforces unsafe, repr is more about the data layout. Right? But in there, I’ve found https://github.com/mozilla/cbindgen. Wicked
https://doc.rust-lang.org/reference/abi.html#the-no_mangle-attribute https://doc.rust-lang.org/nomicon/other-reprs.html#reprc
Does
no_mangleandrepr(c)do that?Those are good to know, thanks. But as far as I understand, attribute enforces unsafe, repr is more about the data layout. Right?
But in there, I’ve found https://github.com/mozilla/cbindgen. Wicked