Commit graph

4479 commits

Author SHA1 Message Date
Jonas Platte
2c2a48b665
Remove msrv from .clippy.toml
Clippy now respects the rust-version field in Cargo manifests:
https://github.com/rust-lang/rust-clippy/pull/8774
2022-07-19 21:41:15 +02:00
Jonas Platte
3e34cda48a
client-api: Add more docs to get_message_events::Requests constructors 2022-07-19 18:04:11 +02:00
Jonas Platte
c97f5507b9
client-api: Simplify message::get_message_events::v3::Requests constructors 2022-07-19 17:48:14 +02:00
Jonas Platte
909e80841f
macros: Ensure that crates using ruma_api macro have client and server features 2022-07-19 09:37:38 +02:00
Jonas Platte
b11f09030a
macros: Improve docs note on ruma_api macro 2022-07-19 09:35:47 +02:00
Jonas Platte
da5def6731
client-api: Update message::get_message_events::v3::Request's constructors 2022-07-18 19:04:37 +02:00
Jonas Platte
f4a8a66bde
client-api: Remove get_message_events::Request::new's from parameter 2022-07-18 18:50:28 +02:00
Kévin Commaille
7ec599e83d client-api: Add support for private read receipts
According to MSC2285
2022-07-18 11:18:55 +02:00
Kévin Commaille
635480796d common: Add support for private read receipts
According to MSC2285
2022-07-18 11:18:55 +02:00
Kévin Commaille
2f96fa5548 push: Add push rule to ignore room server ACLs
According to MSC3786
2022-07-16 19:09:15 +02:00
Kévin Commaille
c63f03912b push: Set feature flag per rule instead of per set.
Allows more flexibility when several feature flags change the same set.
2022-07-16 19:09:15 +02:00
Johannes Becker
d80e7c9c32
client-api: Make from optional for get_message_events::Request::new 2022-07-15 18:37:28 +02:00
Jonathan de Jong
8f8937b29e
identifiers: Add Into Box & Arc, and PartialEq Arc (#1235)
* Add Into Box & Arc, and PartialEq Arc

* change into to from

* Apply suggestions from code review

Co-authored-by: Jonas Platte <jplatte@element.io>

Co-authored-by: Jonas Platte <jplatte@element.io>
2022-07-12 10:44:02 +02:00
Doug
e2d0e4cf20 Add unstable prefix for m.authentication. 2022-07-11 12:01:27 +02:00
Kévin Commaille
eb567dac73 identifiers: Separate RoomId URI methods with and without via 2022-07-08 15:49:14 +02:00
Kévin Commaille
fcdb2286c3 events: Remove unnecessary refs 2022-07-08 13:34:19 +02:00
Kévin Commaille
06cd3a3a6c events: Allow clippy::needless_borrow to avoid false positives 2022-07-08 13:34:19 +02:00
Kévin Commaille
efc95da6fa events: Remove needless borrow 2022-07-08 13:34:19 +02:00
Kévin Commaille
a4e6081b41 events: Improve extensible events conversion helpers docs 2022-07-08 13:34:19 +02:00
Kévin Commaille
be2310294a events: Make extensible events conversion helpers private 2022-07-08 13:34:19 +02:00
Kévin Commaille
bda17c3662 events: Avoid unnecessary allocations during conversion 2022-07-08 13:34:19 +02:00
Kévin Commaille
96155915fe
ci: Fix deploying previews for forked repositories 2022-06-30 11:50:33 +02:00
Kévin Commaille
2dacaf2ea0 identifiers: Allow via on RoomId::matrix_to_event_uri() 2022-06-29 14:54:37 +02:00
Kévin Commaille
4883a3154c identifiers: Make matrix URI ctors generic over owned parameters
Avoid unnecessary cloning
2022-06-29 14:54:37 +02:00
Kévin Commaille
cbcf9b0a7b identifiers: Implement From<Owned*Id> for MatrixId 2022-06-29 14:54:37 +02:00
Jonas Platte
803fd38f99
server-util: Fix clippy lints 2022-06-29 14:22:13 +02:00
Jan Christian Grünhage
8b21519d25
Add ruma-server-util crate with X-Matrix auth header parsing 2022-06-29 13:54:28 +02:00
Jonas Platte
6b04b6c567
signatures: Silence unreachable lint with unstable-exhaustive-patterns 2022-06-29 10:50:25 +02:00
Jonas Platte
08002e2640
Fix unstable-msc2870 2022-06-29 10:31:25 +02:00
Jonas Platte
2e8b3e7e79
Fix clippy lints 2022-06-29 10:15:39 +02:00
Jonas Platte
cd7022a0d7
Revert "Use target-applies-to-host to avoid unnecessary cache invalidation"
This reverts commit 3d65c1e957.
This was breaking our clippy lint configuration in .cargo/config.toml:
https://github.com/rust-lang/cargo/issues/10744
2022-06-29 10:15:19 +02:00
Kévin Commaille
df821ab753 state-res: Enforce integer PLs for room v10 on custom types
According to MSC3667
2022-06-27 13:19:25 +02:00
Kévin Commaille
da462adab1 state-res: Stabilize deserializing stringified integers for PLs
Removes the `compat` feature.
2022-06-27 13:19:25 +02:00
Kévin Commaille
ca3ca023a4 state-res: Remove unnecessary serde attributes 2022-06-27 13:19:25 +02:00
Kévin Commaille
b38efe75c3 state-res: Fix default invite power level
According to matrix-org/matrix-spec#1021
2022-06-27 13:19:25 +02:00
Kévin Commaille
ef072654da state-res: Add knock_restricted join rule
According to MSC3787
2022-06-25 18:22:32 +02:00
Kévin Commaille
e683d28afe state-res: Enforce integer power levels for room v10
According to MSC3667
2022-06-25 18:22:32 +02:00
Kévin Commaille
2fcb7315b4 state-res: Add RoomVersion::V10 2022-06-25 18:22:32 +02:00
Kévin Commaille
324c8b09e0
state-res: Add m.federate to the authorization rules 2022-06-25 18:11:57 +02:00
Kévin Commaille
cac7e09429
events: Add methods to sanitize messages
Can also remove rich reply fallbacks

Behind the `unstable-sanitize` feature.

Co-authored-by: Jonas Platte <jplatte@matrix.org>
2022-06-24 19:13:46 +02:00
Kévin Commaille
506a7bdf2e push: Fix regex for word boundaries 2022-06-24 17:32:34 +02:00
Kévin Commaille
1e220a05bf push: Fix word matching without wildcards
Don't match non-ASCII alphanumeric characters
2022-06-24 17:32:34 +02:00
Kévin Commaille
d192184b3c
push: Allow wildcards when matching words 2022-06-23 15:57:54 +02:00
Jonas Platte
33e1a20c4b
signatures: Remove unused compat feature 2022-06-23 12:43:53 +02:00
Jonas Platte
f9f2c89615
ruma: Re-export canonical_json module and related types 2022-06-23 11:47:28 +02:00
Jonas Platte
3808b87981
ruma: Clean up serde re-exports 2022-06-23 11:47:15 +02:00
Jonas Platte
7c2ea3f33a common: Improve comments / docs 2022-06-23 10:18:26 +02:00
Jonas Platte
a4a95e74fa Address review feedback and finish canonical JSON move 2022-06-23 10:18:26 +02:00
Jonas Platte
940450b953 [WIP] Move redaction from ruma-signatures to ruma-common 2022-06-23 10:18:26 +02:00
Jonas Platte
402b2764fb common: Move CanonicalJson out of serde mod and behind a Cargo feature 2022-06-23 10:18:26 +02:00