-
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
ebbc4b2
to
4644306
Compare
4644306
to
5aaaa28
Compare
|
This PR contains the following updates:
1.0.0
->1.0.4
0.30.0
->0.35.0
2.0.6
->2.0.7
0.3.77
->0.3.81
1.21.1
->1.21.3
1.11.1
->1.12.2
0.15.0
->0.16.0
0.12.0
->0.13.0
0.27.1
->0.27.2
0.27.1
->0.27.2
789a902
->bfe625c
789a902
->bfe625c
789a902
->bfe625c
2.5.4
->2.5.7
0.2.100
->0.2.104
0.4.50
->0.4.54
0.3.50
->0.3.54
0.3.77
->0.3.81
1.2.0
->1.2.1
Release Notes
rust-lang/cfg-if (cfg-if)
v1.0.4
Compare Source
cfg(true)
andcfg(false)
(#99)v1.0.3
Compare Source
@__identity
rule."v1.0.2
Compare Source
@__identity
rule.v1.0.1
Compare Source
compiler-builtins
fromrustc-dep-of-std
dependenciesservo/html5ever (html5ever)
v0.35.0
: 0.35.0From this release forward,
html5ever
,xml5ever
,markup5ever
, andmatch_token
are now released using a synced version number. Thus this release is version0.35.0
of all of these crates.Changes
web_atoms
are now in sync. (#637)mac
crate. (#639)TreeBuilder
option. (#631)scripting_enabled
andiframe_srcdoc
options (#631)TreeSink::attach_declarative_shadow_root
(#633)dtolnay/indoc (indoc)
v2.0.7
Compare Source
indoc! {c"..."}
,indoc! {cr"..."}
(#67)matklad/once_cell (once_cell)
v1.21.3
Compare Source
race
: #284,#285.
v1.21.2
Compare Source
race
: #278.rust-lang/regex (regex)
v1.12.2
Compare Source
===================
This release fixes a
cargo doc
breakage on nightly when--cfg docsrs
isenabled. This caused documentation to fail to build on docs.rs.
Bug fixes:
Switches the
doc_auto_cfg
feature todoc_cfg
on nightly for docs.rs builds.v1.12.1
Compare Source
===================
This release makes a bug fix in the new
regex::Captures::get_match
APIintroduced in
1.12.0
. There was an oversight with the lifetime parameterfor the
Match
returned. This is technically a breaking change, but giventhat it was caught almost immediately and I've yanked the
1.12.0
release,I think this is fine.
v1.12.0
Compare Source
===================
This release contains a smattering of bug fixes, a fix for excessive memory
consumption in some cases and a new
regex::Captures::get_match
API.Improvements:
Add
Capture::get_match
for 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::find
consistently returnNone
whenWhichCaptures::None
is used.v1.11.3
Compare 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.2
Compare Source
===================
This is a new patch release of
regex
with 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_cell
tostd::sync::LazyLock
.Add
DFA::set_prefilter
toregex-automata
.Bug fixes:
Remove
std
dependency fromperf-literal-multisubstring
crate 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_match
all became async, to allow for lazy evaluation of push rules.UserId
parsing 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-id
cargo 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 theNUL
byte, due to a clarification in the spec.(owned_)room_alias_id!
macros disallow theNUL
byte for the localpart, due to a clarification in the spec.MatrixVersion
does not implementDisplay
anymore as it is not correct to convertV1_0
to a string. InsteadMatrixVersion::as_str()
can be used that only returnsNone
for that same variant.MatrixVersion::(into/from)_parts
are no longer exposed as public methods. They were usually used to sortMatrixVersion
s, now thePartialOrd
andOrd
implementations can be used instead.Protocol
andProtocolInit
are generic on the protocol instance type.AppserviceToken
toAppserviceTokenOptional
, with the new variant takingAppserviceToken
's place.redact*
functions incanonical_json
takeRedactionRules
instead 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 aSupportedVersions
instead of a&[MatrixVersion]
.metadata
macro 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
'sStable
variant was renamed toVersion
andUnstable
was renamed toFeature
.metadata
macro 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.JoinRule
and its associated types where imported fromruma-events
into theroom
module.space::SpaceRoomJoinRule
was removed and replaced byroom::JoinRuleSummary
.directory::PublicRoomJoinRule
was moved and renamed toroom::JoinRuleKind
.JoinRule::kind()
andJoinRuleSummary::kind()
.PushConditionRoomCtx
andPushConditionPowerLevelsCtx
non-exhaustive.versions
field ofSupportedVersions
is now aBTreeSet<MatrixVersion>
, to make sure that the versions are always deduplicated and sorted.NotificationPowerLevels
now takes aNotificationPowerLevelsKey
for thekey
, an enum that accepts any string.key
field ofPushCondition::SenderNotificationPermission
uses the same type.RoomId::new()
was renamed toRoomId::new_v1()
, as several formats are now supported for this type.StateResolutionVersion::V2
now takesStateResolutionV2Rules
as a unit field, to specify tweaks to be used when resolving state with version 2 of the state resolution algorithm.StateResolutionVersion::v2_rules
, returningNone
ifstate_res
is notStateResolutionVersion::V2
.StateResolutionV2Rules
has 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:
disposition
ofRoomVersionRules::MSC2870
as unstable.Improvements:
Zeroize
trait for theBase64
type.ProtocolInstance
has aninstance_id
field, due to a clarification in the spec.unstable-unspecified
cargo feature was removed.AnyKeyName
as a helper type to useKeyId
APIs without validating the key name.IdentityServerBase64PublicKey
as a helper type to decode identity server public keys encoded using standard or URL-safe base64.RoomVersion
was imported from ruma-state-res and renamed toRoomVersionRules
, along with the following changes:RoomVersionRules::new()
was removed and replaced byRoomVersionId::rules()
.RoomDisposition
enum was renamed toRoomVersionDisposition
.event_format
field was renamed toevent_id_format
and theEventFormat
enum was renamed toEventIdFormat
.AuthorizationRules
struct, which is available in theauthorization
field ofRoomVersionRules
.special_case_aliases_auth
field was renamed tospecial_case_room_aliases
.strict_canonicaljson
field was renamed tostrict_canonical_json
.extra_redaction_checks
field was renamed tospecial_case_room_redaction
.allow_knocking
field was renamed toknocking
.restricted_join_rules
field was renamed torestricted_join_rule
.RedactionRules
was added under theredaction
field.SignaturesRules
was added under thesignatures
field.RoomVersionId
has anMSC2870
variant for theorg.matrix.msc2870
room 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_BYTES
fromruma-identifiers-validation
.From<PublicRoomsChunk>
forRoomSummary
.content_field_redacts
field toRedactionRules
, which is used to determine whether thecontent
or top-levelredacts
field should be used to determine what event anm.room.redaction
event redacts.SpaceChildOrder
which allows to validate theorder
of anm.space.child
event.org.matrix.hydra.11
.explicitly_privilege_room_creators
andadditional_room_creators
toAuthorizationRules
to indicate whether room creators are considered to have "infinite" power level and whether additional room creators can be specified with thecontent.additional_creators
field of anm.room.create
event respectively.RoomPowerLevelsRules
, to provide tweaks to how the power level of a user is determined, and add it toPushConditionPowerLevelsCtx
via therules
field.room_id_format
toRoomVersionRules
, 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-msc3768
feature.room_create_event_id_as_room_id
toAuthorizationRules
to indicate whether the reference hash of them.room.create
event is used to construct the room ID. It has other implications, like them.room.create
event not having a room ID, and them.room.create
event not listed in theauth_events
of a PDU.require_room_create_room_id
andallow_room_create_in_auth_events
toEventFormatRules
to indicate whether the room ID is required form.room.create
events and whether the event ID of them.room.create
is allowed in theauth_events
, respectively.v0.15.4
: ruma-common 0.15.4Compare Source
Bug fix:
serde::default_on_error
deserialization helper. It was working withserde_json::from_value
but 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:
RoomSummary
that represents the summary of a room's state.From<RoomSummary>
forPublicRoomsChunk
MatrixVersion::V1_15
.PublicRoomJoinRule
now 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.PublicRoomJoinRule
andSpaceRoomJoinRule
.FeatureFlag
as an enum whose variants are the flags of features supported by Ruma.SupportedVersions
, a type to parse/versions
responses to get lists of supported versions and features.v0.15.2
: ruma-common 0.15.2Compare Source
Bug fixes:
MatrixVersion::V1_0
now also matches Identity Service API versions r0.2.0 to r0.3.0.RUMA_UNSTABLE_EXHAUSTIVE_TYPES
environment variableImprovements:
MatrixVersion
implementsPartialOrd
andOrd
. The variants are ordered by release date, with a newer version being greater than an older version.Signatures
implementsIntoIterator
PartialEqAsRefStr
,Eq
,PartialOrdAsRefStr
,OrdAsRefStr
forruma_common::media::Method
.DeviceId::new()
generates a string with 10 chars instead of 8.ignore_invalid_vec_items
, to assist deserialization ofVec
s, where invalid items should be ignored.MatrixVersion::V1_14
.oknozor/speculoos (speculoos)
v0.13.0
Compare Source
What's Changed
New Contributors
Full Changelog: oknozor/speculoos@0.12.0...0.13.0
Peternator7/strum (strum)
v0.27.2
Compare Source
#141: Adding support for doc comments on
EnumDiscriminants
generated type.#435:allow discriminants on empty enum.
#443: Change enum table callbacks to FnMut.
#444: Add
#[automatically_derived]
to theimpl
s by @dandedotdev in #444#440: Implement a
suffix
attribute for serialization of enum variants.#446: Drop needless
rustversion
dependency.servo/rust-url (url)
v2.5.7
What'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.5
Compare Source
What's Changed
Mime
by @mrobinson in #1047cargo clippy --fix -- -Wclippy::use_self
by @mrobinson in #1048Url::domain
docs 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.104
Compare Source
Added
Added bindings for
WeakRef
.#4659
Support
Symbol.dispose
methods by default, when it is supported in the environment.#4666
Added
aarch64-unknown-linux-musl
release artifacts.#4668
Changed
Unconditionally use the global
TextEncoder
/TextDecoder
for string encoding/decoding. The Node.js output now requires a minimum of Node.js v11.#4670
Deprecate the
msrv
crate feature. MSRV detection is now always on.#4675
Fixed
Fixed wasm-bindgen-cli's
encode_into
argument not working.#4663
Fixed a bug in
--experimental-reset-state-function
support for heap reset.#4665
Fixed compilation failures on Rust v1.82 and v1.83.
#4675
v0.2.103
Compare Source
Fixed
#4656
v0.2.102
Compare Source
Added
Added
DocumentOrShadowRoot.adoptedStyleSheets
.#4625
Added support for arguments with spaces using shell-style quoting in webdriver
*_ARGS
environment variables to
wasm-bindgen-test
.#4433
Added ability to determine WebDriver JSON config location via
WASM_BINDGEN_TEST_WEBDRIVER_JSON
environment variable towasm-bindgen-test
.#4434
Generate DWARF for tests by default. See the guide on debug information for more details.
#4635
New
--target=module
target for outputting source phase imports.#4638
Changed
wasm-bindgen --help
docs.#4646
Fixed
Fixed wrong method names for
GestureEvent
bindings.#4615
Fix crash caused by allocations during
TypedArray
interactions.#4622
v0.2.101
Compare Source
Added
Added format and colorSpace support to VideoFrameCopyToOptions
#4543
Added support for the
onbeforeinput
attribute.#4544
TypedArray::new_from_slice(&[T])
constructor that allows to create aJS-owned
TypedArray
from a Rust slice.#4555
Added
Function::call4
andFunction::bind4
throughFunction::call9
Function::bind9
methods 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_module
andinline_js
attributes applied to inapplicable items.#4522
Add bindings for
PictureInPicture
.#4593
Added
bytes
method for theBlob
idl#4506
Add error message when export symbol is not found
#4594
Changed
Deprecate async constructors.
#4402
The
size
argument toGPUCommandEncoder.copyBufferToBuffer
is now optional.#4508
MSRV of CLI tools bumped to v1.82. This does not affect libraries like
wasm-bindgen
,js-sys
andweb-sys
!#4608
Fixed
Detect more failure scenarios when retrieving the Wasm module.
#4556
Add a workaround for
TextDecoder
failing 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
--exact
option not working as expected.#4549
Fix tables being removed even though they are used by stack closures.
#4119
Skip
__wasm_call_ctors
which 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-xform
wasm-bindgen-multi-value-xform
wasm-bindgen-threads-xform
wasm-bindgen-wasm-conventions
wasm-bindgen-wasm-interpreter
VoidStarKat/widestring-rs (widestring)
v1.2.1
Compare Source
Changed
Fixed
trim_end
character boundary panic when processing 4-byte characters. By [@syrflover].U16String::insert_char
which always panicked. Fixes [#46].WideCString
type alias.unused_import
lint onwide*
macros.Added
Utf32String
andUtf32Str
. 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.