News for hackers. Stuff that matters.
Re:DigitalMars C/C++ Compiler by petre on Thursday May 24, 2018 @02:42AM (#17141582)
Well, it's not in the standard lib and I couldn't get my program to compile. Compare that to D or Go, where you don't have to fight the copiler.
Re:DigitalMars C/C++ Compiler by steveklabnik on Thursday May 24, 2018 @10:40AM (#17144390)
Rust has a different take on the standard library than many other languages. It's kept quite minimal, because it's trivial to use a package.
Re:DigitalMars C/C++ Compiler by petre on Thursday May 24, 2018 @11:34AM (#17145003)
Is there any way to use it directly in the source w/o having to create a Crate.toml and src dirs? Is there a getting started document? Dub recently included such a feature.
Re:DigitalMars C/C++ Compiler by steveklabnik on Thursday May 24, 2018 @11:50AM (#17145173)
That's the hard way. `cargo new` generates both for you, so you don't need to do any of that stuff manually.

If you really, really want to, you could use https://crates.io/crates/cargo-script to do the way you're talking about.

https://doc.rust-lang.org/cargo/ has installation, getting started, a reference, all of that. It needs some work, but for the basics of doing this, it's got it all.