Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support truncating or strict-named variants of parsing and formatting #400

Merged
merged 1 commit into from Mar 19, 2024

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Mar 18, 2024

This PR fills in the missing gaps from the spec around parsing/formatting modes. It adds two new variants of parser::from_str and parser::to_writer:

  • from_str_truncate/to_writer_truncate: Truncates any unknown bits, but still supports parsing and formatting hex values, like A | 0x2
  • from_str_strict/to_writer_strict: Only format and parse defined names, ignoring any other bits in formatting, and failing on them in parsing, like A | B.

@KodrAus KodrAus merged commit 6965e84 into bitflags:main Mar 19, 2024
9 checks passed
mergify bot pushed a commit to andrzejressel/pulumi-wasm that referenced this pull request Mar 19, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [bitflags](https://togithub.com/bitflags/bitflags) | workspace.dependencies | minor | `2.4.2` -> `2.5.0` |

---

### Release Notes

<details>
<summary>bitflags/bitflags (bitflags)</summary>

### [`v2.5.0`](https://togithub.com/bitflags/bitflags/blob/HEAD/CHANGELOG.md#250)

[Compare Source](https://togithub.com/bitflags/bitflags/compare/2.4.2...2.5.0)

#### What's Changed

-   Derive `Debug` for `Flag<B>` by [@&#8203;tgross35](https://togithub.com/tgross35) in [bitflags/bitflags#398
-   Support truncating or strict-named variants of parsing and formatting by [@&#8203;KodrAus](https://togithub.com/KodrAus) in [bitflags/bitflags#400

#### New Contributors

-   [@&#8203;tgross35](https://togithub.com/tgross35) made their first contribution in [bitflags/bitflags#398

**Full Changelog**: bitflags/bitflags@2.4.2...2.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andrzejressel/pulumi-wasm).
kodiakhq bot added a commit to YuiYukihira/hanabAI that referenced this pull request Mar 19, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [bitflags](https://togithub.com/bitflags/bitflags) | dependencies | minor | `2.4.2` -> `2.5.0` |

---

### Release Notes

<details>
<summary>bitflags/bitflags (bitflags)</summary>

### [`v2.5.0`](https://togithub.com/bitflags/bitflags/blob/HEAD/CHANGELOG.md#250)

[Compare Source](https://togithub.com/bitflags/bitflags/compare/2.4.2...2.5.0)

#### What's Changed

-   Derive `Debug` for `Flag<B>` by [@&#8203;tgross35](https://togithub.com/tgross35) in [bitflags/bitflags#398
-   Support truncating or strict-named variants of parsing and formatting by [@&#8203;KodrAus](https://togithub.com/KodrAus) in [bitflags/bitflags#400

#### New Contributors

-   [@&#8203;tgross35](https://togithub.com/tgross35) made their first contribution in [bitflags/bitflags#398

**Full Changelog**: bitflags/bitflags@2.4.2...2.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/YuiYukihira/hanabAI).



Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

1 participant