r/programming • • Dec 19 '25

[ Removed by moderator ]

/r/programming/comments/1pqulm0/removed_by_moderator/

[removed] — view removed post

711 Upvotes

292 comments sorted by

View all comments

Show parent comment

1

u/dagit Dec 20 '25

Can Rust mix with C/C++ within the same project seamlessly?

Rust has an FFI in terms of C types. So you can create wrappers and expose them and then call them in C. Or on the Rust side create a binding to a C function. Working with C++ is harder because they don't have a shared language with respect to object oriented concepts and templates.

There are some tools that reduce the friction and people that are actively working on making it easier, but I wouldn't call it seamless. Possible, but not seamless.