Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new release] rust-staticlib-gen (3 packages) (0.2.0) #26750

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions packages/dune-cargo-build/dune-cargo-build.0.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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 <lupus@oxnull.net>"]
authors: ["Konstantin Olkhovskiy <lupus@oxnull.net>"]
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"}
mseri marked this conversation as resolved.
Show resolved Hide resolved
"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"
url {
src:
"https://github.com/Lupus/rust-staticlib-gen/releases/download/0.2.0/rust-staticlib-gen-0.2.0.tbz"
checksum: [
"sha256=02d3bb345f83237df6bf68ffd32a277b4afc82cb90eedffb377b16e6ad42ab39"
"sha512=9c7df3da32085bfb7751e727148df8b81985d601ff1ede10e6685be3625d96e377e1fa1a5214361f6e857f2c1ffa45222d84bd603f1b90f4a7f593aea46a4101"
]
}
x-commit-hash: "278416ae65ba47bbbaeedd507c7bee7ba679ad1d"
49 changes: 49 additions & 0 deletions packages/rust-staticlib-gen/rust-staticlib-gen.0.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
opam-version: "2.0"
synopsis: "Utility for generating Rust static libraries for OCaml projects"
description:
"rust-staticlib-gen is a tool designed to streamline the integration of Rust code into OCaml projects. It automates the generation of build files and orchestrates the build process, allowing OCaml code to seamlessly interface with Rust libraries. This tool extracts Rust crate dependencies from opam files, generates necessary dune and Cargo.toml files, and builds the Rust static libraries. It ensures compatibility between OCaml bindings and Rust crates by specifying exact versions in Cargo.toml."
maintainer: ["Konstantin Olkhovskiy <lupus@oxnull.net>"]
authors: ["Konstantin Olkhovskiy <lupus@oxnull.net>"]
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"}
"toml" {>= "7.1.0"}
"yojson" {>= "2.2.2"}
"sexplib0" {>= "v0.16.0"}
"parsexp" {>= "v0.16.0"}
"opam-client" {>= "2.2.1" & < "2.3"}
"opam-state" {>= "2.2.1" & < "2.3"}
"opam-solver" {>= "2.2.1" & < "2.3"}
"fpath" {>= "0.7.3"}
"cmdliner" {>= "1.3.0"}
"ocamlformat" {with-test & >= "0.26.2" & < "0.27.0"}
"rust-staticlib-virtual" {= version}
"dune-cargo-build" {= version}
"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"
url {
src:
"https://github.com/Lupus/rust-staticlib-gen/releases/download/0.2.0/rust-staticlib-gen-0.2.0.tbz"
checksum: [
"sha256=02d3bb345f83237df6bf68ffd32a277b4afc82cb90eedffb377b16e6ad42ab39"
"sha512=9c7df3da32085bfb7751e727148df8b81985d601ff1ede10e6685be3625d96e377e1fa1a5214361f6e857f2c1ffa45222d84bd603f1b90f4a7f593aea46a4101"
]
}
x-commit-hash: "278416ae65ba47bbbaeedd507c7bee7ba679ad1d"
38 changes: 38 additions & 0 deletions packages/rust-staticlib-virtual/rust-staticlib-virtual.0.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
opam-version: "2.0"
synopsis:
"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"
maintainer: ["Konstantin Olkhovskiy <lupus@oxnull.net>"]
authors: ["Konstantin Olkhovskiy <lupus@oxnull.net>"]
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"}
"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"
url {
src:
"https://github.com/Lupus/rust-staticlib-gen/releases/download/0.2.0/rust-staticlib-gen-0.2.0.tbz"
checksum: [
"sha256=02d3bb345f83237df6bf68ffd32a277b4afc82cb90eedffb377b16e6ad42ab39"
"sha512=9c7df3da32085bfb7751e727148df8b81985d601ff1ede10e6685be3625d96e377e1fa1a5214361f6e857f2c1ffa45222d84bd603f1b90f4a7f593aea46a4101"
]
}
x-commit-hash: "278416ae65ba47bbbaeedd507c7bee7ba679ad1d"