Jonas Platte
c6d293e0e0
Drop #[non_exhaustive] attribute on RoomVersionId
...
With the _Custom variant being hidden, there is no point in additionally
making it non-exhaustive.
2020-09-22 01:15:38 +02:00
Jonas Platte
a01459e12b
identifiers: Hide RoomVersionId::Custom and CustomRoomVersion
2020-09-22 01:09:18 +02:00
Jonas Platte
91994015d2
identifiers: Remove RoomVersionId::{is_custom, is_official}
...
They were a forwards-compatibility hazard.
2020-09-22 01:03:30 +02:00
Jonas Platte
f0df31d42b
identifiers: Remove deprecated functions
2020-09-22 00:57:33 +02:00
Jonas Platte
22ec1710b5
Update ruma-identifiers validation logic
...
* Allow empty localparts
* Simplify some code
2020-09-21 22:34:56 +02:00
Jonas Platte
19af16850c
Fix ruma_identifiers::device_id!
2020-09-03 20:23:16 +02:00
Jonas Platte
03c636caf0
identifiers: Replace single-char push_str with just push
2020-09-03 20:21:30 +02:00
Jonas Platte
a842c5ccdc
identifiers: Add DeviceIdBox and ServerNameBox
2020-08-13 20:42:03 +02:00
Jonas Platte
3454a0e750
Implement FromStr for identifier types
2020-08-11 02:15:14 +02:00
q-b
a1426c9308
Clean up room version id tests
2020-08-10 20:44:02 +02:00
Amanda Graven
fdc15123b0
Reorganize encyption related code
...
Some types used for encryption related tasks need to be used across more
internal crates than expected, so a few have been moved and renamed for
clarity.
* Rename the key_algorithms module in ruma-identifiers-validation to crypto_algorithms
* Move ruma_events::Algorithm to ruma-identifiers-validation and rename it EventEncryptionAlgorithm
* Move DeviceKeys from ruma-client-api to ruma-common
2020-08-10 18:38:53 +02:00
Jonas Platte
585485831b
Make serde support in ruma-identifiers truly optional
2020-08-10 17:53:28 +02:00
Jonas Platte
a183a6c801
Add from_parts constructors for DeviceKeyId and ServerKeyId
2020-08-08 22:37:37 +02:00
Jonas Platte
1f056b4ba7
Fix docs for DeviceId
2020-08-08 22:24:40 +02:00
Jonas Platte
d6d84a9a70
Bump ruma-identifiers version
2020-08-08 18:28:23 +02:00
Jonas Platte
0f3478bf90
Rename serde dependency in ruma-identifiers
...
to be able to make the serde feature activate
ruma-identifiers-validation's serde feature
2020-08-08 18:16:31 +02:00
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