Skip to content

Update Rust crate ruma-common to 0.18.0#3

Open
oxide-renovate[bot] wants to merge 1 commit intomainfrom
renovate/ruma-common-0.x
Open

Update Rust crate ruma-common to 0.18.0#3
oxide-renovate[bot] wants to merge 1 commit intomainfrom
renovate/ruma-common-0.x

Conversation

@oxide-renovate
Copy link
Copy Markdown
Contributor

@oxide-renovate oxide-renovate Bot commented Nov 19, 2024

This PR contains the following updates:

Package Type Update Change
ruma-common (source) workspace.dependencies minor 0.17.00.18.0

Release Notes

ruma/ruma (ruma-common)

v0.18.0: ruma-common 0.18.0

Compare Source

Breaking changes:

  • The variants of CanonicalJsonError variants changed.
  • to_canonical_value() has stricter rules, it now returns errors for the following cases which were never documented to work in the first place:
    • Serializing bytes.
    • Serializing booleans and integers as keys for an object.
    • Serializing the same key twice in an object.
  • The canonical-json feature was removed. The canonical_json module is no longer gated behind a cargo feature.
  • The IdDst macro doesn't generate methods and trait implementations anymore for Box{id}, Arc<id> and Rc<{id}>. Using Owned{id} should be preferred.
  • EventId::new() was renamed to EventId::new_v1(), since it works only for the first format of event IDs.
  • The NoAuthentication authentication scheme doesn't take a SendAccessToken as input anymore, because it doesn't make sense to be able to send access tokens for APIs that don't use them as a form of authentication. The new NoAccessToken authentication scheme should be used instead for APIs that rely on access tokens as a form of authentication.
  • It is no longer possible to construct custom Action types directly through the hidden _Custom variant. They should be constructed with Action::new() and their data should be accessed with Action::data().
  • The Tweak type uses stronger enum types for its variants, and the Custom variant is now hidden and cannot be constructed directly. It should be constructed with Tweak::new() and its data should be accessed with Tweak::set_tweak() and Tweak::value().
  • The struct variants of PushCondition are now tuple variants containing a non-exhaustive struct.
  • JsonType was renamed to CanonicalJsonType to reflect that it only represents the possible types of a CanonicalJsonValue. It can also be accessed with CanonicalJsonValue::json_type().
  • Refactor and improve the variants of RedactionError:
    • NotOfType was renamed to InvalidType and provides more details about the invalid field.
    • JsonFieldMissingFromObject was renamed to MissingField an provides the full path of the missing field.
  • redact_content_in_place() is now infallible.
  • MatrixError and MatrixErrorBody were renamed to Error and ErrorBody respectively. The Matrix prefix is redundant in a crate about the Matrix protocol.
  • The error module from ruma-client-api was merged into the api::error module. Error is now non-exhaustive and ErrorBody has a new Standard variant.

Improvements:

  • Add canonical_json::Serializer, which allows to serialize a type directly to a CanonicalJsonValue, with stricter rules than serde_json::value::Serializer. This serializer is also used in to_canonical_value().
  • Add the assert_to_canonical_json_eq! macro that can be used in tests to check the canonical JSON serialization of a type against its expected value.
  • Add crate-internal into_raw() / from_raw() helpers for IdDst owned IDs and use them in OwnedRoomId / OwnedRoomAliasId <-> OwnedRoomOrAliasId conversions.
  • Use raw ownership transfer for conversions from OwnedDeviceId and OwnedBase64PublicKey to OwnedBase64PublicKeyOrDeviceId.
  • Identifier types implement (Try)From<Box<str>>, (Try)From<Cow<'a, str>> and PartialEq<Cow<'a, str>> and conversions between owned types try not to reallocate when possible.
  • Add EventId::new_v2_or_v3() to construct event IDs formats which are based on the event reference hash.
  • Add RoomType::Call & RoomTypeFilter::Call to support MSC3417 behind unstable-msc3417
  • It is now possible to use Base64::parse when the inner B "bytes" type is an array, and the inner bytes can be accessed without consuming the wrapper type with Base64::as_inner().
  • Add MatrixVersion::V1_18.
  • CanonicalJsonValue::json_type() allows to get the JsonType of a value.
  • Add FeatureFlag::Msc4323, the unstable feature flag for the user suspension and locking endpoints, according to MSC4323.
  • Add unstable support for MSC4406.
  • Add rule_type() and data() methods to AllowRule.
  • Implement PartialEq and Eq on CrossSigningKey and Signatures.
  • Add Error::is_endpoint_not_implemented() helper method to check if it matches the expected format for endpoints that are not implemented by the homeserver.

v0.17.1: ruma-common 0.17.1

Compare Source

Bug fixes:

  • Fix the Clone implementation of the Owned* types generated with the IdDst macro. It used to always create a new instance from the borrowed type instead of using the Clone implementation of the internal type.

Improvements:

  • Add AppserviceUserIdentity::maybe_add_to_uri() to add an identity assertion to an http::Uri. This allows to reimplement the behavior of OutgoingRequestAppserviceExt::try_into_http_request_with_identity() outside of Ruma, if using this trait is inconvenient.
  • Add MatrixVersion::V1_17.
  • JoinRule holds arbitrary data in its fallback variant, with can be accessed with JoinRule::data(). It also means that this type won't fail to serialize for undocumented variants anymore.

Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • "after 8pm,before 6am"
  • Automerge
    • "after 8pm,before 6am"

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch 2 times, most recently from baa4568 to 18037b6 Compare December 16, 2024 09:43
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.14.1 Update Rust crate ruma-common to 0.15.0 Dec 16, 2024
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 18037b6 to b239c99 Compare December 31, 2024 04:12
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from b239c99 to 2575857 Compare February 3, 2025 13:21
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.15.0 Update Rust crate ruma-common to 0.15.1 Feb 3, 2025
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 2575857 to 1d4afda Compare April 7, 2025 09:22
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.15.1 Update Rust crate ruma-common to 0.15.2 Apr 7, 2025
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 1d4afda to 118462c Compare July 7, 2025 09:10
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.15.2 Update Rust crate ruma-common to 0.15.3 Jul 7, 2025
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 118462c to 42eba07 Compare July 9, 2025 03:26
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.15.3 Update Rust crate ruma-common to 0.15.4 Jul 9, 2025
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 42eba07 to cf913ea Compare September 3, 2025 12:37
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.15.4 Update Rust crate ruma-common to 0.16.0 Sep 3, 2025
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from cf913ea to 6d541ba Compare November 20, 2025 13:36
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.16.0 Update Rust crate ruma-common to 0.17.0 Nov 20, 2025
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.17.0 Update Rust crate ruma-common to 0.17.0 - autoclosed Jan 2, 2026
@oxide-renovate oxide-renovate Bot closed this Jan 2, 2026
@oxide-renovate oxide-renovate Bot deleted the renovate/ruma-common-0.x branch January 2, 2026 18:37
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.17.0 - autoclosed Update Rust crate ruma-common to 0.17.1 Jan 5, 2026
@oxide-renovate oxide-renovate Bot reopened this Jan 5, 2026
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch 2 times, most recently from 6d541ba to 203aaf8 Compare January 5, 2026 10:19
@oxide-renovate oxide-renovate Bot changed the title Update Rust crate ruma-common to 0.17.1 Update Rust crate ruma-common to 0.18.0 Apr 26, 2026
@oxide-renovate oxide-renovate Bot force-pushed the renovate/ruma-common-0.x branch from 203aaf8 to 94c5f98 Compare April 26, 2026 12:32
@oxide-renovate
Copy link
Copy Markdown
Contributor Author

oxide-renovate Bot commented May 7, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants