-
Notifications
You must be signed in to change notification settings - Fork 4
Update Rust #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update Rust #59
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #59 +/- ##
==========================================
- Coverage 89.67% 83.37% -6.30%
==========================================
Files 171 18 -153
Lines 21420 1582 -19838
Branches 296 296
==========================================
- Hits 19208 1319 -17889
+ Misses 2209 260 -1949
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5fce243 to
5bf3e58
Compare
5bf3e58 to
d05744b
Compare
c0c287d to
bf98879
Compare
|
56dba3c to
a4ddd06
Compare
cc0f717 to
2ee657d
Compare
9f7e70c to
d500be9
Compare
52bbe6d to
fffb65e
Compare
8e32ba8 to
39d588a
Compare
4dda9c7 to
0008443
Compare
|
3e49aaa to
228e92a
Compare
d6bdc04 to
b3e91a5
Compare
c947100 to
ebbc4b2
Compare
5aaaa28 to
40cb0bc
Compare
40cb0bc to
2f781c6
Compare
2f781c6 to
165bd17
Compare
|



This PR contains the following updates:
1.0.0->1.0.40.30.0->0.35.02.0.6->2.0.70.3.77->0.3.821.21.1->1.21.31.11.1->1.12.20.15.0->0.16.00.12.0->0.13.00.27.1->0.27.20.27.1->0.27.2789a902->363b4d9789a902->363b4d9789a902->363b4d92.5.4->2.5.70.2.100->0.2.1050.4.50->0.4.550.3.50->0.3.550.3.77->0.3.821.2.0->1.2.1Release Notes
rust-lang/cfg-if (cfg-if)
v1.0.4Compare Source
cfg(true)andcfg(false)(#99)v1.0.3Compare Source
@__identityrule."v1.0.2Compare Source
@__identityrule.v1.0.1Compare Source
compiler-builtinsfromrustc-dep-of-stddependenciesservo/html5ever (html5ever)
v0.35.0: 0.35.0From this release forward,
html5ever,xml5ever,markup5ever, andmatch_tokenare now released using a synced version number. Thus this release is version0.35.0of all of these crates.Changes
web_atomsare now in sync. (#637)maccrate. (#639)TreeBuilderoption. (#631)scripting_enabledandiframe_srcdocoptions (#631)TreeSink::attach_declarative_shadow_root(#633)dtolnay/indoc (indoc)
v2.0.7Compare Source
indoc! {c"..."},indoc! {cr"..."}(#67)matklad/once_cell (once_cell)
v1.21.3Compare Source
race: #284,#285.
v1.21.2Compare Source
race: #278.rust-lang/regex (regex)
v1.12.2Compare Source
===================
This release fixes a
cargo docbreakage on nightly when--cfg docsrsisenabled. This caused documentation to fail to build on docs.rs.
Bug fixes:
Switches the
doc_auto_cfgfeature todoc_cfgon nightly for docs.rs builds.v1.12.1Compare Source
===================
This release makes a bug fix in the new
regex::Captures::get_matchAPIintroduced in
1.12.0. There was an oversight with the lifetime parameterfor the
Matchreturned. This is technically a breaking change, but giventhat it was caught almost immediately and I've yanked the
1.12.0release,I think this is fine.
v1.12.0Compare Source
===================
This release contains a smattering of bug fixes, a fix for excessive memory
consumption in some cases and a new
regex::Captures::get_matchAPI.Improvements:
Add
Capture::get_matchfor returning the overall match withoutunwrap().Bug fixes:
Fixes a panic in the lazy DFA (can only occur for especially large regexes).
Fixes a memory usage regression for large regexes (introduced in
regex 1.9).Fix universal start states in sparse DFA.
Fixes a panic when deserializing a corrupted dense DFA.
Make
regex_automata::meta::Regex::findconsistently returnNonewhenWhichCaptures::Noneis used.v1.11.3Compare Source
===================
This is a small patch release with an improvement in memory usage in some
cases.
Improvements:
Improve memory usage by trimming excess memory capacity in some spots.
v1.11.2Compare Source
===================
This is a new patch release of
regexwith some minor fixes. A larger numberof typo or lint fix patches were merged. Also, we now finally recommend using
std::sync::LazyLock.Improvements:
Switch recommendation from
once_celltostd::sync::LazyLock.Add
DFA::set_prefiltertoregex-automata.Bug fixes:
Remove
stddependency fromperf-literal-multisubstringcrate feature.Clarify the meaning of
(?R)$in the documentation.Remove
fuzz/andrecord/directories from published crate on crates.io.ruma/ruma (ruma-common)
v0.16.0: ruma-common 0.16.0Compare Source
Breaking changes:
PushCondition::applies,ConditionalPushRule::applies,AnyPushRuleRef::applies,AnyPushRule::applies,Ruleset::applies,Ruleset::get_actions,Ruleset::get_matchall became async, to allow for lazy evaluation of push rules.UserIdparsing and deserialization are now compatible with all non-compliant user IDs in the wild by default, due to a clarification in the spec.compat-user-idcargo feature was removed.UserId::validate_historical()andUserId::validate_strict()allow to check for spec compliance.(owned_)user_id!macros always validate against the strict grammar in the spec, regardless of the compat features that are enabled.(owned_)room_id!macros disallow theNULbyte, due to a clarification in the spec.(owned_)room_alias_id!macros disallow theNULbyte for the localpart, due to a clarification in the spec.MatrixVersiondoes not implementDisplayanymore as it is not correct to convertV1_0to a string. InsteadMatrixVersion::as_str()can be used that only returnsNonefor that same variant.MatrixVersion::(into/from)_partsare no longer exposed as public methods. They were usually used to sortMatrixVersions, now thePartialOrdandOrdimplementations can be used instead.ProtocolandProtocolInitare generic on the protocol instance type.AppserviceTokentoAppserviceTokenOptional, with the new variant takingAppserviceToken's place.redact*functions incanonical_jsontakeRedactionRulesinstead ofRoomVersionId. This avoids undefined behavior for unknown room versions.OutgoingRequest::try_into_http_request(),OutgoingRequestAppserviceExt::try_into_http_request_with_user_id()andMetadata::make_endpoint_url()take aSupportedVersionsinstead of a&[MatrixVersion].metadatamacro allows to specify stable and unstable feature flags for the paths inhistory.VersionHistory::new()takes a&'static [(Option<&'static str>, &'static str)]for the unstable paths and a&'static [(StablePathSelector, &'static str)]for the stable paths.VersionHistory::unstable_paths()returns animpl Iterator<Item = (Option<&'static str>, &'static str)>.VersionHistory::stable_paths()returns animpl Iterator<Item = (StablePathSelector, &'static str)>.VersionHistory::stable_endpoint_for()was renamed toversion_path().VersioningDecision'sStablevariant was renamed toVersionandUnstablewas renamed toFeature.metadatamacro has changed: the variable must now be surrounded by{}instead of being preceded by:. For example/_matrix/client/foo/{bar}. This matches the OpenAPI syntax and the new syntax supported by axum 0.8.JoinRuleand its associated types where imported fromruma-eventsinto theroommodule.space::SpaceRoomJoinRulewas removed and replaced byroom::JoinRuleSummary.directory::PublicRoomJoinRulewas moved and renamed toroom::JoinRuleKind.JoinRule::kind()andJoinRuleSummary::kind().PushConditionRoomCtxandPushConditionPowerLevelsCtxnon-exhaustive.versionsfield ofSupportedVersionsis now aBTreeSet<MatrixVersion>, to make sure that the versions are always deduplicated and sorted.NotificationPowerLevelsnow takes aNotificationPowerLevelsKeyfor thekey, an enum that accepts any string.keyfield ofPushCondition::SenderNotificationPermissionuses the same type.RoomId::new()was renamed toRoomId::new_v1(), as several formats are now supported for this type.StateResolutionVersion::V2now takesStateResolutionV2Rulesas a unit field, to specify tweaks to be used when resolving state with version 2 of the state resolution algorithm.StateResolutionVersion::v2_rules, returningNoneifstate_resis notStateResolutionVersion::V2.StateResolutionV2Ruleshas the following fields:begin_iterative_auth_checks_with_empty_state_map, to determine whether to begin the first phase of iterative auth checks with an empty state map.consider_conflicted_state_subgraph, to determine whether to include the conflicted state subgraph in the full conflicted state.Bug fix:
dispositionofRoomVersionRules::MSC2870as unstable.Improvements:
Zeroizetrait for theBase64type.ProtocolInstancehas aninstance_idfield, due to a clarification in the spec.unstable-unspecifiedcargo feature was removed.AnyKeyNameas a helper type to useKeyIdAPIs without validating the key name.IdentityServerBase64PublicKeyas a helper type to decode identity server public keys encoded using standard or URL-safe base64.RoomVersionwas imported from ruma-state-res and renamed toRoomVersionRules, along with the following changes:RoomVersionRules::new()was removed and replaced byRoomVersionId::rules().RoomDispositionenum was renamed toRoomVersionDisposition.event_formatfield was renamed toevent_id_formatand theEventFormatenum was renamed toEventIdFormat.AuthorizationRulesstruct, which is available in theauthorizationfield ofRoomVersionRules.special_case_aliases_authfield was renamed tospecial_case_room_aliases.strict_canonicaljsonfield was renamed tostrict_canonical_json.extra_redaction_checksfield was renamed tospecial_case_room_redaction.allow_knockingfield was renamed toknocking.restricted_join_rulesfield was renamed torestricted_join_rule.RedactionRuleswas added under theredactionfield.SignaturesRuleswas added under thesignaturesfield.RoomVersionIdhas anMSC2870variant for theorg.matrix.msc2870room version defined in MSC2870.OutgoingRequest::is_supported()andVersionHistory::is_supported()to be able to know if a server advertises support for an endpoint.ID_MAX_BYTESfromruma-identifiers-validation.From<PublicRoomsChunk>forRoomSummary.content_field_redactsfield toRedactionRules, which is used to determine whether thecontentor top-levelredactsfield should be used to determine what event anm.room.redactionevent redacts.SpaceChildOrderwhich allows to validate theorderof anm.space.childevent.org.matrix.hydra.11.explicitly_privilege_room_creatorsandadditional_room_creatorstoAuthorizationRulesto indicate whether room creators are considered to have "infinite" power level and whether additional room creators can be specified with thecontent.additional_creatorsfield of anm.room.createevent respectively.RoomPowerLevelsRules, to provide tweaks to how the power level of a user is determined, and add it toPushConditionPowerLevelsCtxvia therulesfield.room_id_formattoRoomVersionRules, to identify the format to use for room IDs depending on the room version.RoomId::new_v2()for the new format of room IDs.RoomId::strip_sigil()allows to access the reference hash used in that format.unstable-msc3768feature.room_create_event_id_as_room_idtoAuthorizationRulesto indicate whether the reference hash of them.room.createevent is used to construct the room ID. It has other implications, like them.room.createevent not having a room ID, and them.room.createevent not listed in theauth_eventsof a PDU.require_room_create_room_idandallow_room_create_in_auth_eventstoEventFormatRulesto indicate whether the room ID is required form.room.createevents and whether the event ID of them.room.createis allowed in theauth_events, respectively.v0.15.4: ruma-common 0.15.4Compare Source
Bug fix:
serde::default_on_errordeserialization helper. It was working withserde_json::from_valuebut not other functions likeserde_json::from_(str/slice). It now works with all 3 methods but is limited to deserializing JSON.v0.15.3: ruma-common 0.15.3Compare Source
Improvements:
RoomSummarythat represents the summary of a room's state.From<RoomSummary>forPublicRoomsChunkMatrixVersion::V1_15.PublicRoomJoinRulenow includes all possible join rule kinds, due to a clarification in Matrix 1.15.serde::default_on_error()as a helper to ignore errors during deserialization.PublicRoomJoinRuleandSpaceRoomJoinRule.FeatureFlagas an enum whose variants are the flags of features supported by Ruma.SupportedVersions, a type to parse/versionsresponses to get lists of supported versions and features.v0.15.2: ruma-common 0.15.2Compare Source
Bug fixes:
MatrixVersion::V1_0now also matches Identity Service API versions r0.2.0 to r0.3.0.RUMA_UNSTABLE_EXHAUSTIVE_TYPESenvironment variableImprovements:
MatrixVersionimplementsPartialOrdandOrd. The variants are ordered by release date, with a newer version being greater than an older version.SignaturesimplementsIntoIteratorPartialEqAsRefStr,Eq,PartialOrdAsRefStr,OrdAsRefStrforruma_common::media::Method.DeviceId::new()generates a string with 10 chars instead of 8.ignore_invalid_vec_items, to assist deserialization ofVecs, where invalid items should be ignored.MatrixVersion::V1_14.oknozor/speculoos (speculoos)
v0.13.0Compare Source
What's Changed
New Contributors
Full Changelog: oknozor/speculoos@0.12.0...0.13.0
Peternator7/strum (strum)
v0.27.2Compare Source
#141: Adding support for doc comments on
EnumDiscriminantsgenerated type.#435:allow discriminants on empty enum.
#443: Change enum table callbacks to FnMut.
#444: Add
#[automatically_derived]to theimpls by @dandedotdev in #444#440: Implement a
suffixattribute for serialization of enum variants.#446: Drop needless
rustversiondependency.servo/rust-url (url)
v2.5.7What's Changed
v.2.5.6
v.2.5.7
New Contributors
Full Changelog: servo/rust-url@v2.5.5...v2.5.7
v2.5.5Compare Source
What's Changed
Mimeby @mrobinson in #1047cargo clippy --fix -- -Wclippy::use_selfby @mrobinson in #1048Url::domaindocs to show that it includes subdomain by @supercoolspy in #1057New Contributors
Full Changelog: servo/rust-url@v2.5.4...v2.5.5
wasm-bindgen/wasm-bindgen (wasm-bindgen)
v0.2.105Compare Source
Added
Added
Math::PIbinding tojs_sys, exposing the ECMAScriptMath.PIconstant.#4748
Added ability to use
--keep-lld-exportsinwasm-bindgen-test-runnerby setting theWASM_BINDGEN_KEEP_LLD_EXPORTSenvironment variable.#4736
Added
CookieStoreAPI.#4706
Added
run_cli_with_argslibrary functions to allwasm_bindgen_clientrypoints.#4710
Added
get_rawandset_rawforWebAssembly.Table.#4701
Added
new_with_valueandgrow_with_valueforWebAssembly.Table.#4698
Added better support for async stack traces when building in debug mode.
#4711
Extended support for
TryFromJsValuetrait implementations.#4714
New
JsValue.is_null_or_undefined()method and intrinsic.#4751
Support for
Option<JsValue>in function arguments and return.#4752
Support for
WASM_BINDGEN_KEEP_TEST_BUILD=1environment variableto retain build files when using the test runner.
#4758
Fixed
Fixed multithreading JS output for targets
bundler,denoandmodule.#4685
Fixed
TextDe/Encoderdetection for audio worklet use-cases.#4703
Fixed post-processing failures in case Std has debug assertions enabled.
#4705
Fixed JS memory leak in
wasm_bindgen::Closure.#4709
Fixed warning when using
#[wasm_bindgen(wasm_bindgen=xxx)]on struct.#4715
Removed
wasm-bindgen-backendwill no longer be published.#4696
v0.2.104Compare Source
Added
Added bindings for
WeakRef.#4659
Support
Symbol.disposemethods by default, when it is supported in the environment.#4666
Added
aarch64-unknown-linux-muslrelease artifacts.#4668
Changed
Unconditionally use the global
TextEncoder/TextDecoderfor string encoding/decoding. The Node.js output now requires a minimum of Node.js v11.#4670
Deprecate the
msrvcrate feature. MSRV detection is now always on.#4675
Fixed
Fixed wasm-bindgen-cli's
encode_intoargument not working.#4663
Fixed a bug in
--experimental-reset-state-functionsupport for heap reset.#4665
Fixed compilation failures on Rust v1.82 and v1.83.
#4675
v0.2.103Compare Source
Fixed
#4656
v0.2.102Compare Source
Added
Added
DocumentOrShadowRoot.adoptedStyleSheets.#4625
Added support for arguments with spaces using shell-style quoting in webdriver
*_ARGSenvironment variables to
wasm-bindgen-test.#4433
Added ability to determine WebDriver JSON config location via
WASM_BINDGEN_TEST_WEBDRIVER_JSONenvironment variable towasm-bindgen-test.#4434
Generate DWARF for tests by default. See the guide on debug information for more details.
#4635
New
--target=moduletarget for outputting source phase imports.#4638
Changed
wasm-bindgen --helpdocs.#4646
Fixed
Fixed wrong method names for
GestureEventbindings.#4615
Fix crash caused by allocations during
TypedArrayinteractions.#4622
v0.2.101Compare Source
Added
Added format and colorSpace support to VideoFrameCopyToOptions
#4543
Added support for the
onbeforeinputattribute.#4544
TypedArray::new_from_slice(&[T])constructor that allows to create aJS-owned
TypedArrayfrom a Rust slice.#4555
Added
Function::call4andFunction::bind4throughFunction::call9Function::bind9methods for calling and binding JavaScript functions with 4-9 arguments.#4572
Added isPointInFill and isPointInStroke methods for the SVGGeometryElement idl.
#4509
Added unstable bindings for
GestureEvent.#4589
Stricter checks for
module,raw_moduleandinline_jsattributes applied to inapplicable items.#4522
Add bindings for
PictureInPicture.#4593
Added
bytesmethod for theBlobidl#4506
Add error message when export symbol is not found
#4594
Changed
Deprecate async constructors.
#4402
The
sizeargument toGPUCommandEncoder.copyBufferToBufferis now optional.#4508
MSRV of CLI tools bumped to v1.82. This does not affect libraries like
wasm-bindgen,js-sysandweb-sys!#4608
Fixed
Detect more failure scenarios when retrieving the Wasm module.
#4556
Add a workaround for
TextDecoderfailing in older version of Safari when too many bytes are decoded through it over its lifetime.#4472
TypedArray::from(&[T])now works reliably across memory reallocations.#4555
Fix incorrect memory loading and storing assertions during post-processing.
#4554
Fix test
--exactoption not working as expected.#4549
Fix tables being removed even though they are used by stack closures.
#4119
Skip
__wasm_call_ctorswhich we don't want to interpret.#4562
Fix infinite recursion caused by the lack of proc-macro hygiene.
#4601
Fix running coverage with no_modules.
#4604
Fix proc-macro hygiene with
core.#4606
Removed
Crates intended purely for internal consumption by the wasm-bindgen CLI will no longer be published:
#4608
wasm-bindgen-externref-xformwasm-bindgen-multi-value-xformwasm-bindgen-threads-xformwasm-bindgen-wasm-conventionswasm-bindgen-wasm-interpreterVoidStarKat/widestring-rs (widestring)
v1.2.1Compare Source
Changed
Fixed
trim_endcharacter boundary panic when processing 4-byte characters. By [@syrflover].U16String::insert_charwhich always panicked. Fixes [#46].WideCStringtype alias.unused_importlint onwide*macros.Added
Utf32StringandUtf32Str. You can load them fromgdb/widestring.py.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 becomes conflicted, 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.