git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: RUST_LIB dependency on LIB_FILE in Makefile

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 1, 2026, 16:28 UTC
Message-ID
<akVAI4dJlC_ZdguT@fruit.crustytoothpaste.net>
In-Reply-To
<akO9JTUIlHqBrgny@pine.grzadka>
On 2026-06-30 at 13:07:29, Jan Palus wrote:
Show 7 quoted lines
> According to Makefile $(RUST_LIB) target depends on $(LIB_FILE):
> 
> $(RUST_LIB): Cargo.toml $(RUST_SOURCES) $(LIB_FILE)
> 
> but is that really the case? As far as I can tell $(RUST_LIB) does not
> use $(LIB_FILE) in any way and there's no such dependency in
> meson.build.
It is really the case.  The Rust code in `src/hash.rs` requires C
functions in `libgit.a`.  The tests won't run via `cargo test` if it's
not built.  There will be additional uses of this code in the relatively
  near future and they will definitely require calls to `libgit.a`.

The lack of Meson functionality is likely an oversight and I'm sure a patch to fix that would be accepted.

-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: Jan Palus
Message 2 of 2 in “RUST_LIB dependency on LIB_FILE in Makefile”
  1. Jan PalusJun 30, 2026
  2. brian m. carlsonJul 1, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.