3 ms·
Is there any sort of detailed documentation on how to use rustc directly in more complex ways? I imagine that any begginer's text will mostly treat cargo and no
by jhgb 5y ago
Is there any sort of detailed documentation on how to use rustc directly in more complex ways? I imagine that any begginer's text will mostly treat cargo and not such special usage scenarios as this one.
- pjmlp 5y agoYou can read how Google is going to do it, regardless of what upstream decides to do. https://security.googleblog.com/2021/05/integrating-rust-into-android-open.html https://security.googleblog.com/2021/05/integrating-rust-int... https://security.googleblog.com/2021/06/rustc-interop-in-android-platform.html https://security.googleblog.com/2021/06/rustc-interop-in-and...
- steveklabnik 5y agohttps://doc.rust-lang.org/stable/rustc/ https://doc.rust-lang.org/stable/rustc/ is the rustc specific documentation. You can pass -v to Cargo and it will show you the rustc invocation it makes if you want to reverse-engineer what Cargo does.
- jhgb 5y agoOh, somehow I missed that there's a rustc book. Cool, thanks.
- steveklabnik 5y agoYou're welcome! Yeah, it's not always the easiest to find.
- jhgb 5y agoOh, it's actually easy to find on https://www.rust-lang.org/learn https://www.rust-lang.org/learn in the second section of the page. Most likely reason for me not having found it is that the last time I looked at that page, I wasn't looking for the rustc book specifically, and that now that I wondered where rustc's user-level documentation was, the book doesn't appear when I googled simply "rustc documentation". You have to google specifically "rustc book" and that didn't occur to me, as I was expecting some kind of manpage instead.