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
-
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
, andexecute
combinators have all been merged. You now invokeexecute
and 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 likeString
will invoke the "to rust" conversion (liketo_rust
used to do). For context and examples of upgrading see simplify public API, only allowing global JVM references #147.Jvm::with
has been removed. You can no longer obtain explicit handles to the JVM, preventing panics due to nestedJvm::with
invocations. 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.JvmOp
does nothing unless.execute()
is called.All changes since the previous release
DUCHESS_DEBUG
and other misc small changes by @rcoh in Improvements toDUCHESS_DEBUG
and other misc small changes #131must_use
to JvmOp by @rcoh in Addmust_use
to JvmOp #151X extends Y
by @rcoh in Fix method descriptor forX extends Y
#150New Contributors
DUCHESS_DEBUG
and 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