git/contrib/libgit-rs/libgit-sys
Calvin Wan de8a88057e Makefile: add option to build and test libgit-rs and libgit-rs-sys
Add libgitrs, libgitrs-sys, libgitrs-test, and libgitrs-sys-test targets
to their respective Makefiles so they can be built and tested without
having to run cargo build/test.

Add build variable, INCLUDE_LIBGIT_RS, that when set, automatically
builds and tests libgit-rs and libgit-rs-sys when `make all` is run.

Co-authored-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
2024-10-16 18:13:09 -04:00
..
src libgit: add higher-level libgit crate 2024-10-16 18:13:08 -04:00
Cargo.lock libgit-sys: introduce Rust wrapper for libgit.a 2024-10-16 18:13:08 -04:00
Cargo.toml libgit-sys: introduce Rust wrapper for libgit.a 2024-10-16 18:13:08 -04:00
README.md libgit-sys: introduce Rust wrapper for libgit.a 2024-10-16 18:13:08 -04:00
build.rs Makefile: add option to build and test libgit-rs and libgit-rs-sys 2024-10-16 18:13:09 -04:00
public_symbol_export.c libgit-sys: also export some config_set functions 2024-10-16 18:13:08 -04:00
public_symbol_export.h libgit-sys: also export some config_set functions 2024-10-16 18:13:08 -04:00

README.md

cgit-info

A small hacky proof-of-concept showing how to provide a Rust FFI for the Git library.

Building

cargo build automatically builds and picks up on changes made to both the Rust wrapper and git.git code so there is no need to run make beforehand.

Running

Assuming you don't make any changes to the Git source, you can just work from contrib/cgit-rs and use cargo build or cargo run as usual.