Diplomat 0.16.1
Zulip Chat
Per discussion in #1235, we now have a dedicated Zulip chat for contributors, maintainers, and anyone curious about Diplomat: https://diplomat.zulipchat.com. Anyone interested in Diplomat is welcome, and no account is needed to browse the channels1.
Diplomat Runtime Semi-Stabilization
The Diplomat runtime is moving towards stabilization, so we're implementing a few changes in how we release the diplomat-runtime crate while we move towards diplomat-runtime 1.0.0.
Our goal is to reduce churn for users using multiple diplomat crates in one build. Because diplomat-runtime exposes no_mangle functions, you can only have one copy at a time linked in to a binary. Once we have diplomat-runtime 1.0.0 we will not have these issues at all, but until then, we are going to limit the number of new 0.x.0 releases of diplomat-runtime we make.
Previously, diplomat 0.x.0 would always be accompanied by diplomat-runtime 0.x.0 to make it easy to match dependencies, since there is no formal dependency between diplomat and diplomat-runtime. Now, when using diplomat 0.x.0, please use the latest 0.y.z version of diplomat-runtime where y ≤ x. Once we release diplomat-runtime 1.0.0, this will be simpler, just use 1.0.
Breaking API changes
Diplomat Tool
- For backends based on the C backend,
generating_struct_fieldshas been renamed togenerate_definition_includes, since this is now used for structs and traits (e75e064)
Other New Features
Dart
- Added
ErrorandExceptionto classes/enums which are used as errors and exceptions (#1220) (Contributed by mosuem and Robert Bastian) - Pinned Dart SDK to 3.12.2 (#1254)
.NET
- IDisposable is now opt-in (#1244) (Contributed by irvingoujAtDevolution and Copilot)
- Opaque wrappers now retain borrow dependencies (#1251) (Contributed by irvingoujAtDevolution and Copilot)
C++
- Added traits support (this is a preview feature, not recommended for use in production) (#1234)
Bug Fixes
Javascript
- Added validation to arguments to assure type correctness (#902) (Contributed by Robert Bastian)
.NET
- Now disposes borrowed edges of spans on oversized spans (#1253) (Contributed by irvingoujAtDevolution and Copilot)
The Book
Misc
- Updated Clippy MSRV to 1.88 (#1249)
- Wrote CONTRIBUTING.md document
-
You will have to make an account to chat, however. ↩