antic

Crates.ioantic
lib.rsantic
version0.1.0
sourcesrc
created_at2020-07-13 20:58:45.08816
updated_at2020-07-13 20:58:45.08816
descriptionbindings for the antic C library for algebraic number theory
homepagehttps://github.com/CyclotomicFields/antic-rs
repositoryhttps://github.com/CyclotomicFields/antic-rs
max_upload_size
id264823
size832,721
Kaashif Hymabaccus (kaashif)

documentation

README

antic-rs

This is a wrapper for the antic library for algebraic number theory.

Great library in terms of functionality, but the API is terrible because it's written in C! No borrow checking, no lifetime management, and worst of all, no RAII, so you have to remember to initialise and free objects yourself.

All of this can be solved by providing a safe Rust wrapper library.

This is mainly implemented for benchmarks in the code for our cyclotomic field library.

To compile this you need to have antic and flint installed.

bindgen invocation

The src/bindings.rs source file is generated by the script generate_bindings.sh, which does some magic to get bindgen to generate legal Rust code.

Commit count: 10

cargo fmt