Skip to content

Commit

Permalink
[Doc] Add missing entry for allowlist-item. (rust-lang#2659)
Browse files Browse the repository at this point in the history
While playing with bindgen, I noticed that the entry for allowlist-item
is missing from the official doc. This patch helps add it.

I've checked that the doc for allowlist_* and blocklist_* are correct.
  • Loading branch information
higuoxing authored Oct 9, 2023
1 parent 7b95673 commit 100ab4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/allowlisting.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ transitively used by a definition that matches them.
* [`bindgen::Builder::allowlist_function`](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.allowlist_function)
* [`bindgen::Builder::allowlist_var`](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.allowlist_var)
* [`bindgen::Builder::allowlist_file`](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.allowlist_file)
* [`bindgen::Builder::allowlist_item`](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.allowlist_item)

### Command Line

* `--allowlist-type <type>`
* `--allowlist-function <function>`
* `--allowlist-var <var>`
* `--allowlist-file <path>`
* `--allowlist-item <item>`

### Annotations

Expand Down

0 comments on commit 100ab4c

Please sign in to comment.