Repository navigation
Update cargo dependencies (libwebrtc) - #1387
renovate[bot] wants to merge 1 commit into
Conversation
|
No changeset foundThis PR modifies versioned packages but doesn't include a changeset. The following packages require a version bump:
A package must be bumped when its own files change, and whenever a package it depends on is bumped (so downstream consumers get a matching release). Click here to create a changeset for the missing packages The link pre-populates a changeset file with If this change doesn't require a version bump, add the |
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
ae5d272 to
ac2c14c
Compare
58546a3 to
c013458
Compare
5b3d25b to
a7776b1
Compare
17e46e2 to
3a9613c
Compare
8ff1322 to
76db938
Compare
7d172cd to
73c9712
Compare
73990db to
1b93253
Compare
4402995 to
5fd1f0d
Compare
| tokio = { workspace = true, default-features = false, features = ["sync", "macros", "time", "rt-multi-thread"] } | ||
| cxx = "1.0" | ||
| rtrb = "0.3.3" | ||
| rtrb = "0.4.0" |
There was a problem hiding this comment.
🟡 Missing dependency update changeset
The libwebrtc dependency update includes no changeset, violating the changeset requirement. Its release notes and version bumps remain unrecorded.
Learn more
The PR changes dependency requirements but adds no changeset. The release configuration ignores conventional commits, so the commit message does not substitute for a changeset.
Example: A dependency-update PR without release metadata contributes no changelog entry describing the update.
Recommended fix: Add a Markdown changeset under .changeset declaring the appropriate bump for libwebrtc and affected downstream crates. Keep the summary on one unwrapped prose line, as required by the documenting changes rules.
Was this helpful? React with 👍 or 👎 to provide feedback.
b2d9d7e to
b3b7403
Compare
Changeset missingThis PR changes versioned packages without a changeset for:
Create a changeset for the missing packages (prefilled with If this change needs no release, add the |
b5492f5 to
19aefb3
Compare
Generated by renovateBot
19aefb3 to
b9f5f4f
Compare
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
1.0.198→1.0.2050.21.3→0.22.00.22.110.21→0.220.3.103→0.3.1070.3.3→0.4.00.2.126→0.2.1300.4.76→0.4.800.3.103→0.3.107Release Notes
dtolnay/cxx (cxx)
v1.0.205Compare Source
-in feature names incfg(feature = "…-…")attributes (#1766)v1.0.204Compare Source
v1.0.203Compare Source
v1.0.202Compare Source
v1.0.201Compare Source
enable_borrowed_rangeandenable_viewforrust::Slice<T>(#1758, thanks @MixusMinimax)v1.0.200Compare Source
v1.0.199Compare Source
gtk-rs/gtk-rs-core (glib)
v0.22.10Compare Source
v0.22.9Compare Source
v0.22.8Compare Source
v0.22.7Compare Source
v0.22.6Compare Source
v0.22.5Compare Source
v0.22.4Compare Source
v0.22.3Compare Source
v0.22.2Compare Source
v0.22.0Compare Source
jni-rs/jni-rs (jni)
v0.22.4Compare Source
Added
JCharSequencebindings forjava.lang.CharSequence(includingAsRef<JCharSequence>+.as_char_sequence()forJString) (#793)bind_java_typesupportsnon_nullqualifier/property for methods and fields to map null references toError::NullPtr(#795)bind_java_typesupports#[cfg()]attributes on methods and fields, to conditionally compile them based on features or other cfg conditions (#797)JValueOwned::check_null()+::is_null()methods for ergonomic null checks on owned (returned) values (#798)JValueOwned, like.into_bool()instead of.z(),.into_object()instead of.l(), etc (#798)Fixed
jni_manglenow includesdocs/macros/jni_mangle.mdin the crate documentation, so the macro's documentation is visible on docs.rs and in IDEs (#799)v0.22.3Compare Source
Fixed
simd_cesu8dep to >= 1.1.1 which no longer has an automatically-enabled"nightly" feature that may affect the docs.rs build (1.1.x is now also MSRV compatible) (#790)
v0.22.2Compare Source
Note: although no breaking API change was made in this release there were some important fixes
made, including a few non-trivial changes to how exceptions are handled and some important safety /
soundness fixes made in the re-exported
jni-macros.For these reasons I'm going to again yank the previous 0.22.1 release after this is published,
again taking into account that 0.22.1 was itself only released very recently and it should still be
relatively unlikely that anyone has strictly locked in a 0.22.1 dependency.
Another benefit to yanking 0.22.1 is that it allows me to pin the
jni-macrosdependency via=0.22.2in this release so that in future releases I don't need to be worried that a newjni-macrosrelease needs to be backwards compatible with all priorjnireleases (so macros cantake advantage of new
jnifeatures).Hopefully things will be smoother moving forward, now that more people have been starting to update
to 0.22.x and there are more people testing it.
Added
Adds bindings for the following
java.langerrors / exceptions (#767):JArrayIndexOutOfBoundsException(java.lang.ArrayIndexOutOfBoundsException)JArrayStoreException(java.lang.ArrayStoreException)JClassCircularityError(java.lang.ClassCircularityError)JClassFormatError(java.lang.ClassFormatError)JExceptionInInitializerError(java.lang.ExceptionInInitializerError)JClassNotFoundException(java.lang.ClassNotFoundException)JIllegalArgumentException(java.lang.IllegalArgumentException)JIllegalMonitorStateException(java.lang.IllegalMonitorStateException)JInstantiationException(java.lang.InstantiationException)JLinkageError(java.lang.LinkageError)JNoClassDefFoundError(java.lang.NoClassDefFoundError)JNoSuchFieldError(java.lang.NoSuchFieldError)JNoSuchMethodError(java.lang.NoSuchMethodError)JNumberFormatException(java.lang.NumberFormatException)JOutOfMemoryError(java.lang.OutOfMemoryError)JRuntimeException(java.lang.RuntimeException)JSecurityException(java.lang.SecurityException)JStringIndexOutOfBoundsException(java.lang.StringIndexOutOfBoundsException)Added
AttachmentExceptionPolicyenum to control how Java exceptions are handled when attaching a thread (#768).Changed
cesu8crate withsimd_cesu8for MUTF-8 encoding, gaining SIMD acceleration andno_stdcompatibilitypastecrate (#752)attach_current_thread*APIs immediately returnErr(JavaException)if a Java exception is pending, so they don't have the side effect of clearing exceptions not thrown in the given closure (#756)proc-macro-cratedependency from thejni-macroscrate (#758)jni::errors::Error(#762)JavaVM::attach_current_thread*APIs stash + re-throw pending exceptions so they can be run reliably, instead of bailing early with aJavaExceptionerror (e.g. needed inDropimplementations) (#768)Fixed
Env::get_[static_]method/field_idAPIs now correctly clear + map internal exceptions toError::Method/FieldNotFounderrors (#748)Global/Weak::Dropno longer have the side effect of catching/clearing pending exceptions (#749)Env::throw*APIs actually returnErr(JavaException)as the docs state (#755)JStackTraceElementbinding fixed to lookupisNativeMethodinstead ofisNative(#760)bind_java_typeemitsexception_checksbefore JNI calls to avoid undefined behaviour from calling non-exception-safe JNI functions with pending exceptions. (#757)bind_java_typeemitsenv.assert_top()checks to ensure that any new local reference has a lifetime that's associated with the top JNI stack frame (#776)AsRefpointer cast foris_instance_oftypes emitted bybind_java_type(#777)bind_java_typeemitsnullobject checks to prevent calling methods or accessing fields on null objects (#781)bind_java_typeclamps the*APIstruct and native methods trait visibility to that of the binding type (#785)v0.22.1Compare Source
Note: although no breaking API change was made in this release there were some important fixes
made, including a few non-trivial changes to how exceptions are handled and some important safety /
soundness fixes made in the re-exported
jni-macros.For these reasons I'm going to again yank the previous 0.22.1 release after this is published,
again taking into account that 0.22.1 was itself only released very recently and it should still be
relatively unlikely that anyone has strictly locked in a 0.22.1 dependency.
Another benefit to yanking 0.22.1 is that it allows me to pin the
jni-macrosdependency via=0.22.2in this release so that in future releases I don't need to be worried that a newjni-macrosrelease needs to be backwards compatible with all priorjnireleases (so macros cantake advantage of new
jnifeatures).Hopefully things will be smoother moving forward, now that more people have been starting to update
to 0.22.x and there are more people testing it.
Added
Adds bindings for the following
java.langerrors / exceptions (#767):JArrayIndexOutOfBoundsException(java.lang.ArrayIndexOutOfBoundsException)JArrayStoreException(java.lang.ArrayStoreException)JClassCircularityError(java.lang.ClassCircularityError)JClassFormatError(java.lang.ClassFormatError)JExceptionInInitializerError(java.lang.ExceptionInInitializerError)JClassNotFoundException(java.lang.ClassNotFoundException)JIllegalArgumentException(java.lang.IllegalArgumentException)JIllegalMonitorStateException(java.lang.IllegalMonitorStateException)JInstantiationException(java.lang.InstantiationException)JLinkageError(java.lang.LinkageError)JNoClassDefFoundError(java.lang.NoClassDefFoundError)JNoSuchFieldError(java.lang.NoSuchFieldError)JNoSuchMethodError(java.lang.NoSuchMethodError)JNumberFormatException(java.lang.NumberFormatException)JOutOfMemoryError(java.lang.OutOfMemoryError)JRuntimeException(java.lang.RuntimeException)JSecurityException(java.lang.SecurityException)JStringIndexOutOfBoundsException(java.lang.StringIndexOutOfBoundsException)Added
AttachmentExceptionPolicyenum to control how Java exceptions are handled when attaching a thread (#768).Changed
cesu8crate withsimd_cesu8for MUTF-8 encoding, gaining SIMD acceleration andno_stdcompatibilitypastecrate (#752)attach_current_thread*APIs immediately returnErr(JavaException)if a Java exception is pending, so they don't have the side effect of clearing exceptions not thrown in the given closure (#756)proc-macro-cratedependency from thejni-macroscrate (#758)jni::errors::Error(#762)JavaVM::attach_current_thread*APIs stash + re-throw pending exceptions so they can be run reliably, instead of bailing early with aJavaExceptionerror (e.g. needed inDropimplementations) (#768)Fixed
Env::get_[static_]method/field_idAPIs now correctly clear + map internal exceptions toError::Method/FieldNotFounderrors (#748)Global/Weak::Dropno longer have the side effect of catching/clearing pending exceptions (#749)Env::throw*APIs actually returnErr(JavaException)as the docs state (#755)JStackTraceElementbinding fixed to lookupisNativeMethodinstead ofisNative(#760)bind_java_typeemitsexception_checksbefore JNI calls to avoid undefined behaviour from calling non-exception-safe JNI functions with pending exceptions. (#757)bind_java_typeemitsenv.assert_top()checks to ensure that any new local reference has a lifetime that's associated with the top JNI stack frame (#776)AsRefpointer cast foris_instance_oftypes emitted bybind_java_type(#777)bind_java_typeemitsnullobject checks to prevent calling methods or accessing fields on null objects (#781)bind_java_typeclamps the*APIstruct and native methods trait visibility to that of the binding type (#785)v0.22.0Compare Source
Added
JavaVM / Thread Attachment APIs
JavaVM::singleton()lets you acquire theJavaVMfor the process when you know that theJavaVMsingleton has been initialized (#595)JavaVM::is_thread_attachedcan query whether the current thread is attached to the Java VM (#570)AttachGuard::from_unownedadded as a low-level (unsafe) way to represent a thread attachment with a rawjni_sys::Envpointer (#570)AttachConfigexposes fine-grained control over thread attachment includingThreadname,ThreadGroupand whether scoped or permanent. (#606)JavaVM::attach_current_thread_guardis a low-level (unsafe) building block for attaching threads that exposes theAttachGuardandAttachConfigcontrol. (#606)JavaVM::attach_current_thread_with_configis a safe building block for attaching threads that hides theAttachGuardbut exposesAttachConfigcontrol. (#606)JavaVM::with_local_frameadded as method to borrow aEnvthat is already attached to the current thread, after pushing a new JNI stack frame (#570, #673)JavaVM::with_top_local_frame_frameadded to borrow aEnvfor the top JNI stack frame (i.e. without pushing a new JNI stack frame) (#570, #673)Reference Type APIs
Referencetrait for all reference types likeJObject,JClass,JString, enablingGlobalandWeakto be generic overReferenceand enabling safe casting and global caching ofJClassreferences. (#596)Reference::lookup_classexposes a cachedGlobal<JClass>for allReferenceimplementations (#612)LoaderContext+LoaderContext::load_classfor loading classes, depending on available context (#612)Env::new_cast_global_refacts likenew_global_refwith a type cast (#612)Env::cast_globaltakes an ownedGlobal<From>and returns an ownedGlobal<To>(#612)Env::new_cast_local_refacts likenew_local_refwith a type cast (#612)Env::cast_localtakes an owned local reference and returns a new type-cast wrapper (owned) (#612)Env::as_castorCast::newborrows anyFrom: Reference(global or local) reference and returns aCast<To>that will Deref into&To(#612)Env::as_cast_uncheckedreturns aCast<To>likeas_cast()but without a runtimeIsInstanceOfcheck (#669)Env::as_cast_raworCast::from_rawborrows a rawjobjectreference and returns aCast<To>that will Deref into&ToCast::new_uncheckedandCast::from_raw_uncheckedlet you borrow a reference with an (unsafe) type cast, with no runtime check::cast_local()methods as a convenience for all reference types, such aslet s = JString::cast_local(obj)constnull()methods for all reference types.Global::null()andWeak::null()construct null references (equivalent toDefault::default()). (#596)JNI Environment APIs
Env::call_nonvirtual_methodandEnv::call_nonvirtual_method_uncheckedto call non-virtual method. (#454)Env::to_reflected_methodandEnv::to_reflected_static_methodfor retrieving the Java reflection API instance for a method or constructor. (#579)Env::throw_new_voidprovides an easy way to throw an exception that's constructed with no message argumentEnv::new_object_type_array<E>lets you you instantiate aJObjectArraywith a given element type likenew_object_type_array::<JString>Env::load_classsupports class lookups via the currentThreadcontext class loader, withFindClassfallback. (#674)MethodSignatureandFieldSignaturetypes have been added for compile-time parsed JNI method and field signaturesNative Method APIs
EnvUnownedis an FFI-safe type that can be used to capture ajni_sys::Envpointer given to native methods and give it a named lifetime (this can then be temporarily upgraded to a&mut Envreference viaEnvUnowned::with_env) (#570)Outcomeis like aResultwith the addition of a thirdPanic()variant, used for careful handling of errors in native methods. (#664)EnvOutcomerepresents anEnvUnowned::with_envoutcome whose errors can be handle, with access to JNI, via anErrorPolicy. (#664)ErrorPolicyis a trait withon_errorandon_panicmethods that can log native method errors or throw them as exceptions. (#664)ThrowRuntimeExAndDefaultis anErrorPolicythat throws any error as aRuntimeException(and returns a default value). (#664)LogErrorAndDefaultis anErrorPolicythat logs errors and returns a default value. (#664)LogContextErrorAndDefaultis anErrorPolicythat logs errors, with a given context string, and returns a default value. (#664)String APIs
New functions for converting Rust
charto and from Javacharandint(#427 / #434)JavaStr/MUTF8Chars,JNIStr, andJNIStringhave several new methods and traits, most notably ato_strmethod that converts to a regular Rust string. (#510 / #512)JNIStrnow implementsDebug,PartialEq,Eq,PartialOrd,OrdandHash(#615)JNIStringnow implementsDebug,PartialEq,Eq,PartialOrd,Ord,HashandClone(#615)PartialEq<&JNIStr> for JNIStringallowsJNIStrandJNIStringto be compared. (#615)From<&JNIStr>andFrom<MUTF8Chars>implementations forJNIString. (#615)JNIStr::from_cstrsafely does a zero-copy cast of aCStrto aJNIStrafter aconstmodified-utf8 encoding validation (#615,#617, #715)JNIStr::to_bytesgives access to a&[u8]slice over the bytes of a JNI string (likeCStr::to_bytes) (#615)java.lang APIs
JClassLoaderas aReferencewrapper forjava.lang.ClassLoaderreferences (#612)JCollection,JSetandJIteratorreference wrappers forjava.util.Collection,java.util.Setandjava.util.Iteratorinterfaces. (#621)JList::remove_itemfor removing a given value, by-reference, from the list (instead of by index). (#713)JList::clearallows a list to be cleared. (#713)JList::is_emptychecks if a list is empty. (#713)JList::as_collectioncasts a list into aJCollection(#713)JObjectArray::newlets you construct aJObjectArray<E>with strong element type parameterization, instead ofEnv::new_object_array(#657 + #688)JObjectArray::get/set_elementlet you get and set array elements as methods on the array. (#654)JPrimitiveArray::newlets you construct aJPrimitiveArray<E>, consistent withJObjectArray::new(#688)JStackTraceElementgives access to stack frame info within a stack trace, like filename, line number etc (#657)JStringnow has::new(),::from_strand::from_jni_strconstructor methods (#960)JThreadas aReferencewrapper forjava.lang.Threadreferences (#612)JThrowable::get_messageis a binding forgetMessage()and gives easy access to an exception messageJThrowable::get_stack_traceis a binding forgetStackTrace(), returning aJObjectArray<JStackTraceElement>Macros
#[jni_mangle()]attribute proc macro can export anextern "system"native method with a mangled name like "Java_com_example_myMethod" so it can be automatically resolved within a shared library by the JVM (#693)jni_str!andjni_cstr!macros can encode a MUTF-8&'static JNIStror&' static CStrat compile time with full unicode support. (#696)jni_sig!,jni_sig_str!,jni_sig_cstr!andjni_sig_jstr!macros can parse and compile signatures like(arg0: jint, arg1: JString) -> JStringintoMethodSignatureandFieldSignaturedescriptors or JNI string literals like "(ILjava/lang/String;)Ljava/lang/String;" (#697)native_method!macro binds a single native method to a Rust function with type safety and optionally exports it too. (#698)bind_java_type!macro can generate full Rust bindings for Java types (classes and interfaces) with fields, constructors, methods and native methods (#712)Changed
JavaVM / Thread Attachment APIs
>= 1.4. It needs>= 1.2so it can check for exceptions and needs>= 1.4to avoid runtime checks for direct byte buffers (#478)AttachGuardAttachGuardusage is now consideredunsafesince the type must be pinned to the stack (but that can't be guaranteed by the Rust type system alone).AttachGuardis pinned to the stack), attachment APIs take aFnOncewhose&mut Envarg borrows from a hiddenAttachGuardJavaVM::attach_current_threadrequests a permanent thread attachment (reducing cost of futureattach_current_thread()calls)JavaVM::attach_current_thread_for_scoperequests a thread attachment that's detached after the given closure returns.JavaVM::get_java_vm_pointerhas been renamedJavaVM::get_rawfor consistency.JavaVM::newandJavaVM::with_libjvmnow prevent libjvm from being unloaded. This isn't necessary for HotSpot, but other JVMs could crash if we don't do this. (#554)Reference and Primitive Types
Make
from_raw(),into_raw()andnull()methodsconst fn. (#453)Make
from_raw()require anEnvreference so the returned wrapper is guaranteed to have a local reference frame lifetime (#670)GlobalRefandWeakRefhave been renamed toGlobalandWeakand are now generic, parameterized, transparent wrappers over'staticreference types likeGlobal<JClass<'static>>(no longer anArcholding a reference and VM pointer) (#596)GlobalandWeakno longer implementClone, since JNI is required to create new reference (you'll need to explicitly useenv.new_global_ref)GlobalandWeakboth implementDefault, which will represent::null()references (equivalent toJObject::null())Global::into_rawreplacesGlobal::try_into_rawand is infallible (#596)AutoLocalhas been renamed toAutowith a deprecated type alias forAutoLocalto sign post the rename.AutoElementswas simplified to only be parameterized by one lifetime for the array reference, and accepts anyAsRef<JPrimitiveArray<T>>as a reference. (#508)JObjectArraysupports generic element types likeJObjectArray<JString>JavaTypewas simplified to not capture object names or array details (likeReturnType) since these details don't affectJValuetype checks and had a hidden cost that was redundant.JValueGenhas been removed.JValueandJValueOwnedare now separate, unrelated, non-generic types.(#429) (Note: previously
JValueandJValueOwnedwere type aliases forJValueGen, which was an internal type, but this design led to confusing error messages that made them harder to use)JNI Environment APIs
JNIEnvis no longer a#[transparent]FFI-safe pointer wrapper and has been split intoEnvUnowned(for FFI/native method args) andEnv(non-FFI) (#634)A
JNIEnvtype alias shows a verbose deprecation warning that explains how to migrate from `JNIEnConfiguration
📅 Schedule: (UTC)
🚦 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.