]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/libgit-rust'
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Feb 2025 18:08:53 +0000 (10:08 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Feb 2025 18:08:53 +0000 (10:08 -0800)
Foreign language interface for Rust into our code base has been added.

* js/libgit-rust:
  libgit: add higher-level libgit crate
  libgit-sys: also export some config_set functions
  libgit-sys: introduce Rust wrapper for libgit.a
  common-main: split init and exit code into new files

1  2 
Makefile
meson.build

diff --cc Makefile
index 42aaa2368adef17883e4b2633244c8acc3c8f07c,c9c54b6ab061b21b00f5a3d3236e9d92261aa7bb..90c9662ad33bae8bfaa911edb0aa7e1ec817ce8a
+++ b/Makefile
@@@ -2248,10 -2242,12 +2256,16 @@@ ifdef FSMONITOR_OS_SETTING
        COMPAT_OBJS += compat/fsmonitor/fsm-path-utils-$(FSMONITOR_OS_SETTINGS).o
  endif
  
 +ifdef WITH_BREAKING_CHANGES
 +      BASIC_CFLAGS += -DWITH_BREAKING_CHANGES
 +endif
 +
+ ifdef INCLUDE_LIBGIT_RS
+       # Enable symbol hiding in contrib/libgit-sys/libgitpub.a without making
+       # us rebuild the whole tree every time we run a Rust build.
+       BASIC_CFLAGS += -fvisibility=hidden
+ endif
  ifeq ($(TCLTK_PATH),)
  NO_TCLTK = NoThanks
  endif
diff --cc meson.build
Simple merge