Closed dimpase closed 5 months ago
@kaashif - is this abandoned?
Yes, this is abandoned! But I'll fix this anyway. I really never expected anyone to actually try to build this - this repo was always built using nightly Rust and evidently I was relying on something that eventually changed.
I am now able to build and run tests using nightly after fixing those errors:
$ cargo +nightly test
...
test result: ok. 92 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.49s
...
The reason it still "needs" nightly is that it uses black_box
which hadn't been stabilised at the time of writing. It has been stabilised now, under std::hint
: https://doc.rust-lang.org/std/hint/fn.black_box.html.
I should update this to use stable APIs only (which I think is possible) so this works on stable and thus won't break in future.
Removing the unstable API usage was actually really easy, this now builds with stable Rust too:
$ cargo test
...
test result: ok. 92 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.40s
...
I added CI to ensure this continues to build with stable Rust going forward: https://github.com/CyclotomicFields/cyclotomic/actions/runs/8494108062/job/23268859239
untouched, one gets errors building (old) mpfr in gmp-mpfr. Updating rug to current, one gets the following
this is with rustc/cargo 1.73.0