de8a88057e
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
build.rs | ||
public_symbol_export.c | ||
public_symbol_export.h |
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.