From 4ea49e0381b27649470127e90f54f9f87234da10 Mon Sep 17 00:00:00 2001 From: Sudha Parimala Date: Thu, 17 Apr 2025 16:41:39 +0200 Subject: [PATCH] Add ocaml dependency to rust-staticlib-virtual Fixes build with dune package management --- dune-project | 4 +++- rust-staticlib-virtual.opam | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dune-project b/dune-project index f63305d..46d0026 100644 --- a/dune-project +++ b/dune-project @@ -59,7 +59,9 @@ "A Sentinel/marker package to define the rust staticlib virtual library") (description "The rust-staticlib-virtual package is a sentinel/marker package that defines a virtual dune library that indicates presence of Rust dependencies somewhere down the dependency chain. To have an implementation of this virtual library in your project, please use `rust-staticlib-gen` tool: https://github.com/Lupus/rust-staticlib-gen") - (depends)) + (depends + (ocaml + (>= 4.13)))) (package (name dune-cargo-build) diff --git a/rust-staticlib-virtual.opam b/rust-staticlib-virtual.opam index 9602cc3..1beb25a 100644 --- a/rust-staticlib-virtual.opam +++ b/rust-staticlib-virtual.opam @@ -11,6 +11,7 @@ homepage: "https://github.com/Lupus/rust-staticlib-gen" bug-reports: "https://github.com/Lupus/rust-staticlib-gen/issues" depends: [ "dune" {>= "2.7"} + "ocaml" {>= "4.13"} "odoc" {with-doc} ] build: [