v0.2.0 (May 20th, 2024) #155
rcoh
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release contains several breaking changes to be aware of:
The public API has been simplfied: Duchess references are now "global" references by default. The
to_rust,global, andexecutecombinators have all been merged. You now invokeexecuteand then the result depends on the return value: returning aJava<T>will create a global reference (matching the previous behavior ofglobal), and returning a Rust value likeStringwill invoke the "to rust" conversion (liketo_rustused to do). For context and examples of upgrading see simplify public API, only allowing global JVM references #147.Jvm::withhas been removed. You can no longer obtain explicit handles to the JVM, preventing panics due to nestedJvm::withinvocations. For context and examples see simplify public API, only allowing global JVM references #147.JvmOp, the type returned by most Duchess operations-in-progress is now#[must_use]. If you encounter this error in your code, note that the code as written had no effect.JvmOpdoes nothing unless.execute()is called.All changes since the previous release
DUCHESS_DEBUGand other misc small changes by @rcoh in Improvements toDUCHESS_DEBUGand other misc small changes #131must_useto JvmOp by @rcoh in Addmust_useto JvmOp #151X extends Yby @rcoh in Fix method descriptor forX extends Y#150New Contributors
DUCHESS_DEBUGand other misc small changes #131Full Changelog: v0.1.7...v0.2.0
This discussion was created from the release v0.2.0 (May 20th, 2024).
Beta Was this translation helpful? Give feedback.
All reactions