Kévin Commaille
cc1b2144ea
chore: Point links to v1.12 of the spec
2024-10-19 14:59:08 -04:00
Jason Volk
3109496a1f
expose MAX_BYTES as an associated constant for identifiers
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-10-09 10:34:00 +00:00
Jason Volk
c434098fb1
Improve validation error for empty mxid.
...
Previously an empty MXID was reported as MissingLeadingSigil but a more
concise variant is just Empty.
Signed-off-by: Jason Volk <jason@zemos.net>
2024-10-09 10:34:00 +00:00
Kévin Commaille
b8e4d5b6a2
misc: Update spec links to latest version
2024-06-21 18:10:14 +02:00
Jonas Platte
4a02b97aa3
Update website URL
2024-04-04 13:20:58 +02:00
Kévin Commaille
0e7c91d789
docs: Point links to v1.10 of the spec
2024-03-22 21:28:39 +01:00
Tulir Asokan
b2c3df421d
identifiers: Fix MXC URI validation
2024-03-07 13:39:57 +01:00
Kévin Commaille
4efca6fba5
docs: Point links to v1.9 of the spec
2023-11-30 14:42:14 +01:00
Jonas Platte
e658b8b128
Remove 'www.' from ruma.io URLs
2023-10-12 15:44:00 +02:00
Jonas Platte
984cbda962
identifiers: Don't require room IDs to contain a server name
...
Room IDs being splittable into localpart and servername does not have
much inherent value and there are proposals like MSC4051¹ that propose
changing the format. Relaxing the rules makes Ruma forwards-compatible
with those proposals. The server_name accessor is kept because it is
used by at least one downstream, but is updated to return an `Option`.
¹ https://github.com/matrix-org/matrix-spec-proposals/pull/4051
2023-09-28 16:43:16 +02:00
Jonas Platte
10f651916f
identifiers: Add a compat flag to allow arbitrary-length IDs
2023-09-27 16:33:53 +02:00
Kévin Commaille
acfeb38e90
docs: Update spec links to point to v1.8
2023-08-24 12:16:29 +02:00
Kévin Commaille
8bdfd809e4
identifiers-validation: Allow +
in the localpart of user IDs
...
According to MSC4009
2023-08-21 11:02:57 +02:00
Kévin Commaille
38f600c602
docs: Update v1.6 spec links to v1.7
2023-05-30 16:38:30 +02:00
Jonas Platte
d5b0cc608f
Add user ID localpart emptiness check
2023-05-02 15:09:23 +02:00
Jonas Platte
4c85fe9c78
Replace compat feature with more fine-grained compat-* features
...
… and document them.
2023-04-20 14:00:27 +02:00
Kévin Commaille
a859567487
docs: Migrate spec links to v1.6
2023-02-15 09:59:05 +01:00
Kévin Commaille
e653912e22
xtask: Disallow linking to the latest spec when a link uses a non-unique ID
...
These IDs can change from one version to the other if another heading
with the same name is added before, so the link would not
point to the proper part of the spec anymore.
2023-02-12 12:39:24 +01:00
Kévin Commaille
f159776f52
chore: Make all applicable spec links use the latest spec instead of a specific version
2023-02-12 12:39:24 +01:00
HKalbasi
270f8196bc
identifiers: Don't allow invalid characters in RoomVersionId
2023-02-12 11:05:33 +01:00
Jonas Platte
3013ca0dc1
identifiers: Don't accept colons in user-id localparts, even in compat
2023-02-07 20:56:22 +01:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Jonas Platte
bf670fb814
identifiers: Move session ID validation out of separate validation crate
2022-06-08 13:31:38 +02:00
Jonas Platte
34ad27bdf5
identifiers-validation: Disallow non-ascii alphanumeric chars in session IDs
2022-06-08 13:31:38 +02:00
Jonas Platte
4b756c5887
identifiers-validation: Simplify localpart_is_fully_conforming
2022-06-08 13:31:38 +02:00
Jonas Platte
a8e7c47bbe
Remove RoomName type
2022-06-03 11:40:33 +02:00
Kévin Commaille
906d576a27
Implement Improved Signalling for 1:1 VoIP
...
According to MSC2746
2022-05-30 14:09:58 +02:00
Jonas Platte
9cfee27722
identifiers: Clean up error enum
2022-04-27 19:09:44 +02:00
Jonas Platte
294506540d
identifiers-validation: Ensure the Error type doesn't get too big
2022-04-10 11:43:40 +02:00
homersimpsons
2ec50bd03c
doc: migrate links from matrix-doc to matrix-spec(-proposals)
2022-03-08 10:24:26 +01:00
Kévin Commaille
be376f5bd6
identifiers: Add MatrixUri for matrix scheme URIs
2022-02-19 14:09:43 +01:00
Kévin Commaille
f6f3ce074b
identifiers-validation: Fix docs for MatrixToError
2022-02-19 11:40:35 +01:00
Jonathan de Jong
936bb64e84
Update links to spec.matrix.org/v1.2
2022-02-18 19:45:04 +01:00
Kévin Commaille
f9b4958654
identifiers: Add MatrixToUri parsing
2022-02-18 19:11:26 +01:00
Jonas Platte
7e3b727d04
Fix / silence clippy lints
2021-12-09 15:50:42 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST
2021-11-26 00:40:44 +01:00
Jonas Platte
313124a099
identifiers: Make RoomIdOrAliasId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST
2021-11-25 22:34:40 +01:00
Jonas Platte
c73eb7dce3
identifiers: Make DeviceKeyId a DST
2021-11-25 21:07:14 +01:00
Jonas Platte
5a96cbf322
Silence buggy clippy lint
2021-10-29 22:41:14 +02:00
Jonathan de Jong
c33920d8ae
Use thiserror in id-validation, add more detail to mxc-uri errors
2021-09-15 20:36:20 +02:00
Jonas Platte
85fc0b39da
identifiers-validation: Don't validate key ID version with feature = "compat"
2021-08-18 18:04:16 +02:00
Adam
63411165da
Move RoomName
to ruma-identifiers
and use it more
2021-08-10 15:22:47 +02:00
Devin Ragotzy
c55dab7122
misc-errors: Allow or make error enums non_exhaustive
2021-08-10 15:22:26 +02:00
Adam
2577225ba5
Add client secret and session ID types
2021-08-10 15:22:24 +02:00
Jonas Platte
25dd8e8e2a
identifiers: Fix a typo in function name
2021-06-01 12:49:01 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory
2021-05-03 15:50:27 +02:00