|
Ghost of Reagan Past posted:Another question: is there a way to get Cargo to update rustc? They release a new stable every 6 weeks, and so if I want to keep my local updated, how do I do that except uninstall old versions and install the new one (Windows)? https://github.com/rust-lang-nursery/rustup.rs/ will be the offical way to deal with this soon enough, i haven't tried it on windows yet though, but it has support for it.
|
# ¿ Aug 22, 2016 10:56 |
|
|
# ¿ Apr 29, 2024 14:12 |
|
yeah, what you want in this case is split_off, which returns owned strings
|
# ¿ May 31, 2018 20:02 |
|
https://dtolnay.github.io/rust-quiz/ I consider myself pretty experienced with rust, and half this quiz broke me. #2 is evil.
|
# ¿ Nov 29, 2018 00:11 |
|
yeah i've been playing around with tide (yet another async web framework) and writing my own futures 0.3 libs for timers and websockets and stuff it's very nice.
|
# ¿ Feb 15, 2019 00:25 |
|
its still early but rust-analyzer is so much better than rls its not even funny
|
# ¿ Aug 4, 2019 05:10 |
|
only .from() .into() .try_from() .try_into() and .from_str() are from traits, the rest are just convention. Every smart pointer type in the std has the .as_[mut_]ptr() / .into_raw() methods, though. Be extra careful with ownership when working with ffi, it’s easy to accidentally drop smart pointers when they go out of scope before the ffi uses them, and you don’t want to free memory allocated in rust from the c functions and vice versa.
|
# ¿ May 28, 2022 08:35 |
|
|
# ¿ Apr 29, 2024 14:12 |
|
Serde is not a parsing library.
|
# ¿ Dec 16, 2023 21:05 |