Skip to content

build(deps): bump garde from 0.22.1 to 0.23.0#15

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/garde-0.23.0
Open

build(deps): bump garde from 0.22.1 to 0.23.0#15
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/garde-0.23.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown

Bumps garde from 0.22.1 to 0.23.0.

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 compatibility score

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)

Bumps [garde](https://github.com/jprochazk/garde) from 0.22.1 to 0.23.0.
- [Release notes](https://github.com/jprochazk/garde/releases)
- [Commits](jprochazk/garde@v0.22.1...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jun 11, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies, rust. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot requested a review from radicalkjax as a code owner June 11, 2026 08:24
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.

0 participants