|
1 |
| -# rust-extraction |
| 1 | +# Coq Rust Extraction |
| 2 | +[](https://github.com/AU-COBRA/coq-rust-extraction/actions/workflows/build.yml) |
| 3 | +[](https://github.com/AU-COBRA/coq-rust-extraction/blob/master/LICENSE) |
| 4 | +[](https://au-cobra.github.io/coq-rust-extraction/) |
2 | 5 |
|
3 |
| -For documentation see [ConCert](https://github.com/AU-COBRA/ConCert) |
| 6 | + |
| 7 | +A framework for extracting Coq programs to Rust. |
| 8 | + |
| 9 | +## Meta |
| 10 | + |
| 11 | +- Author(s): |
| 12 | + - Danil Annenkov (initial) |
| 13 | + - Mikkel Milo (initial) |
| 14 | + - Jakob Botsch Nielsen (initial) |
| 15 | + - Bas Spitters (initial) |
| 16 | + - Eske Hoy Nielsen |
| 17 | +- License: [MIT](LICENSE) |
| 18 | +- Compatible Coq versions: 8.17 or later |
| 19 | +- Additional dependencies: MetaCoq |
| 20 | +- Coq namespace: `RustExtraction` |
| 21 | +- Related publication(s): |
| 22 | + - [Extracting functional programs from Coq, in Coq](https://arxiv.org/abs/2108.02995) doi:[10.1017/S0956796822000077](https://doi.org/10.1017/S0956796822000077) |
| 23 | + - ["Extending MetaCoq Erasure: Extraction to Rust and Elm"](https://dannenkov.me/papers/extraction-rust-elm-coq-workshop2021.pdf) |
| 24 | + - ["Extracting Smart Contracts Tested and Verified in Coq"](https://arxiv.org/abs/2012.09138) doi:[10.1145/3437992.3439934](https://doi.org/10.1145/3437992.3439934) |
| 25 | + |
| 26 | +## Building and installation instructions |
| 27 | + |
| 28 | +The easiest way to install the latest released version is via [OPAM](https://opam.ocaml.org/doc/Install.html): |
| 29 | + |
| 30 | +```shell |
| 31 | +opam repo add coq-released https://coq.inria.fr/opam/released |
| 32 | +opam install coq-rust-extraction |
| 33 | +``` |
| 34 | + |
| 35 | +To instead build and install manually, do: |
| 36 | + |
| 37 | +```shell |
| 38 | +opam repo add coq-released https://coq.inria.fr/opam/released |
| 39 | +git clone https://github.com/AU-COBRA/coq-rust-extraction.git |
| 40 | +cd coq-rust-extraction |
| 41 | +opam install . --deps-only |
| 42 | +make #or make -j <number-of-cores-on-your-machine> |
| 43 | +make install |
| 44 | +``` |
| 45 | + |
| 46 | +## Documentation |
| 47 | + |
| 48 | +For documentation see [examples](/tests/theories/) and [generated CoqDoc](https://au-cobra.github.io/coq-rust-extraction/). |
| 49 | + |
| 50 | +Additional examples can be found in [ConCert](https://github.com/AU-COBRA/ConCert). |
0 commit comments