"fringe platforms which can't even run a Rust compiler"
"fringe platforms which can't even run a Rust compiler"
Posted Feb 13, 2021 22:37 UTC (Sat) by sthibaul (✭ supporter ✭, #54477)In reply to: "fringe platforms which can't even run a Rust compiler" by Cyberax
Parent article: Python cryptography, Rust, and Gentoo
> most of them can be trivially generated by cut&pasting headers and doing string replaces.
cut&pasting+string replace from the C .h headers??
> You can write it in within a day.
For somebody that doesn't even know Rust from the start?
> Automating it would be nice, but different OSes can have wildly different header conventions.
I'm not saying to automate string replacements, but simply do like all other languages implementations I have seen do: interpret the C headers in C, i.e. bindgen.
