Skip to content

Making Binding public #928

Open
Open
@edrevo

Description

@edrevo
Contributor

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.

Activity

linked a pull request that will close this issue on Mar 23, 2023
wiiznokes

wiiznokes commented on Jul 3, 2025

@wiiznokes

i'm interested in the raw::git_libgit2_opts function. It would be nice to add a feature like "raw", to reexport libgit2-sys, to avoid version mismatch and convenience. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @edrevo@wiiznokes

      Issue actions

        Making Binding public · Issue #928 · rust-lang/git2-rs