7 releases (breaking)

0.7.0 Sep 22, 2023
0.6.0 May 30, 2023
0.5.0 Jun 2, 2022
0.4.0 Jan 24, 2022
0.1.0 Dec 23, 2021

#128 in Science

Download history 19/week @ 2024-02-26 8/week @ 2024-03-11 60/week @ 2024-04-01

68 downloads per month
Used in mahf-coco

MIT/Apache

1.5MB
30K SLoC

C 29K SLoC // 0.1% comments Rust 459 SLoC // 0.0% comments

Coco

Crates.io docs.rs

Rust bindings for the COCO Numerical Black-Box Optimization Benchmarking Framework.

See https://github.com/numbbo/coco and https://numbbo.github.io/coco/.

Building and packaging

Requirements

  • git
  • gcc (or any other C compiler)
  • bindgen (cargo install bindgen-cli)
    • and libclang (install libclang-dev on Ubuntu)
  • bash (for generate.sh)

coco-sys

$ python do.py build-rust
$ cd code-experiments/build/rust/coco-sys
$ cargo build
$ # and when publishing
$ cargo package --allow-dirty
$ cargo publish --allow-dirty

coco-rs

$ cd code-experiments/build/rust
$ cargo build
$ # and when publishing
$ cargo package
$ cargo publish

Licensing

This code is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Dependencies

~0–2MB
~40K SLoC