Jonas Platte
d78f56e85c
identifiers: Test server_name function in room_id tests
2023-09-28 16:43:16 +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
00ee6030c0
identifiers: Remove unnecessary as_str calls from room_id tests
2023-09-28 16:43:16 +02:00
Kévin Commaille
5f20a3292c
docs: Fix links for v1.7
2023-05-25 19:28:33 +02:00
Jonas Platte
5aa0f29935
identifiers: Add AsRef<[u8]> impls for ID types
2023-03-07 11:06:34 +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
Kévin Commaille
06820cdc92
common: Use the same percent encoding set consistently
2023-01-24 20:15:09 +01:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +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
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
Jonas Platte
5f902851af
Upgrade to Rust 2021
2022-05-27 12:04:23 +02:00
Jonas Platte
9cfee27722
identifiers: Clean up error enum
2022-04-27 19:09:44 +02:00
Jonas Platte
efe48af207
Replace remaining uses of boxed IDs with dedicated owned ones
2022-04-20 10:39:36 +02:00
Jonas Platte
d5656f3399
identifiers: Rename from_owned to from_box
2022-04-14 11:37:35 +02:00
Jonas Platte
f658487c50
identifiers: Replace most macro_rules! code with proc-macro code
2022-04-14 11:16:01 +02:00
Jonathan de Jong
b77fee8948
identifiers: Provide Owned
types
2022-03-31 23:23:02 +02:00
Jonas Platte
571fa90b8d
identifiers: Rename Error to IdParseError
...
… because it's now exported from the ruma-common crate root.
2022-03-28 12:22:28 +02:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common
2022-03-09 17:46:51 +00:00