rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.65k stars 381 forks source link

Making Binding public #928

Open edrevo opened 1 year ago

edrevo commented 1 year ago

Sometimes when using git2 I'd like to use some libgit2 functionality that isn't exposed. libgit2-sys is already exporting the functions I am interested in, but I cannot access the raw pointer from a git2 object because Binding is not being publicly exported by the crate.

How does exporting this trait sound? It would allow for an escape hatch to be able to interact with libgit2-sys.