rhai
rhai copied to clipboard
Rhai standard library.
There currently seems to be no plugin/library that allows giving rhai scripts full system access by allowing them to do things like spawning subprocesses or doing filesystem operations. Is something like this planned as an optional feature or has someone already made this as a seperate crate?
Not really. It was originally planned but nobody sorta got around to it...
In fact, the entire Rhai plugins system was originally written just so that such a sys library could be developed...
Seeking contributors to build up Rhai's standard library.
When I chose the script engine, I found that there is a standard module. We can learn from it
It is true. It does leave something to be desired.
I agree that having a basic standard module is a quite urgent need.
Jazz's standard fs library and fs-extras library are adequate for Jazz Flute, the standard application framework. The other crates that are integrated by default in the scripting environment can also be found in the bindings directory.
rhai's RandomPackage makes it look pretty easy to integrate with Jazz.
@dankope has indicated that he'd work on this... let me see if this mention is enough to assign this issue to him...
EDIT: Hmmm.... looks like no. @dankope, would you make a comment here so I can assign you?
EDIT: Hmmm.... looks like no. @dankope, would you make a comment here so I can assign you?
Should be able to assign me now, hopefully.
First package done! Please try it out and leave feedback on what should be changed/fixed, thanks. https://github.com/rhaiscript/rhai-fs
The next package will most likely be networking. The networking package will only use what is available in the rust std
library to ensure compatibility.
Any updates on the networking package?
Any updates on the networking package?
Hi, thank you for asking, I have been busy lately however I should have some time next week to get it in a good shape for publishing, thanks again for taking the time to ask.
The networking package has been pushed to the preliminary stage (aka not in the rhai org yet) here: https://github.com/emesare/rhai-net! Currently it supports TCP server and client functionality however there is quite a bit still yet to be done, I will have the issues for it filled out later tomorrow hopefully, so everyone is on the same page as to what to expect. My goal is to have it be extensible via other rust packages for example an HTTP client rhai package could include this and use its SharedTcpStream
to retrieve an open stream to then read/write from.
@eliabieri I wonder if the networking package is still progressing?