Git development
 help / color / mirror / Atom feed
* RUST_LIB dependency on LIB_FILE in Makefile
@ 2026-06-30 13:07 Jan Palus
  2026-07-01 16:28 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Palus @ 2026-06-30 13:07 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RUST_LIB dependency on LIB_FILE in Makefile
  2026-06-30 13:07 RUST_LIB dependency on LIB_FILE in Makefile Jan Palus
@ 2026-07-01 16:28 ` brian m. carlson
  0 siblings, 0 replies; 2+ messages in thread
From: brian m. carlson @ 2026-07-01 16:28 UTC (permalink / raw)
  To: Jan Palus; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

On 2026-06-30 at 13:07:29, Jan Palus wrote:
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 325 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-01 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 13:07 RUST_LIB dependency on LIB_FILE in Makefile Jan Palus
2026-07-01 16:28 ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox