Hello Guys and Girls of the Rust Community.
I started with Rust a few days ago and I think I’m quite successful, cause I rebuilt a Backup system which just relies on XML2 © libxenserver © and LVM, Zipping to make backups of our XenServer infrastructure. The old code was written in Python 2 and was really aweful to run since some XenServers are still on Py 2.4 / Py 2.6, however rust works brilliantly even with a simple http-interface which uses sqlite3 for his user database.
However there is one thing I found really aweful…
Why do I need to write
mod mymodule; use mymodule::my_code;
I mean I just want to call code inside my own module space I don’t want to call any extern crate here (there the explicit extern crate will make sense). However I’m calling code under src/mymodule.rs or under src/mymodule/mod.rs so it’s already there the explicit “mod” makes no sense. I also found no way to just write something like:
use mymodule; // so that I can write: mymodule::function1();
The documentation around modules here is really lacking. Still most things in rust just works and since I’m coming from scala/jvm and some python I really like the immutable / functional style of a compiled language, especially the FFI (even that header files are hard to integrate if you are really new, but rely on some native C code)