Logo
Explore Help
Register Sign In
patrickaldis/garnet
1
0
Fork 0
You've already forked garnet
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
garnet/rust/Cargo.lock

8 lines
153 B
Plaintext
Raw Normal View History

Initial
2026-02-17 14:57:34 +00:00
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
Call Rust from Haskell with `cargo-cabal` and `hs-bindgen` See https://sraka.xyz/posts/hs-bindgen-introduction.html. For now, this is a shell-based workflow, rather than using Nix to build everything, i.e. `nix develop` works but `nix build` doesn't. And `cargo build` has to be called manually to create the C library, rather than `cabal` being clever enough to invoke it itself. We ran `cargo cabal init` from the `rust` directory (`nix shell github:yvan-sraka/cargo-cabal`), which generated `hsbindgen.toml` (which we use), and `Setup.lhs` (which just added `extra-lib-dirs`, and with the wrong paths, so we dspecify those statically instead in `garnet.cabal`). We also follow its advice to use `staticlib`. Also, after we ran the first `cargo build` (requiring a `mkdir rust/src` before it would run), we took the generated the Haskell file, and moved the main contents in to `Main.hs` manually.
2026-02-18 15:49:08 +00:00
[[package]]
name = "garnet-rs"
Initial
2026-02-17 14:57:34 +00:00
version = "0.1.0"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 112ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API