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
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
Jonas Platte
11d926ed17
Fix conditional compilation of criterion
2022-06-15 18:50:57 +02:00
Jonas Platte
8912182c56
Increase usage of implicit named arguments in format strings
2022-06-03 10:06:28 +02:00
Jonas Platte
73c2963ebd
Enforce consistent semicolons after ()
-typed expressions in blocks
2022-06-03 08:40:16 +02:00
Jonas Platte
07af61d784
Bump MSRV to 1.60
2022-06-01 14:52:02 +02:00
Jonas Platte
e1ebff0047
Set rust-version for crates/* (excl. ruma-signatures)
2022-05-27 12:05:41 +02:00
Jonas Platte
5f902851af
Upgrade to Rust 2021
2022-05-27 12:04:23 +02:00
Kévin Commaille
6939c048b0
chore: Bump MSRV to 1.59
2022-05-16 13:24:25 +02:00
Jonas Platte
e1c35b3d7f
Release ruma-common 0.9.2
2022-05-09 12:51:17 +02:00
Jonas Platte
a36da216ec
Release ruma-common 0.9.1
2022-05-06 17:19:57 +02:00
Jonas Platte
4f9e8f0ae5
Release ruma-state-res 0.7.0
2022-04-28 17:56:00 +02:00
Jonas Platte
4e8d88617d
Release ruma-common 0.9.0
2022-04-28 16:38:08 +02:00
Jonas Platte
6100a0fa12
Use new owned ID types in more places
2022-04-20 10:39:36 +02:00
Jonas Platte
d855ec33d6
identifiers: Update ToOwned implementations to use new types
...
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Jonas Platte
3ec8218158
state-res: Update fetch_state type
2022-04-15 12:06:09 +02:00
Jonas Platte
b3cea6b998
state-res: Use StateEventType over RoomEventType where applicable
2022-04-09 00:55:14 +02:00
Jonas Platte
77a95e5ac9
state-res: Properly declare room version 7 stable
2022-04-06 11:04:25 +02:00
Jonas Platte
7de3b4b649
events: Rework the event enum hierarchy
2022-04-05 14:29:17 +02:00
Jonas Platte
d87874314b
events: Add 'Original' prefix to unredacted types with a redacted form
2022-04-05 14:29:17 +02:00
Jonas Platte
24bd27a3a9
Remove origin field from PDUs
...
It has been removed from the spec, for details see
https://github.com/matrix-org/matrix-spec/pull/998
2022-03-30 08:44:40 +02:00
Jonas Platte
ce785064a9
Use RoomEventType instead of EventType for PDUs and power levels
2022-03-16 12:20:17 +01:00
Timo Kösters
83e46b6aea
state-res: Fix restricted joins
2022-03-14 15:02:21 +01:00
Timo Kösters
1ab97ddbe5
state-res: Fix knocking support
2022-03-11 12:38:39 +00:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common
2022-03-10 12:11:00 +01:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common
2022-03-09 17:46:51 +00:00
homersimpsons
2ec50bd03c
doc: migrate links from matrix-doc to matrix-spec(-proposals)
2022-03-08 10:24:26 +01:00
gnieto
fca0f6a22b
Minor fix on join member auth rules
...
Previous code was not checking/enforcing rule 4.3.1
(https://spec.matrix.org/v1.2/rooms/v9/ ), which states that a room
member event (with a join membership) must be accepted only if it contains
a previous event which `state_key` is the room creator.
On top of that, it simplifies the public interface for `auth_rules`,
removing the need of (externally) compute `prev_event`, which, as a side
effect, should reduce the amount of times the previous event needs to be
fetched: It will only load it if the authorized event is a `m.room_member`
with a `Join` state.
Finally, I've splitted the join conditions so it's (hopefully) more
readable and apply auth rules in the same order as they
appear in the spec.
2022-03-08 08:27:47 +01:00
Jonas Platte
43c47ef676
state-res: Fix wrong import location
2022-03-04 17:00:00 +01:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common
2022-03-04 11:45:07 +00:00
Jonas Platte
82436b57ba
Release ruma-state-res 0.6.0
2022-02-19 15:05:41 +01:00
Jonas Platte
b725865cba
Release ruma-events 0.26.0
2022-02-19 14:53:14 +01:00
Jonas Platte
06344cdc73
Release ruma-common 0.8.0
2022-02-19 14:47:08 +01:00
Jonas Platte
2ed51f1d54
Release ruma-identifiers 0.22.0
2022-02-19 14:28:28 +01:00
Jonas Platte
42db3b3201
Release ruma-state-res 0.5.0
2022-02-19 01:45:06 +01:00
Jonas Platte
90fd1d8f0a
Release ruma-events 0.25.0
2022-02-19 01:38:25 +01:00
Jonas Platte
b29755f0c5
Release ruma-common 0.7.0
2022-02-19 01:33:25 +01:00
Jonas Platte
fec52a0218
Release ruma-identifiers 0.21.0
2022-02-19 01:07:23 +01:00
Jonas Platte
38881dd6af
Release ruma-serde 0.6.0
2022-02-19 01:01:17 +01:00
Jonathan de Jong
936bb64e84
Update links to spec.matrix.org/v1.2
2022-02-18 19:45:04 +01:00
Jonas Platte
215cb35806
Clean up import grouping / ordering
2022-02-18 11:20:39 +01:00
Jonas Platte
ebb09589f9
Remove authors field from Cargo manifests
...
It's no longer necessary and authorship is much better tracked with git.
2022-02-12 13:46:44 +01:00
Kévin Commaille
acba6fbbc4
ci: Add the __ci feature
2022-02-11 22:17:49 +01:00