Hi folks,
I just read this in tutorial-ffi.md:
The `"abi"` attribute applies to a foreign module (it can not be applied
to a single function within a module), and must be either `"cdecl"`
or `"stdcall"`. Other conventions may be defined in the future.
Why must it be applied to a module as a whole? I don't quite
understand why this limitation is there.
I realize that a C library mixing calling conventions would be quite
pathological, but it just seems completely arbitrary that the
attribute is only allowed on modules. I don't think Rust should try to
dictate how external modules are written.
Could anyone shed some light on this?
Thanks!
Regards,
Alex
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev