14 Commits

Author SHA1 Message Date
Jonas Platte
a3e5d679a1
Revert making identifier types generic over the underlying string type
At the same time, this commit makes `ServerName` a newtype around str so
other identifier types can borrow out their server name part as a
`&ServerName`. This technique works for `ServerName` because it keeps no
additional metadata. For the other identifier types to support being
created in borrowed form from a string slice, custom DSTs first have to
be added to Rust.
2020-07-14 23:02:51 +02:00
Jonas Platte
75ea42961f
Use strum(serialize_all) instead of strum(to_string) 2020-06-23 12:52:21 +02:00
Jonas Platte
c5db6d56ad
Remove RoomVersionId::custom constructor
It could be used to create invalid room versions like an empty one or
one with more than 32 code points.
2020-06-23 12:40:01 +02:00
Jonas Platte
46c4f12404
identifiers: Move is_valid_server_name logic to server_name::try_from 2020-06-21 18:47:59 +02:00
Jonas Platte
c621f220b9
Bump dependency versions 2020-06-19 22:53:07 +02:00
Jonas Platte
046668466c
identifiers: Add more conversion functions 2020-06-18 12:11:52 +02:00
iinuwa
f8492db766
Add ServerName identifier 2020-06-18 11:21:00 +02:00
Jonas Platte
c20d52e2af
identifiers: Update DeviceKeyId::device_id to return a reference instead of cloning 2020-06-17 12:15:38 +02:00
stoically
d59a616e2c
federation-api: Add query server key discovery endpoints 2020-06-08 21:18:58 +02:00
Isaiah Inuwa
baa8710456 Re-export key identifiers at crate root 2020-06-07 13:52:27 -05:00
Jonas Platte
7a6264e0ff
Integrate ruma-identifiers 2020-06-07 17:26:33 +02:00
Jonas Platte
b1193a2883
identifiers: Add DeviceId, DeviceIdRef to the crate root 2020-06-07 17:22:44 +02:00
Jonas Platte
abf8eafe0e
Rerun cargo fmt 2020-06-07 17:22:20 +02:00
Jonas Platte
83de77f002 Add 'ruma-identifiers/' from commit 'c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d'
git-subtree-dir: ruma-identifiers
git-subtree-mainline: 19ce9645b6651e4de42ddf9e81ee50e19c8c0f26
git-subtree-split: c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d
2020-06-07 17:06:45 +02:00