81 Commits

Author SHA1 Message Date
Jonas Platte
57cbe491f0
Move RoomVersionId::V7 out of unstable-pre-spec
Matrix v1.1 stabilized room version 7.
2021-12-17 18:51:38 +01:00
Jonas Platte
c48aead00e
identifiers: Replace qualified paths with imports 2021-12-01 19:51:38 +01:00
Jonas Platte
bba7d62442
identifiers: Add Rc / Arc parsing constructors 2021-11-26 21:03:11 +01:00
Jonas Platte
6324034f03
identifiers: Generate public parse functions for opaque ID types with invariants 2021-11-26 20:57:47 +01:00
Jonas Platte
87194d5bf9
identifiers: Consolidate unsafe code 2021-11-26 20:41:59 +01:00
Jonas Platte
6c48926649
identifiers: Add more conversions for RoomOrAliasId 2021-11-26 17:50:29 +01:00
Jonas Platte
2a2028f1a7
identifiers: Remove runtime checks for RoomOrAliasId conversions 2021-11-26 17:50:04 +01:00
Jonas Platte
4132c43cbb
identifiers: Remove runtime checks for server_name extraction 2021-11-26 17:43:02 +01:00
Jonas Platte
c3382f085c
identifiers: Make device_id! return a reference
Not necessarily 'static like the other macros but otherwise consistent.
2021-11-26 16:47:55 +01:00
Jonas Platte
8923881678
identifiers: Rename RoomIdOrAliasId to RoomOrAliasId 2021-11-26 01:07:41 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names 2021-11-26 01:07:26 +01:00
Jonas Platte
f03065793b
identifiers: Update changelog 2021-11-26 00:53:07 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
a81769c3fd
identifiers: Clean up internal macros 2021-11-26 00:40:44 +01:00
Jonas Platte
f448f6756e
identifiers: Derive PartialEq, Eq, PartialOrd, Ord, Hash for str newtypes
… instead of generating them in our own macro.
2021-11-26 00:40:44 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST 2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +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
ec605a0959
identifiers: Make MxcUri a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
a38f78e2d3
identifiers: Move opaque identifier declarations out of macro 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
206c25e7e7
identifiers: Add more PartialEq implementations 2021-11-25 21:07:14 +01:00
Jonas Platte
ce947741cb
identifiers: Reduce macro code duplication 2021-11-25 21:07:14 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
1a87403ba2
Rewrite some Display & Debug implementations
To delete in a more obvious way and to include debug formatting for
Debug impls (i.e. enclose the string in quotes).
2021-11-18 19:49:40 +01:00
Andy Balaam
b4226f882b
identifiers: Document how to create a DeviceId 2021-11-18 16:57:01 +01:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs 2021-10-08 12:49:13 +02:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Jonas Platte
cb78a7f341
identifiers: Declare room versions 7, 8, 9 2021-10-02 18:16:19 +02:00
Jonas Platte
7cbffe35da
identifiers: Add matrix.to URL formatting 2021-09-23 21:12:57 +02:00
Jonas Platte
8b44f279c8
Use server_name! macro in tests 2021-09-23 20:33:45 +02:00
Jonas Platte
fe5d31a9a6
identifiers: Improve readability of one more method 2021-09-23 20:33:28 +02:00
Jonas Platte
e147308277
identifiers: Improve readability of server_name methods 2021-09-23 18:54:03 +02:00
Jonas Platte
27a2e1f97f
identifiers: Merge more impl blocks 2021-09-23 18:50:09 +02:00
Jonas Platte
a2254562b9
identifiers: Rewrap doc comment 2021-09-22 13:40:34 +02:00
Jonas Platte
ef0e9c77c3
identifiers: Merge impl blocks 2021-09-22 13:40:01 +02:00
Jonas Platte
62b0034a83
identifiers: Remove extraneous newlines 2021-09-17 20:21:16 +02:00
Jonas Platte
4f3eaa83a0
identifiers: Fix Debug output of opaque identifier types 2021-09-17 20:09:21 +02:00
Jonas Platte
5d27a36cb1
identifiers: Split opaque_ids module back into device_id, key_name 2021-09-17 20:07:16 +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
e6b48fb564
Release ruma-identifiers 0.20.0 2021-08-11 17:16:28 +02:00
Jonas Platte
39822f9c16
Release ruma-identifiers-validation 0.5.0 2021-08-11 17:14:37 +02:00
Jonas Platte
12ee10b2c6
Release ruma-serde 0.5.0 2021-08-11 17:10:51 +02:00
Adam
63411165da
Move RoomName to ruma-identifiers and use it more 2021-08-10 15:22:47 +02:00
Jonas Platte
8f4f7d8060
identifiers: Fix unused import without serde feature 2021-08-10 15:22:46 +02:00
Jonas Platte
6ee3955483
Remove most deprecated items 2021-08-10 15:22:46 +02:00
Devin Ragotzy
fd310e5b6e
identifiers: Make RoomVersionId non_exhaustive 2021-08-10 15:22:26 +02:00