Add examples showcasing how to embed RustPython in Rust applications #1707
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm sure examples like these were left out because you can just comb through the source, the documentation, pyckitup, etc. and figure out how everything works, and while that's definitely the case (I mean, I just did exactly that) doing so is quite time consuming, so I hope that I can leave these tutorials as breadcrumbs for anyone else who's interested in embedding RustPython into their applications.
I can say that personally I encountered RustPython a couple months back, and because there were no examples like these I simply assumed that embedding RustPython into Rust applications wasn't possible/feasible, and that it was meant simply to be a standalone application. Examples like these and the note in the README should make it much clearer to interested passerby that RustPython is not only embeddable into applications, but that it's also quite easy to do so.