forked from mozilla/cbindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
c9c90bf
commit 9880234
Showing
3 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters