Skip to content

Commit

Permalink
Update rust staticlib gen to 0.2.2 (git) + fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupus committed Nov 11, 2024
1 parent 64b24b2 commit af841a0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ members = [

[patch.crates-io]
ocaml-rs-smartptr = { git = "https://github.com/Lupus/ocaml-rs-smartptr.git" }

# See https://github.com/dtolnay/linkme/issues/61
[profile.dev]
lto = "thin"
3 changes: 3 additions & 0 deletions rust-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ build: [
x-rust-stubs-crate: "ocaml-lwt-interop"
pin-depends: [
["ocaml-rs-smartptr.0.1.0" "git+https://github.com/Lupus/ocaml-rs-smartptr.git"]
["rust-staticlib-gen.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
["rust-staticlib-virtual.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
["dune-cargo-build.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
]
3 changes: 3 additions & 0 deletions rust-async.opam.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
x-rust-stubs-crate: "ocaml-lwt-interop"
pin-depends: [
["ocaml-rs-smartptr.0.1.0" "git+https://github.com/Lupus/ocaml-rs-smartptr.git"]
["rust-staticlib-gen.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
["rust-staticlib-virtual.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
["dune-cargo-build.0.2.2" "git+https://github.com/Lupus/rust-staticlib-gen.git#0.2.2"]
]
4 changes: 3 additions & 1 deletion rust-staticlib/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
; see https://github.com/rust-lang/cargo/issues/6790

(rule
(targets librust_staticlib_rust_async.a dllrust_staticlib_rust_async.so)
(targets
"librust_staticlib_rust_async%{ocaml-config:ext_lib}"
"dllrust_staticlib_rust_async%{ocaml-config:ext_dll}")
(deps
(alias rust-universe) ; rebuild only if Rust bits change, linking is slow
Cargo.toml)
Expand Down

0 comments on commit af841a0

Please sign in to comment.