FeanorTheElf / feanor-math

15 stars 1 forks source link

Compile using stable toolchain #5

Open skyf0l opened 1 day ago

skyf0l commented 1 day ago

As part of RsaCracker, I would like to integrate poly factoriation, but unfortunately feanor-math only seems to compile on nightly toolchain. Is there an easy way to compile it on stable one?

FeanorTheElf commented 1 day ago

No, I am sorry, but feanor-math heavily uses unstable features. You can have a look at the beginning of lib.rs:

#![feature(btree_cursors)]
#![feature(test)]
#![feature(min_specialization)]
#![feature(maybe_uninit_slice)]
#![feature(allocator_api)]
#![feature(new_uninit)]
#![feature(is_sorted)]
#![feature(fn_traits)]
#![feature(iter_advance_by)]
#![feature(unboxed_closures)]
#![feature(ptr_alignment_type)]
#![feature(never_type)]
#![feature(array_chunks)]
#![feature(doc_cfg)]

Most of them are just for convenience, but min_specialization and unboxed_closures are really important to make the current design work as it is.