| 1 |
dependencies can be exported transitively: |
| 2 |
$ dune exec ./foo.exe |
| 3 |
|
| 4 |
transitive deps expressed in the dune-package |
| 5 |
|
| 6 |
$ dune build @install |
| 7 |
$ dune_cmd cat _build/install/default/lib/pkg/dune-package | sed "s/(lang dune .*)/(lang dune <version>)/" | dune_cmd sanitize |
| 8 |
(lang dune <version>) |
| 9 |
(name pkg) |
| 10 |
(sections (lib .) (libexec .)) |
| 11 |
(files |
| 12 |
(lib |
| 13 |
(META |
| 14 |
aaa/aaa$ext_lib |
| 15 |
aaa/aaa.cma |
| 16 |
aaa/aaa.cmi |
| 17 |
aaa/aaa.cmt |
| 18 |
aaa/aaa.cmx |
| 19 |
aaa/aaa.cmxa |
| 20 |
aaa/aaa.ml |
| 21 |
bbb/bbb$ext_lib |
| 22 |
bbb/bbb.cma |
| 23 |
bbb/bbb.cmi |
| 24 |
bbb/bbb.cmt |
| 25 |
bbb/bbb.cmx |
| 26 |
bbb/bbb.cmxa |
| 27 |
bbb/bbb.ml |
| 28 |
ccc/ccc$ext_lib |
| 29 |
ccc/ccc.cma |
| 30 |
ccc/ccc.cmi |
| 31 |
ccc/ccc.cmt |
| 32 |
ccc/ccc.cmx |
| 33 |
ccc/ccc.cmxa |
| 34 |
ccc/ccc.ml |
| 35 |
dune-package)) |
| 36 |
(libexec (aaa/aaa.cmxs bbb/bbb.cmxs ccc/ccc.cmxs))) |
| 37 |
(library |
| 38 |
(name pkg.aaa) |
| 39 |
(kind normal) |
| 40 |
(archives (byte aaa/aaa.cma) (native aaa/aaa.cmxa)) |
| 41 |
(plugins (byte aaa/aaa.cma) (native aaa/aaa.cmxs)) |
| 42 |
(native_archives aaa/aaa$ext_lib) |
| 43 |
(requires pkg.ccc (re_export pkg.bbb)) |
| 44 |
(main_module_name Aaa) |
| 45 |
(modes byte native) |
| 46 |
(modules |
| 47 |
(singleton |
| 48 |
(obj_name aaa) |
| 49 |
(visibility public) |
| 50 |
(source (path Aaa) (impl (path aaa/aaa.ml)))))) |
| 51 |
(library |
| 52 |
(name pkg.bbb) |
| 53 |
(kind normal) |
| 54 |
(archives (byte bbb/bbb.cma) (native bbb/bbb.cmxa)) |
| 55 |
(plugins (byte bbb/bbb.cma) (native bbb/bbb.cmxs)) |
| 56 |
(native_archives bbb/bbb$ext_lib) |
| 57 |
(requires (re_export pkg.ccc)) |
| 58 |
(main_module_name Bbb) |
| 59 |
(modes byte native) |
| 60 |
(modules |
| 61 |
(singleton |
| 62 |
(obj_name bbb) |
| 63 |
(visibility public) |
| 64 |
(source (path Bbb) (impl (path bbb/bbb.ml)))))) |
| 65 |
(library |
| 66 |
(name pkg.ccc) |
| 67 |
(kind normal) |
| 68 |
(archives (byte ccc/ccc.cma) (native ccc/ccc.cmxa)) |
| 69 |
(plugins (byte ccc/ccc.cma) (native ccc/ccc.cmxs)) |
| 70 |
(native_archives ccc/ccc$ext_lib) |
| 71 |
(main_module_name Ccc) |
| 72 |
(modes byte native) |
| 73 |
(modules |
| 74 |
(singleton |
| 75 |
(obj_name ccc) |
| 76 |
(visibility public) |
| 77 |
(source (path Ccc) (impl (path ccc/ccc.ml)))))) |