Skip to content

Commit

Permalink
Use latest rust-staticlib-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupus committed Nov 5, 2024
1 parent 2cda486 commit 29cf735
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
(rule
(alias runtest)
(action
(run cargo test --workspace)))
(run dune-cargo-build @test --profile=%{profile} -- --workspace)))
6 changes: 3 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
(depends
(rust-staticlib-gen
(and
(>= 0.2.0)
(>= 0.2.1)
:with-test))
(rust-staticlib-virtual
(>= 0.2.0))
(>= 0.2.1))
(dune-cargo-build
(and
(>= 0.2.0)
(>= 0.2.1)
:build))
(ocamlformat
(and
Expand Down
6 changes: 3 additions & 3 deletions ocaml-rs-smartptr.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ homepage: "https://github.com/Lupus/ocaml-rs-smartptr"
bug-reports: "https://github.com/Lupus/ocaml-rs-smartptr/issues"
depends: [
"dune" {>= "3.7"}
"rust-staticlib-gen" {>= "0.2.0" & with-test}
"rust-staticlib-virtual" {>= "0.2.0"}
"dune-cargo-build" {>= "0.2.0" & build}
"rust-staticlib-gen" {>= "0.2.1" & with-test}
"rust-staticlib-virtual" {>= "0.2.1"}
"dune-cargo-build" {>= "0.2.1" & build}
"ocamlformat" {with-test & >= "0.26.2" & < "0.27.0"}
"odoc" {with-doc}
]
Expand Down
5 changes: 5 additions & 0 deletions rust-staticlib/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
; and builds statically and dynamically linked libraries, which consequently
; have all the defined symbols which are used by OCaml bindings.


; This alias includes generation of all Rust-related bits in staticlib.
(alias
(name populate-rust-staticlib))

; Create Cargo.toml file in this folder within source directory
(rule
(alias populate-rust-staticlib)
Expand Down

0 comments on commit 29cf735

Please sign in to comment.