Skip to content

chore(deps): bump diplomat-tool from 0.16.1 to 0.17.0 - #5668

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/diplomat-tool-0.17.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/diplomat-tool-0.17.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 14, 2026

Copy link
Copy Markdown
Contributor

Bumps diplomat-tool from 0.16.1 to 0.17.0.

Release notes

Sourced from diplomat-tool's releases.

v0.17.0

Diplomat 0.17.0

Zulip Chat

This is a reminder from the previous release to join our Zulip chat if you're interested in hearing more frequently about Diplomat development: https://diplomat.zulipchat.com.

Errors: File and Line Information

Diplomat now displays errors with specific file information about what Diplomat was evaluating when the error occured.

This used to be limited to the AST in Diplomat 0.16, but Diplomat 0.17 now utilizes location based errors across all Diplomat crates:

If you encounter an error without file information, please file an issue.

(rust-diplomat/diplomat#111)

API Changes

Diplomat Binding API

ffi_error for Traits and Callbacks

Some backends that support callbacks and traits can fail to return a value that Rust expects, and Rust will ungracefully exit when such an error occurs.

Diplomat needs a way to communicate these failures to Rust bindings writers. This is where the new #[diplomat::attr(*, ffi_error)] attribute comes in. Weakly typed languages require all traits to return either -> () or Result<T, E> where E is specially marked with ffi_error (see the book for more)

Nanobind has had these changes retroactively applied, so binding authors will need to ensure that all callbacks through Nanobind have the appropriate attributes applied.

While Kotlin runs into these kinds of issues, support has yet to be added. It will be added in the future.

(rust-diplomat/diplomat#1262)

Diplomat Core

Breaking

  • HIR def types (EnumDef, TraitDef, StructDef, etc.) use IdentBuf from the strck crate to store type names. This is now wrapped around the hir::defs::Ident struct, which also includes additional location information for error reports.
    • For backend authors external to Diplomat: hir::defs::Ident acts roughly as a wrapper for IdentBuf, but please don't hesitate to file an issue if anything breaks.
  • hir::lowering::ErrorContext now has an additional location field for error reporting (note that this is different from diplomat_tool::ErrorContext).
    • set_item and set_subitem now take a location parameter, to account for this change.
  • hir::lowering::ErrorAndContext is now one new type: LoweringReport. LoweringReport implements std::fmt::Display, for automatic (although it can also be converted to an ast::logging::AstReport for finer printing control)
    • Any backend authors will now receive one LoweringReport, instead of the location and the error.

Non-Breaking

  • ast::logging::AstReport, ContextLocation and write_report are now public; backend authors external to Diplomat may want to use these to write their own errors.

Diplomat Tool API

... (truncated)

Commits
  • 0cca841 Bump Diplomat to 0.17.0 (#1305)
  • c71f5cd Add is_ok() and is_err() methods to DiplomatResult (#1304)
  • d1f2c21 Don't box utf16 slices in Kotlin (#1298)
  • 5981b52 Add DiplomatWrite docs, and clarify utf8/utf16_strings supports toggles (#1303)
  • cf0728f Add DiplomatWrite16 (stringy UTF-16 writeables) (#1301)
  • 2e889bc Address review comments on JS string helpers (#1302)
  • 8f8c40c Optimize JS string encoding/decoding helpers (#1300)
  • 6085651 Use DiplomatSlice/DiplomatSliceMut for CustomTypeSlice across FFI (#1291)
  • d53b786 Correctly unwrap options when calculating borrowing information (#1295)
  • c901651 Support DiplomatWriteGeneric<T> for primitive writeables (#1289)
  • 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 [diplomat-tool](https://github.com/rust-diplomat/diplomat) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/rust-diplomat/diplomat/releases)
- [Commits](rust-diplomat/diplomat@v0.16.1...v0.17.0)

---
updated-dependencies:
- dependency-name: diplomat-tool
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner November 14, 2026 08:08
@dependabot dependabot Bot added the C-Dependencies Pull requests that update a dependency file label Nov 14, 2026
@github-actions github-actions Bot added the Waiting On Review Waiting on reviews from the maintainers label Nov 14, 2026
@github-actions github-actions Bot added this to the v0.23 milestone Nov 14, 2026
@github-actions

Copy link
Copy Markdown

Test262 conformance changes

Test result main count PR count difference
Total 53,578 53,578 0
Passed 51,451 51,450 -1
Ignored 1,648 1,648 0
Failed 479 480 +1
Panics 0 0 0
Conformance 96.03% 96.03% -0.00%
Broken tests (1):
test/staging/sm/String/string-upper-lower-mapping.js (previously Passed)

Tested main commit: bea404d173bf74a64b7c7ae39b1bc2da639abeee
Tested PR commit: 84ae5dddb7079f6fdc762637c01910b663d88ea6
Compare commits: bea404d...84ae5dd

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Dependencies Pull requests that update a dependency file Waiting On Review Waiting on reviews from the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants