68 Commits

Author SHA1 Message Date
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
Adam
2577225ba5
Add client secret and session ID types 2021-08-10 15:22:24 +02:00
Jonas Platte
40d3b552da
Release ruma-serde 0.4.2 2021-08-09 19:43:40 +02:00
Adam
e3427ba5d0
Update expected stderr on tests for Rust 1.54 2021-08-02 19:46:01 +00:00
Jonas Platte
384161d462
Revert "identifiers: Fix unused import without serde feature"
This reverts commit 6945bccccc8007e858d70ea53e4020bd2e59c792.
2021-07-04 18:37:01 +02:00
Jonas Platte
6945bccccc
identifiers: Fix unused import without serde feature 2021-07-04 16:36:24 +02:00
Jonas Platte
dfd8c60b89
Release ruma-identifiers 0.19.4 2021-06-24 13:38:05 +02:00
Jonas Platte
be4584b475
Release ruma-serde 0.4.1 2021-06-24 13:17:55 +02:00
Jonas Platte
1eb2f39593
identifiers: Remove allow attribute
Seems to no longer be necessary.
2021-06-21 12:24:05 +02:00
Jonas Platte
59161b842b
identifiers: Use fewer transmutes for ServerName 2021-06-21 12:23:52 +02:00
Jonas Platte
e308c70aa7
identifiers: Get rid of pointless copy in ToOwned implementations 2021-06-21 12:15:04 +02:00
Jonas Platte
ff03f4c805
Release ruma-identifiers 0.19.3 2021-06-18 13:42:32 +02:00
Jonas Platte
e5c93ab928
identifiers: Fix up Rc / Arc conversions 2021-06-18 13:40:32 +02:00
Sivaram Konanki
8f6a7aeedc
identifiers: Add Arc, Rc conversions to ServerName, DeviceId and KeyName 2021-06-14 13:47:18 +00:00