Nemeski@mander.xyz to Rust@programming.dev · 1 month agoSwitching to Rust's own mangling scheme on nightlyblog.rust-lang.orgexternal-linkmessage-square6linkfedilinkarrow-up143arrow-down10
arrow-up143arrow-down1external-linkSwitching to Rust's own mangling scheme on nightlyblog.rust-lang.orgNemeski@mander.xyz to Rust@programming.dev · 1 month agomessage-square6linkfedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up2·1 month agohttps://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·1 month agoThose 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