How to compile rust to LLVM Bytecode with stdlib?

I want link C/C++ with rust directly without dynamic/static library.
I tried to compile LLVM IR. But it doesn't contain stdlib functions.

Is there any way?

The way you link C/C++ directly with Rust is by using static linking.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.