-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates bindgen to 0.71. It also adds a test that verifies that the bundled bindings match the generated ones. Additionally it cleans up the generated bindings to only include items that are relevant for libpq
- Loading branch information
Showing
8 changed files
with
427 additions
and
5,693 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,27 @@ | ||
# DEVELOPMENT NOTES | ||
|
||
Use the following command to generate a new bindings file: | ||
```sh | ||
# keep the command in sync with the command in `src/make_bindings.rs" | ||
bindgen wrapper.h \ | ||
--rustified-enum ".*" | ||
--no-derive-default \ | ||
--generate "functions,types,vars,methods,constructors,destructors" \ | ||
--allowlist-var "PG_.*" \ | ||
--allowlist-var "LIBPQ_.*" \ | ||
--allowlist-var "PQ.*" \ | ||
--allowlist-type "Oid" \ | ||
--allowlist-type "ConnStatusType" \ | ||
--allowlist-type "Postgres.*" \ | ||
--allowlist-type "pg.*" \ | ||
--allowlist-type "PG.*" \ | ||
--allowlist-type "PQ.*" \ | ||
--allowlist-type "pq.*" \ | ||
--allowlist-function "PQ.*" \ | ||
--allowlist-function "lo_.*" \ | ||
--allowlist-function "pg_.*" \ | ||
--opaque-type "FILE" \ | ||
--blocklist-type "FILE" \ | ||
--raw-line "use libc::FILE;" \ | ||
-- -I pq-src/source/src/interfaces/libpq/ | ||
``` |
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.