alpm-types merge requestshttps://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests2024-03-18T09:26:45Zhttps://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests/46fix(deps): update rust crate strum_macros to 0.26.22024-03-18T09:26:45Zrenovatefix(deps): update rust crate strum_macros to 0.26.2This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum_macros](https://github.com/Peternator7/strum) | dependencies | minor | `0.25.2` -> `0.26.2` |
---
### Release Notes
<details>
<su...This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum_macros](https://github.com/Peternator7/strum) | dependencies | minor | `0.25.2` -> `0.26.2` |
---
### Release Notes
<details>
<summary>Peternator7/strum (strum_macros)</summary>
### [`v0.26.2`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0262)
[Compare Source](https://github.com/Peternator7/strum/compare/v0.26.1...v0.26.2)
- [#​337](https://github.com/Peternator7/strum/pull/337): Fix missing generic impls for `EnumTryAs`
- [#​334](https://github.com/Peternator7/strum/pull/334): Support prefix in `AsRefStr`. Technically a breaking change,
but `prefix` was just added in `0.26.0` so it's a newer feature and it makes the feature more consisent in general.
### [`v0.26.1`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0261)
- [#​325](https://github.com/Peternator7/strum/pull/325): use `core` instead of `std` in VariantArray.
### [`v0.26.0`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0260)
##### Breaking Changes
- The `EnumVariantNames` macro has been renamed `VariantNames`. The deprecation warning should steer you in
the right direction for fixing the warning.
- The Iterator struct generated by EnumIter now has new bounds on it. This shouldn't break code unless you manually
added the implementation in your code.
- `Display` now supports format strings using named fields in the enum variant. This should be a no-op for most code.
However, if you were outputting a string like `"Hello {field}"`, this will now be interpretted as a format string.
- EnumDiscriminant now inherits the repr and discriminant values from your main enum. This makes the discriminant type
closer to a mirror of the original and that's always the goal.
##### New features
- The `VariantArray` macro has been added. This macro adds an associated constant `VARIANTS` to your enum. The constant
is a `&'static [Self]` slice so that you can access all the variants of your enum. This only works on enums that only
have unit variants.
```rust
use strum::VariantArray;
#[derive(Debug, VariantArray)]
enum Color {
Red,
Blue,
Green,
}
fn main() {
println!("{:?}", Color::VARIANTS); // prints: ["Red", "Blue", "Green"]
}
```
- The `EnumTable` macro has been *experimentally* added. This macro adds a new type that stores an item for each variant
of the enum. This is useful for storing a value for each variant of an enum. This is an experimental feature because
I'm not convinced the current api surface area is correct.
```rust
use strum::EnumTable;
#[derive(Copy, Clone, Debug, EnumTable)]
enum Color {
Red,
Blue,
Green,
}
fn main() {
let mut counts = ColorTable::filled(0);
for color in &[Color::Red, Color::Red, Color::Green]] {
counts[color] += 1;
}
assert_eq!(counts[Color::Red], 2);
assert_eq!(counts[Color::Blue], 0);
assert_eq!(counts[Color::Green], 1);
}
```
- `Display` has 2 new features:
- the `strum(prefix = "some_value")` attribute on an enum now allows you to prepend a string onto every
variant when you serialize it.
- Custom `to_string` and `serialize` attributes now support string interopolation on serialization.
##### MR's Merged
- [#​322](https://github.com/Peternator7/strum/pull/322): avoid collisions on `std::fmt::Debug`
- [#​321](https://github.com/Peternator7/strum/pull/321): avoid conflicts with consecutive underscores.
- [#​314](https://github.com/Peternator7/strum/pull/314): add additional bounds to EnumIterator
- [#​311](https://github.com/Peternator7/strum/pull/311): add FusedIterator bounds to EnumIterator
- [#​297](https://github.com/Peternator7/strum/pull/297): New macro, add `VariantArray`
- [#​296](https://github.com/Peternator7/strum/pull/296): adds prefix attribute to To/From String macros.
- [#​294](https://github.com/Peternator7/strum/pull/294): use named enum fields in to_string macro.
- [#​288](https://github.com/Peternator7/strum/pull/288): discriminant enums now inherit the repr from the original enum.
- [#​279](https://github.com/Peternator7/strum/pull/279): Add `EnumTable` macro to generate a mapping between fieldless variants and data.
### [`v0.25.3`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0253-strummacros)
Received a number of bug fix MR's.
- [#​300](https://github.com/Peternator7/strum/pull/300): Fixes EnumIter for enums named `Option`.
- [#​301](https://github.com/Peternator7/strum/pull/301): Improved doc comments
- [#​304](https://github.com/Peternator7/strum/pull/304): Removed some unused Vec's
- [#​305](https://github.com/Peternator7/strum/pull/305): Added generic support to `EnumIs`
</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 MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy43Ny4xIiwidXBkYXRlZEluVmVyIjoiMzcuNzcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->https://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests/45fix(deps): update rust crate strum to 0.26.22024-03-18T09:26:42Zrenovatefix(deps): update rust crate strum to 0.26.2This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum](https://github.com/Peternator7/strum) | dependencies | minor | `0.25.0` -> `0.26.2` |
---
### Release Notes
<details>
<summary>P...This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum](https://github.com/Peternator7/strum) | dependencies | minor | `0.25.0` -> `0.26.2` |
---
### Release Notes
<details>
<summary>Peternator7/strum (strum)</summary>
### [`v0.26.2`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0262)
[Compare Source](https://github.com/Peternator7/strum/compare/v0.26.1...v0.26.2)
- [#​337](https://github.com/Peternator7/strum/pull/337): Fix missing generic impls for `EnumTryAs`
- [#​334](https://github.com/Peternator7/strum/pull/334): Support prefix in `AsRefStr`. Technically a breaking change,
but `prefix` was just added in `0.26.0` so it's a newer feature and it makes the feature more consisent in general.
### [`v0.26.1`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0261)
- [#​325](https://github.com/Peternator7/strum/pull/325): use `core` instead of `std` in VariantArray.
### [`v0.26.0`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0260)
##### Breaking Changes
- The `EnumVariantNames` macro has been renamed `VariantNames`. The deprecation warning should steer you in
the right direction for fixing the warning.
- The Iterator struct generated by EnumIter now has new bounds on it. This shouldn't break code unless you manually
added the implementation in your code.
- `Display` now supports format strings using named fields in the enum variant. This should be a no-op for most code.
However, if you were outputting a string like `"Hello {field}"`, this will now be interpretted as a format string.
- EnumDiscriminant now inherits the repr and discriminant values from your main enum. This makes the discriminant type
closer to a mirror of the original and that's always the goal.
##### New features
- The `VariantArray` macro has been added. This macro adds an associated constant `VARIANTS` to your enum. The constant
is a `&'static [Self]` slice so that you can access all the variants of your enum. This only works on enums that only
have unit variants.
```rust
use strum::VariantArray;
#[derive(Debug, VariantArray)]
enum Color {
Red,
Blue,
Green,
}
fn main() {
println!("{:?}", Color::VARIANTS); // prints: ["Red", "Blue", "Green"]
}
```
- The `EnumTable` macro has been *experimentally* added. This macro adds a new type that stores an item for each variant
of the enum. This is useful for storing a value for each variant of an enum. This is an experimental feature because
I'm not convinced the current api surface area is correct.
```rust
use strum::EnumTable;
#[derive(Copy, Clone, Debug, EnumTable)]
enum Color {
Red,
Blue,
Green,
}
fn main() {
let mut counts = ColorTable::filled(0);
for color in &[Color::Red, Color::Red, Color::Green]] {
counts[color] += 1;
}
assert_eq!(counts[Color::Red], 2);
assert_eq!(counts[Color::Blue], 0);
assert_eq!(counts[Color::Green], 1);
}
```
- `Display` has 2 new features:
- the `strum(prefix = "some_value")` attribute on an enum now allows you to prepend a string onto every
variant when you serialize it.
- Custom `to_string` and `serialize` attributes now support string interopolation on serialization.
##### MR's Merged
- [#​322](https://github.com/Peternator7/strum/pull/322): avoid collisions on `std::fmt::Debug`
- [#​321](https://github.com/Peternator7/strum/pull/321): avoid conflicts with consecutive underscores.
- [#​314](https://github.com/Peternator7/strum/pull/314): add additional bounds to EnumIterator
- [#​311](https://github.com/Peternator7/strum/pull/311): add FusedIterator bounds to EnumIterator
- [#​297](https://github.com/Peternator7/strum/pull/297): New macro, add `VariantArray`
- [#​296](https://github.com/Peternator7/strum/pull/296): adds prefix attribute to To/From String macros.
- [#​294](https://github.com/Peternator7/strum/pull/294): use named enum fields in to_string macro.
- [#​288](https://github.com/Peternator7/strum/pull/288): discriminant enums now inherit the repr from the original enum.
- [#​279](https://github.com/Peternator7/strum/pull/279): Add `EnumTable` macro to generate a mapping between fieldless variants and data.
</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 MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy43Ny4xIiwidXBkYXRlZEluVmVyIjoiMzcuNzcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->https://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests/44fix(deps): update rust crate once_cell to 1.19.02023-12-07T11:24:00Zrenovatefix(deps): update rust crate once_cell to 1.19.0This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [once_cell](https://github.com/matklad/once_cell) | dependencies | minor | `1.18.0` -> `1.19.0` |
---
### Release Notes
<details>
<summa...This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [once_cell](https://github.com/matklad/once_cell) | dependencies | minor | `1.18.0` -> `1.19.0` |
---
### Release Notes
<details>
<summary>matklad/once_cell (once_cell)</summary>
### [`v1.19.0`](https://github.com/matklad/once_cell/blob/HEAD/CHANGELOG.md#1190)
[Compare Source](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0)
- Use `portable-atomic` instead of `atomic-polyfill`, [#​251](https://github.com/matklad/once_cell/pull/251).
</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 MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy43Ny4xIiwidXBkYXRlZEluVmVyIjoiMzcuNzcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->https://gitlab.archlinux.org/archlinux/alpm/alpm-types/-/merge_requests/43fix(deps): update rust crate url to 2.5.02023-11-22T19:25:50Zrenovatefix(deps): update rust crate url to 2.5.0This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [url](https://github.com/servo/rust-url) | dependencies | minor | `2.4.0` -> `2.5.0` |
---
### Release Notes
<details>
<summary>servo/ru...This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [url](https://github.com/servo/rust-url) | dependencies | minor | `2.4.0` -> `2.5.0` |
---
### Release Notes
<details>
<summary>servo/rust-url (url)</summary>
### [`v2.5.0`](https://github.com/servo/rust-url/releases/tag/v2.5.0)
[Compare Source](https://github.com/servo/rust-url/compare/v2.4.1...v2.5.0)
#### What's Changed
- Fix clippy by [@​valenting](https://github.com/valenting) in https://github.com/servo/rust-url/pull/878
- use checked addition to not panic in debug build by [@​Skgland](https://github.com/Skgland) in https://github.com/servo/rust-url/pull/877
- Fix search setting for non-special urls with space, query and fragment by [@​edgul](https://github.com/edgul) in https://github.com/servo/rust-url/pull/879
- Added #\[must_use] Attributes for Configuration Options by [@​Redfire75369](https://github.com/Redfire75369) in https://github.com/servo/rust-url/pull/876
- Correct spelling mistake in `Position` docs by [@​sprocklem](https://github.com/sprocklem) in https://github.com/servo/rust-url/pull/875
- Fix another overflow in punycode encode_into by [@​Skgland](https://github.com/Skgland) in https://github.com/servo/rust-url/pull/880
- Update url 2.5.0 by [@​valenting](https://github.com/valenting) in https://github.com/servo/rust-url/pull/885
#### New Contributors
- [@​Skgland](https://github.com/Skgland) made their first contribution in https://github.com/servo/rust-url/pull/877
- [@​edgul](https://github.com/edgul) made their first contribution in https://github.com/servo/rust-url/pull/879
- [@​Redfire75369](https://github.com/Redfire75369) made their first contribution in https://github.com/servo/rust-url/pull/876
- [@​sprocklem](https://github.com/sprocklem) made their first contribution in https://github.com/servo/rust-url/pull/875
**Full Changelog**: https://github.com/servo/rust-url/compare/v2.4.1...v2.5.0
### [`v2.4.1`](https://github.com/servo/rust-url/releases/tag/v2.4.1)
[Compare Source](https://github.com/servo/rust-url/compare/v2.4.0...v2.4.1)
#### What's Changed
- Move debugger_visualizer tests to separate crate by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/853
- Remove obsolete badge references by [@​atouchet](https://github.com/atouchet) in https://github.com/servo/rust-url/pull/852
- Fix trailing spaces in scheme / pathname / search setters by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/848
- fix: implement std::error::Error for data-url by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/698
- Enable the GitHub merge queue by [@​mrobinson](https://github.com/mrobinson) in https://github.com/servo/rust-url/pull/851
- Rewrite WPT runner by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/857
- Implement std::error::Error for InvalidBase64 by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/856
- Add `--generate-link-to-definition` option when building on docs.rs by [@​GuillaumeGomez](https://github.com/GuillaumeGomez) in https://github.com/servo/rust-url/pull/858
- Stabilize debugger_visualizer feature by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/855
- Update WPT data and expectations by [@​lucacasonato](https://github.com/lucacasonato) in https://github.com/servo/rust-url/pull/859
- Fix no_std Support for idna by [@​domenukk](https://github.com/domenukk) in https://github.com/servo/rust-url/pull/843
- Fix panic in set_path for file URLs by [@​valenting](https://github.com/valenting) in https://github.com/servo/rust-url/pull/865
#### New Contributors
- [@​mrobinson](https://github.com/mrobinson) made their first contribution in https://github.com/servo/rust-url/pull/851
- [@​GuillaumeGomez](https://github.com/GuillaumeGomez) made their first contribution in https://github.com/servo/rust-url/pull/858
- [@​domenukk](https://github.com/domenukk) made their first contribution in https://github.com/servo/rust-url/pull/843
**Full Changelog**: https://github.com/servo/rust-url/compare/v2.4.0...v2.4.1
</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 MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->