Skip to content

Chore(deps): Update garde requirement from 0.22.0 to 0.23.0#1989

Merged
clux merged 1 commit into
mainfrom
dependabot/cargo/garde-0.23.0
May 25, 2026
Merged

Chore(deps): Update garde requirement from 0.22.0 to 0.23.0#1989
clux merged 1 commit into
mainfrom
dependabot/cargo/garde-0.23.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on garde to permit the latest version.

Release notes

Sourced from garde's releases.

v0.23.0

Internationalization (i18n)

Error messages may now be customized.

struct Czech;
impl I18n for Czech {
fn length_lower_than(&self, min: usize) -> Cow<'static, str> {
format!("musí obsahovat alespoň {min} znaků").into()
}
fn email_invalid(&amp;self, _reason: InvalidEmail) -&gt; Cow&lt;'static, str&gt; {
    format!(&quot;email je neplatný&quot;).into()
}
// etc.

}
#[derive(Validate)]
struct User {
#[garde(length(min = 3))]
name: String,
#[garde(email)]
email: String,
}
let user = User {
name: "Jan Novák".to_string(),
email: "invalid-email".to_string(),
};
let result = with_i18n(Czech, || user.validate());

The goal behind this feature is to support localization of error messages, but it can also be used to assign custom error messages in English to all errors produced by garde.

if(cond = <expr>, <rules>...)

Rules may now be nested within an if rule, which only validates if a given condition is true. The condition can refer to self and ctx as with any other rule.

struct Config {
    strict: bool,
}
#[derive(garde::Validate)]
#[garde(context(Config as ctx))]
struct User {
</tr></table>

... (truncated)

Commits
  • 62b71b1 0.23.0
  • edda2ec support pre-1.0 version bumps
  • 8a2ad42 Merge pull request #183 from jprochazk/ci-exclude-ui-on-stable
  • f8a75e1 Merge pull request #182 from jprochazk/fix-skip-tuple-variant-binding
  • 6c4ff77 exclude pattern_mismatched_types test on stable instead of pinned
  • 88694f4 fix(derive): bind all tuple variant fields so skipped fields don't shift bind...
  • 7d4a538 Merge pull request #150 from jprochazk/i18n
  • 7c33d10 fix wasm test
  • 951940f impl
  • 51f80cf Merge pull request #178 from jprochazk/toolchain
  • Additional commits viewable in compare view

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 commands and options

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Updates the requirements on [garde](https://github.com/jprochazk/garde) to permit the latest version.
- [Release notes](https://github.com/jprochazk/garde/releases)
- [Commits](jprochazk/garde@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: garde
  dependency-version: 0.23.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies upgrades to dependencies label May 25, 2026
@clux clux added the changelog-change changelog change category for prs label May 25, 2026
@clux clux added this to the 4.0.0 milestone May 25, 2026
@clux clux merged commit 6f8d9f6 into main May 25, 2026
17 checks passed
@clux clux deleted the dependabot/cargo/garde-0.23.0 branch May 25, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-change changelog change category for prs dependencies upgrades to dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant