Skip to content

Add support for ignoring parsing of top-level items.#519

Merged
emilio merged 6 commits intomozilla:masterfrom
emilio:ignore
May 15, 2020
Merged

Add support for ignoring parsing of top-level items.#519
emilio merged 6 commits intomozilla:masterfrom
emilio:ignore

Conversation

@emilio
Copy link
Copy Markdown
Collaborator

@emilio emilio commented May 1, 2020

As a custom annotation like the others.

Fixes #518 and cleans up a bunch of the related code while at it.

@emilio emilio merged commit b04aa7e into mozilla:master May 15, 2020
@emilio emilio deleted the ignore branch May 15, 2020 13:43
bors bot added a commit to crypto-com/thaler that referenced this pull request Jun 26, 2020
1816: Bump cbindgen from 0.14.2 to 0.14.3 r=tomtau a=dependabot-preview[bot]

Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.2 to 0.14.3.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eqrion/cbindgen/blob/master/CHANGES">cbindgen's changelog</a>.</em></p>
<blockquote>
<h2>0.14.3</h2>
<pre><code> * Introduce cbindgen:ignore comment annotation, to allow ignoring items or modules. ([#519](mozilla/cbindgen#519))
 * Support for casts in constant expressions. ([#526](mozilla/cbindgen#526))
 * Make a non-fatal error a warning message. ([#535](mozilla/cbindgen#535))
 * Add a --metadata option to the CLI, to allow passing pre-computed cargo metadata. ([#538](mozilla/cbindgen#538))
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/eqrion/cbindgen/commit/cc2876f709808a52d132a5f84e53ca1964eb92db"><code>cc2876f</code></a> Release 0.14.3</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/ce28fd7c8ad89475380f8233cc6b0c383886997f"><code>ce28fd7</code></a> main: Allow to pass a metadata file from the CLI.</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/229b714511a183ff3846ddf6983671ed757e1b25"><code>229b714</code></a> README: add etesync-rs to the example usages</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/09e6549a61628d58d430bf4e8efa5a070da62321"><code>09e6549</code></a> Log non-fatal failure as a warning</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/bb00d1c4a8e53c56880586987f0e1512fb252b9a"><code>bb00d1c</code></a> Support renaming for constants with casts, and properly order them in the out...</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/967c3783082c9183ceafc79659d400051f9e8e8d"><code>967c378</code></a> Support casts in constants</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/d747939e1837fb23048b0654a691465d6921f6a8"><code>d747939</code></a> Add instructions for C language switch</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/b04aa7e6991bc9d12392d47cffea077aa56d8b87"><code>b04aa7e</code></a> parser: Introduce cbindgen:ignore comment annotation, to allow ignoring items...</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/f75d65ccb81169f4e3fd45c98a4f0f91a3581456"><code>f75d65c</code></a> parser: Factor out the &quot;should skip parsing&quot; test.</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/6323a5d981313373578395df96e0ca9397a9bd76"><code>6323a5d</code></a> parser: Unify a bit the attribute code.</li>
<li>Additional commits viewable in <a href="https://github.com/eqrion/cbindgen/compare/v0.14.2...v0.14.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.2&new-version=0.14.3)](https://dependabot.com/compatibility-score/?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.2&new-version=0.14.3)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
bors-servo added a commit to servo/servo that referenced this pull request Sep 27, 2020
…jang

Bump cbindgen from 0.14.2 to 0.14.6

Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.2 to 0.14.6.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eqrion/cbindgen/blob/master/CHANGES">cbindgen's changelog</a>.</em></p>
<blockquote>
<h2>0.14.6</h2>
<pre><code> * Fixed the builds with older versions of rustc.
</code></pre>
<h2>0.14.5</h2>
<pre><code> * Add support to specify line ending style ([#568](mozilla/cbindgen#568))
 * Add cbindgen:ptrs-as-arrays annotation to allow making function
   arguments C/C++ arrays.
</code></pre>
<h2>0.14.4</h2>
<pre><code> * Allow to override the mangling separator ([#502](mozilla/cbindgen#502))
<ul>
<li>
<p>cbindgen now handles better having ZSTs in template parameters, and
default template parameters (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/563">#563</a>).</p>
</li>
<li>
<p>Support for annotating nonnull pointers (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/558">#558</a>)</p>
</li>
<li>
<p>Fixed bitflags that overflow a signed integer (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/556">#556</a>)</p>
</li>
<li>
<p>Support for wildcard argument names (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/550">#550</a>)</p>
</li>
<li>
<p>Support for the never return type, with configurable annotation (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/549">#549</a>)</p>
</li>
<li>
<p>Properly reject arrays as function arguments (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/540">#540</a>)
</code></pre></p>
</li>
</ul>
<h2>0.14.3</h2>
<pre><code> * Introduce cbindgen:ignore comment annotation, to allow ignoring items or modules. ([#519](mozilla/cbindgen#519))
 * Support for casts in constant expressions. ([#526](mozilla/cbindgen#526))
 * Make a non-fatal error a warning message. ([#535](mozilla/cbindgen#535))
 * Add a --metadata option to the CLI, to allow passing pre-computed cargo metadata. ([#538](mozilla/cbindgen#538))
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/eqrion/cbindgen/commit/e4da7d39a6d1481420440b37dcfe85d7ea4527d5"><code>e4da7d3</code></a> v0.14.6</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/1e46e53ae22b1d85bc794911dd750543e374bad7"><code>1e46e53</code></a> v0.14.5</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/fe656442a562ad1c7c19706d7b068492ecf58230"><code>fe65644</code></a> Document ptrs-as-arrays annotation</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/07c3aed03e6a3b53a580f8c6cfc4c9ea446104bb"><code>07c3aed</code></a> Add ptrs-as-arrays tests</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/ee4638ab10f4a7dcf9a8abd3b5fc2e2463dfcde5"><code>ee4638a</code></a> Add an annotation to represent pointers as arrays</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/73ea04c2b0f8926ebb1491ab311e591721d5dbd2"><code>73ea04c</code></a> Add badge to README</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/6b56082be8403c9dfe237cf0d4274369b7a83cd9"><code>6b56082</code></a> Replace travis with Github Actions</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/fec6bdad8cd9a0d37d506a6033ae3ee21c4f6989"><code>fec6bda</code></a> Fix clippy warnings</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/3ca0e75ed906ae505740657647b08e04cd844f14"><code>3ca0e75</code></a> Add support for specifying line ending style (<a href="https://github-redirect.dependabot.com/eqrion/cbindgen/issues/568">#568</a>)</li>
<li><a href="https://github.com/eqrion/cbindgen/commit/83cdbd897f02eaecb090a3f216899dcc14b43959"><code>83cdbd8</code></a> Release v.0.14.4</li>
<li>Additional commits viewable in <a href="https://github.com/eqrion/cbindgen/compare/v0.14.2...v0.14.6">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.2&new-version=0.14.6)](https://dependabot.com/compatibility-score/?dependency-name=cbindgen&package-manager=cargo&previous-version=0.14.2&new-version=0.14.6)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude parsing of module paths in crate

1 participant