Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Use Rust function in c++ #70

Answered by ruvi-d
ruvi-d asked this question in Q&A
Discussion options

You must be logged in to vote

How about we create a new Rust staticlib with an "extern C" interface that exposes any functionality that we want to implement on Rust? We can this name mangling logic there.
I've created this example app for your reference: https://github.com/ruvi-d/C-Rust-Interop

WDYT?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ruvi-d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant