I want to implement a CLI(command-line interface) in rust-lang to drive a rascal language project for reverse engineering and code generation, how do you advice I go about it?
Links to projects, documents and repo that explains/answers this will be very much appreciated :-)
Three directions; either go JNI, link rust code to the jvm that's running rascal. You can use jlink and jdeps to get a slim binary that links the rust library to a JVM.
The second would be using Graal VM to run rust directly in the JVM.
Finally, just implement your CLI inn rascal. Main functions in Rascal with keyword parameters automatically get a proper CLI interface.