Hey all
Been writing more rust to learn more. And i have been attempting to
write python bindings to rust. And for example
if i create a function in rust:
pub fn spam () {
...
}
the symbol gets mangled to:
redbrain@pherron-mtfdev-vbox {~/workspace/python-rs} $ nm -s spam.o
0000000000000000 t _ZN4spam19h46502db08befd726ah4v0.0E
Looks almost similar to the C++ abi at least the _ZN stuff does. Is
there any way to make a function be compiled to a C abi.
I know when we do soemthing like:
extern {
fn Py_Initialize ();
}
Calling into the Python api it knows to use the C ABI. Is there anyway
to make a normal rust function to use the C ABI as i want to write a
rust module which can be loaded by python just to see if i can more
than anything.
As currently if i continue python won't be able to load it i dont
think at least anyways.
--Phil
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev