3 ms·
Cool, thanks for elaborating :) I put the basics into our docs: http://doc.rust-lang.org/book/rust-inside-other-languages.html http://doc.rust-lang.org/book/rus
by steveklabnik 11y ago
Cool, thanks for elaborating :) I put the basics into our docs: http://doc.rust-lang.org/book/rust-inside-other-languages.html http://doc.rust-lang.org/book/rust-inside-other-languages.ht... , but it is just the very basics.
- e12e 11y agoThis great! Looks like there's still a bit of a gap wrt passing arguments; like the snippet above does. After skimming the chapter on ffi as well, there appears to be the need for a bit of experimentation (for me/a novice) to get that to work (eg: passing in a string, getting it back reversed, or as a list/array of unique characters/glyps etc). I'll have a look when I find the time - but this is a great start!
- steveklabnik 11y agoAwesome :) Yeah, things like "what do I do about more complex types" needs tons of more docs in general. We will get there. I'm also pretty convinced that a dedicated individual could create pretty awesome automatic binding generators for any language, especially since bindgen works pretty well for C... but we'll see how it shakes out. Don't hesitate to email me or post in the forums if you play around with this and get stuck :)