3 ms·
> All the toys I've made to play with it during the last years went deprecated quickly In which sense? That dependencies evolved?
by the_mitsuhiko 8y ago
> All the toys I've made to play with it during the last years went deprecated quickly
In which sense? That dependencies evolved?
- hbbio 8y agoLanguages features, dependencies, etc. For instance one project: error[E0010]: allocations are not allowed in constants error[E0015]: calls in constants are limited to tuple structs and tuple variants Another: error: could not find native static library `brotli`, perhaps an -L flag is missing? error: aborting due to previous error error: Could not compile `brotli-sys`. And I'm not talking what happens if you don't fix versions in Cargo.toml.
- steveklabnik 8y agoAllocations were never allowed in constants, so I find that first one quite confusing. Any chance you can share the code? And the second one is because a system library is missing. You're saying you have it installed, and it used to build, but does no longer?
- hbbio 8y agoFor first one: const characters: Vec<char> = vec!['7', '+', '-', '*', '/', '^', '0']; For the second, I do have brotli installed (via brew) and I have no idea why it can't find it now. It used to build. Note that I don't use brotli directly but it comes as one of the 274 dependencies (!) of that code. npm again...
- steveklabnik 8y agoThanks, this is very helpful. Do you know when the first one ever compiled? I tried it on Rust 1.0, and on every version from 1.20-1.30, and it always failed. Ah, bummer. I haven't used the brotli lib, but that is unfortunate.