50 Commits

Author SHA1 Message Date
Jonas Platte
67154e2c31
Fix key algorithm serde (de)serialization 2020-08-08 18:11:14 +02:00
Jonas Platte
a1916837f9
Bump ruma-identifiers version 2020-08-08 16:21:11 +02:00
Jonas Platte
e939f7049d
Update ruma-identifiers changelog 2020-08-08 16:20:05 +02:00
Jonas Platte
bc50230c8a
identifiers: Restore key algorithm (de)serialization with default features 2020-08-08 16:02:59 +02:00
Jonas Platte
30e73186e7
Bump dependencies 2020-08-07 19:13:00 +02:00
Jonas Platte
f470afcb2a
Release ruma-identifiers 0.17.2 2020-08-07 18:35:01 +02:00
Faelar
5153279eba Fix missing RoomVersionId::Version6 try_from and tests 2020-08-07 18:06:44 +02:00
Jonas Platte
a589e92144
Move, update identifier macro tests 2020-08-05 00:59:24 +02:00
Jonas Platte
2023616319
Make all identifier macros usable from ruma-identifiers, even indirectly 2020-08-05 00:12:39 +02:00
Jonas Platte
0d0480e523
Replace ruma_identifiers_macros::device_id with ruma_identifiers::device_id
The proc_macro is replaced by a macro_rules macro because it doesn't
actually need and proc_macro features.
2020-08-04 23:41:35 +02:00
Jonas Platte
1881e45eee
Move ruma-identifiers validation logic into a new crate 2020-08-04 23:23:39 +02:00
Jonas Platte
6c4589d642
Fix last outdated repository in Cargo metadata 2020-08-04 23:22:34 +02:00
Jonas Platte
50dabed92b
Fix last use of GitHub as homepage 2020-08-04 23:21:57 +02:00
Jonas Platte
c363494905
Release ruma-identifiers 0.17.1 2020-07-26 15:04:20 +02:00
Jonas Platte
82b7cc1637
identifiers: Add as_bytes to all types with as_str 2020-07-26 14:55:39 +02:00
Jonas Platte
2e5fceb2b5
identifiers: Simplify generated as_str implementations 2020-07-26 14:44:37 +02:00
Jonas Platte
8faeef4fef
identifiers: Remove outdated allow attribute 2020-07-24 21:15:24 +02:00
Jonas Platte
617a40e3e9
identifiers: Change deny attribute to warn 2020-07-24 21:15:04 +02:00
Jonas Platte
85e2ae3d48
Remove ugly commas 2020-07-24 21:13:41 +02:00
Devin Ragotzy
4be63127f7
Add into_full_event and From<> impls to convert between sync and full events 2020-07-24 14:45:38 +02:00
Devin R
3329dc7345 Fix clippy warnings in identifiers and events-macros 2020-07-23 15:01:12 +02:00
Jonas Platte
080a537664
Release ruma-identifiers 0.17.0 2020-07-22 23:06:44 +02:00
Jonas Platte
05a99a00a0
Only use matches crate as a dev-dependency 2020-07-22 23:06:35 +02:00
Jonas Platte
4238c91e24
Update MSRV policy 2020-07-22 23:05:50 +02:00
Jonas Platte
09f711b1c3
Fix unused import 2020-07-22 22:46:27 +02:00
Jonas Platte
885aae39c5
Add From<&T> for Box<T> implementations for ServerName, DeviceId 2020-07-22 20:22:17 +02:00
Jonas Platte
4cbdc079b0
Improve string comparison impls 2020-07-22 19:17:24 +02:00
Jonas Platte
b24df92692
Make DeviceId a newtype rather than an alias 2020-07-22 18:59:33 +02:00
Jonas Platte
8d8e18afbc
Make RoomVersionId a non-exhaustive enum 2020-07-22 18:38:37 +02:00
Jonas Platte
c2ea1493cb
identifiers: Use .as_ref() less 2020-07-20 16:33:29 +02:00
Isaiah Inuwa
ade43c8516 Use ServerName everywhere 2020-07-18 07:50:53 -05:00
Jonas Platte
d6dfed568f
Add documentation to RoomVersionId's PartialOrd, Ord impls 2020-07-17 01:07:16 +02:00
Jonas Platte
7cfec8631a
Use the matches! macro in more places 2020-07-15 15:51:09 +02:00
Jonas Platte
501652a272
Fix unused import warnings 2020-07-15 15:49:04 +02:00
Jonas Platte
60238bbb85
Fix doc_concat macro on older versions of rustc 2020-07-15 02:02:14 +02:00
Jonas Platte
1a1884ce81
identifiers: Bump version (prerelease), update change log 2020-07-15 00:45:47 +02:00
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