-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune-cargo-build.opam
33 lines (33 loc) · 1.2 KB
/
dune-cargo-build.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Tool to invoke Cargo for building Rust crates within the dune sandbox"
description:
"dune-cargo-build is a tool that runs cargo build in offline mode for a specified crate, ensuring compatibility with dune's/opam's sandboxing. It parses Cargo's JSON output to determine the produced artifacts and copies them to the current directory, renaming them to match what OCaml expects for foreign stubs. This tool is useful for integrating Rust build processes into OCaml projects managed by dune."
maintainer: ["Konstantin Olkhovskiy <[email protected]>"]
authors: ["Konstantin Olkhovskiy <[email protected]>"]
license: "Apache-2.0"
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"}
"yojson" {>= "2.2.2"}
"ocamlformat" {with-test & >= "0.26.2" & < "0.27.0"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/Lupus/rust-staticlib-gen.git"