Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.7
->0.9
Release Notes
rust-mobile/ndk (ndk)
v0.9.0
: ndk v0.9.0Compare Source
MediaFormat
frommedia::media_codec
to its ownmedia::media_format
module. (#442)MediaFormat::copy()
andMediaFormat::clear()
from API level 29. (#449)fn set_*()
andfn str()
as takingself
by&mut
. (#452)dyn Fn*
types to implementSend
when the FFI implementation invokes them on a separate thread: (#455)audio::AudioStreamDataCallback
;audio::AudioStreamErrorCallback
;media::image_reader::BufferRemovedListener
;media::image_reader::ImageListener
;media::media_codec::ErrorCallback
;media::media_codec::FormatChangedCallback
;media::media_codec::InputAvailableCallback
;media::media_codec::OutputAvailableCallback
.Box
ed callbacks after registering new ones, instead of before. (#455)from_java()
constructor, available since API level 33. (#456)from_java()
constructors toKeyEvent
andMotionEvent
, available since API level 31. (#456)Image
-acquire functions. (#457)ImageReader::acquire_latest_image_async()
unsafe
to match the safety requirements onImageReader::acquire_next_image_async()
. (#457)SourceClass
bitflag
and provideSource::class()
getter. (#458)bitflags
implementations consider all (including unknown) bits in negation andall()
. (#458)non_exhaustive
and fixrepr
types. (#459)TRANSFORM_
prefix fromNativeWindowTransform
variants. (#460)HardwareBufferUsage
tobitflags
. (#461)BitmapCompressError
behind missingapi-level-30
feature. (#462)libnativewindow
for most API >= 26 functions. (#465)AudioResult
variant enum intoAudioError
. (#467)DataSpaceRange::Unspecified
variant. (#468)Send
marker when adding fd event callbacks onForeignLooper
. (#469)ndk-sys 0.6.0
. (#472)v0.8.0
: ndk v0.8.0Compare Source
tool_type
getter forPointer
. (#323)pre_dispatch()
again, as per documentation. (#325)raw-window-handle 0.5.1
,num_enum
'scatch_all
with arbitrary enum discriminants. (#388, #431)jni
dependency for doctest example from0.19
to0.21
. (#390)ndk-sys 0.5.0
. (#370)bitflags
crate from1
to2
. (#394)try_format()
toAndroidBitmapInfo
to handle unexpected formats without panicking. (#395)Font
bindings. (#397)num_enum
crate from0.5.1
to0.7
. (#398, #419)media
" error types and helpers to a newmedia_error
module. (#399, #432)MaybeUninit
bytes inbuffer_mut()
. (#403)lock()
to blit raw pixel data. (#404)YCbCr_P010
andR8_UNORM
variants. (#405)is_allocated()
andopen_file_descriptor()
methods. (#409)remove_fd()
to unregister events/callbacks for a file descriptor. (#416)BorrowedFd
andOwnedFd
to clarify possible ownership transitions. (#417)ndk-sys 0.5.0
. (#420)sync.h
. (#423)AndroidBitmapInfoFlags
. (#424)set_buffers_transform()
,try_allocate_buffers()
andset_frame_rate*()
. (#425)ASharedMemory
. (#427)id()
to retrieve a system-wide unique identifier for aHardwareBuffer
. (#428)Android
prefix from structs and enums, andBitmap
fromResult
. (#430)raw-window-handle 0.5
support is now behind an optionalrwh_05
crate feature andraw-window-handle
0.4
and0.6
support is provided via the newrwh_04
and (default-enabled)rwh_06
crate features. (#434)event
value to file descriptor poll callback. (#435)HardwareBufferFormat
is no longer exported fromhardware_buffer
andnative_window
, and can only be reached through thehardware_buffer_format
module. (#436)get_
prefixes have been removed from all public functions in light of the C-GETTER convention. (#437)DataSpace
type and relevant functions onBitmap
andNativeWindow
. (#438)Bitmap::compress()
andBitmap::compress_raw()
functions. (#440)BitmapError
into anon_exhaustive
enum
. (#440)AudioErrorResult
toAudioResult
and turn into anon_exhaustive
enum
. (#441)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.