Please let us know how it should be changed (cannot find the “edition” flag in the current doc : https://www.mankier.com/1/rustc).
Regarding crates, when adding the new rand version, multiple versions of rand_core end up in the target directory. Not sure how that works and what to add to the rustc command line in that case… There are even dependencies from rand_core 0.3.1 to rand_core 0.4 (what? how can this work?). So will have to try a few things before we can update the rand crate.
Note: We are not using Cargo when building. I guess the edition=2018 specified in Cargo.toml is somehow transmitted to rustc but I could not find the equivalent command line.
Hello!
There have been 7 stable Rust releases since 1.33 (including in particular stabilization of many apis and a great upgrade upgrade for HashMap).
It might be time for an upgrade if not too time-consuming!
Also, crossbeam/crossbeam_channel and rayon crates are basics of parallelism in Rust and would be great additions to those that are already there. (BTW, thank you so much for already adding itertools! <3)
So, if Rust has new features, they will be available on CodinGame too - together with updates of other languages.
You won’t get much benefit from multithreading here, as your code is run on a single physical core anyways.
I see that Rust has been also upgraded to 1.90, I am grateful for that!
However, the 3rd party crates that were available earlier and listed in the FAQ seem to be now missing (chrono 0.4.26, itertools 0.11.0, libc 0.2.147,rand 0.8.5, regex 1.8.4, time 0.3.22).
When fixing this, please
re-add them with their latest version (rand 0.9.2, itertools 0.14, regex 1.11)
also add rust_bigint 0.4 crate (or something similar)
error: extern location for rand does not exist: /opt/coderunner/rust/target/release/deps/librand-7dd91c178db20651.rlib
--> /tmp/answer.rs:9:5
|
9 | use rand::{rngs::*, Rng, SeedableRng};
| ^^^^
I get this error to day at 8 pm, this morning (10 am) it was correct !
There are some breaking changes in that rand upgrade - Updating to 0.9 - The Rust Rand Book is a good guide for anyone still having compilation errors.