# Dune usage example

**URL:** <https://discourse.rocq-prover.org/t/dune-usage-example/573>\
**Category:** Using Rocq\
**Created:** [January 23, 2020, 3:33pm UTC](https://discourse.rocq-prover.org/t/dune-usage-example/573 "2020-01-23T15:33:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vzaliva](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.rocq-prover.org/vzaliva/32/72_2.png) [@vzaliva](https://discourse.rocq-prover.org/u/vzaliva)\
**Post date:** [January 23, 2020, 3:33pm UTC](https://discourse.rocq-prover.org/t/dune-usage-example/573/1 "2020-01-23T15:33:28Z")

</div>

I am interested in trying to switch my Coq project to using `dune` as build system. The problem is I do code extraction and need to compile both Coq and extracted OCaml code. Are there examples of such dune builds? I would rather start from some working example than trying to figure it out on my own.

---

<div class="post-metadata">

**Author:** ![ejgallego](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.rocq-prover.org/ejgallego/32/10_2.png) [@ejgallego](https://discourse.rocq-prover.org/u/ejgallego)\
**Post date:** [January 24, 2020, 7:07pm UTC](https://discourse.rocq-prover.org/t/dune-usage-example/573/2 "2020-01-24T19:07:29Z")

</div>

Hi @vzaliva , unfortunately as of today there is no proper workflow for Coq + extraction using Dune.

We plan to support this, but we are still at “design” phase; see also [https://github.com/ocaml/dune/issues/2178](https://github.com/ocaml/dune/issues/2178)

There are several “hacks” you could try, for example using promotion and doing a “two phase” build, that’s likely to work OK , but a bit painful as it would require two calls to dune.
