-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
80: update bindgen to fix incorrect proj results on apple silicon r=lnicola a=michaelkirk FIXES #52 Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
- Loading branch information
Showing
5 changed files
with
294 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Notes for maintainers | ||
|
||
## Generating docs from bindings | ||
|
||
Whenever updating libproj or bindgen you must regenerate the prebuilt bindings | ||
at `proj-sys/src/bindings_docs-rs.rs`. | ||
|
||
These prebuilt bindings are only used for generating documentation - e.g. on | ||
https://docs.rs. Actual usage of the crate depends on dynamically built bindings, but | ||
that entails having libproj installed or built from source, which we can't | ||
expect docs.rs to do. | ||
|
||
## To update the prebuilt bindings | ||
|
||
Currently the process looks like: | ||
|
||
``` | ||
cd proj-sys | ||
cargo clean | ||
cargo build | ||
find ../target/proj-sys-* -name bindings_docs-rs.rs | ||
``` | ||
|
||
copy that file over the `src/bindings_docs-rs.rs`, but retain the header: | ||
|
||
``` | ||
/* THESE ARE NOT LIVE BINDINGS */ | ||
/* THEY EXIST FOR USE BY DOCS-RS ONLY */ | ||
``` | ||
|
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
Oops, something went wrong.