-
Notifications
You must be signed in to change notification settings - Fork 183
Any plan for a rust-to-rust example? #25
Comments
@ctzurcanu what would be a use case for such integration? |
We are planning for the eventual implementation of pipeline visual IDE for Rust. That means the graphical composition of already-deployed Rust dylibs. https://www.youtube.com/watch?v=-LHvdZZUrss Any guidance greatly appreciated. This would be our learning of Rust project. |
I believe that would be just as calling C from Rust, as shown here: https://github.com/alexcrichton/rust-ffi-examples/blob/master/rust-to-c/src/main.rs On the other hand, I'm wondering if you already explored possibilities of utilizing work already done in WebAssembly space. |
I am aware of the Rust docs related to this: However: I am interested in an example unrelated to WebAssembly. Pure Rust to Rust. |
Is that a library you have a source code for? If that's the case you should just simply use a crate. I don't know about other ways for the dynamically linked library to be called other than the C-way. |
But I do not know clearly the C-way. I can read it done with C, but it is hard for a beginner to re-write it for Rust to Rust. I thought that the intent of your examples here is to give a jump-start. Therefore expected to find here also a Rust-to-Rust example. Especially that there is a conflict of info related to this online. Some referencing the fact that Rust has not completed the ABI specs. |
In this case, you might have to combine two provided examples: https://github.com/alexcrichton/rust-ffi-examples/tree/master/c-to-rust to export functions from Rust It works exactly the same whether it's C or Rust. In case it's not something you are looking for you should wait for an opinion of much more informed @alexcrichton |
I figured that I could use those 2. Just that it may take longer for me to get it working since I do not know Rust. If I have any success, I will let you know on this issue. |
the title says it all :)
The text was updated successfully, but these errors were encountered: