Nemeski@mander.xyz to Rust@programming.dev · 14 days agoSwitching to Rust's own mangling scheme on nightlyblog.rust-lang.orgexternal-linkmessage-square6fedilinkarrow-up142arrow-down10
arrow-up142arrow-down1external-linkSwitching to Rust's own mangling scheme on nightlyblog.rust-lang.orgNemeski@mander.xyz to Rust@programming.dev · 14 days agomessage-square6fedilink
minus-squareSavvyWolf@pawb.sociallinkfedilinkEnglisharrow-up2·13 days 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·13 days 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