===============================
After reading the recent StackOverflow 2017 Programmer Survey my interest was piqued by the results for the "rust" programming language. Since then, I have successfully learned how to download and "install" it (to ramdisc) on my LM18.3 Mate 64bit LiveMedia system (see: Good Rust Tutorial Video) and enter, compile, and run a couple of "Hello world!" level programs.
Code: Select all
# Install the "rust" compiler: see referenced YouTube Video
curl -sSf https://static.rust-lang.org/rustup.sh | sh
rustc --help
rustc helloworld.rs <-- see: Rust By Example
./helloworld
Although the multi-thread example ran fine, it didn't give any sense of the effects of threading, even when I 'loaded' one of the threads with a bunch of 'extra' tasks. I got the bright idea to time-stamp all of the individual tasks so that I could evaluate the threading. There is a high resolution timer that is supposed to be available in the "time crate" (library?), however, my luck ended there. I have had no luck at all implementing the "precise_time_ns" function. I figured out the basics of how the "Cargo" package manager is supposed to work, and tried the command: "cargo install -v time". It seems to try to load the library of "time" functions, but it fails miserably with the message: "error: specified package has no binaries".
I am NOT a strong systems programmer, so I don't know specifically how to proceed from here. I'm guessing that the desired functions have to be compiled by rust on my system ... somehow ... and I'm looking for some hints!
If there is anyone lurking around who has experience with rust and cargo, I would most sincerely appreciate any and all comments, suggestions, and assistance.
Blessings in abundance,
Art in Carlisle, PA USA