Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying version for macro expansion. #928

Commits on Feb 15, 2024

  1. feat: support specifying version for expansion.

    See: [mozilla#900].
    
    Previously, cbindgen might sometimes match the wrong version of a crate
    if the crate occurs multiple times in the dependency list produced by
    `cargo metadata`. This meant that you'd observe transient errors where
    _sometimes_ the right output would be produced (when the intended
    version is macro-expanded), and sometimes it would not (when the wrong
    version is macro-expanded).
    
    This commit modifies the configuration to permit optionally specifying
    name and version separately instead of solely specifying version.
    
    This is an initial draft, as I have not yet been able to test it.
    
    [mozilla#900]: mozilla#900
    
    Signed-off-by: Andrew Lilley Brinker <alilleybrinker@gmail.com>
    alilleybrinker committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    9880234 View commit details
    Browse the repository at this point in the history