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