Fredrik Lanker
68ba3049ea
Implement debug for identifier types
2020-12-27 22:38:02 +01:00
Jonas Platte
19ae6ff347
Remove lots of Copy implementations
...
so we don't have do breaking releases once they can't be Copy anymore.
2020-12-24 02:51:08 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements
2020-12-24 02:48:01 +01:00
Jonas Platte
520bab2900
identifiers: Clean up dependencies
...
* Get rid of strum, now all crypto algorithms use ruma-serde's string / enum
conversion code
* Make the dependency on ruma-serde optional and only activate it through the
serde feature
2020-12-24 02:14:26 +01:00
Jonas Platte
55c1dd5ca7
identifiers: Feature-gate serde test under serde feature
2020-12-02 14:19:02 +01:00
Jonas Platte
62135a9630
Fix issues with new key ID / signature types
2020-12-02 13:50:58 +01:00
Jonas Platte
1ceade7b61
identifiers: Add more crypto-related types
...
Co-authored-by: Isaiah Inuwa <isaiah.inuwa@gmail.com>
2020-12-02 13:11:28 +01:00
Jonas Platte
63678df887
identifiers: Stop rejecting unknown crypto algorithms
2020-12-02 13:11:28 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde
2020-11-28 03:45:39 +01:00
Jonas Platte
abc18fae39
Fix some links in documentation
2020-11-24 03:25:02 +01:00
Jonas Platte
a5c08c8fde
identifiers: Refactor Error enum
2020-11-08 19:32:09 +01:00
Jonas Platte
374603f51c
Rename SigningKeyId to ServerSigningKeyId
2020-11-08 19:24:48 +01:00
Isaiah Inuwa
b793a790db
Rename ServerKeyId to SigningKeyId
2020-11-08 13:21:55 +01:00
Jonas Platte
70a12864ef
Use new macros for existing future-compatible enums
2020-11-02 00:29:41 +01:00
Jonas Platte
f2a78babbd
Avoid creating owned strings in deserialization where not necessary
2020-10-26 01:52:51 +01:00
Jonas Platte
64b9c646d1
identifiers: Revert serde rename from Cargo.toml
2020-10-24 19:27:50 +02:00
Jonas Platte
e1975c2035
Be more consistent about whitespace
2020-10-24 00:44:01 +02:00
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
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
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
Faelar
5153279eba
Fix missing RoomVersionId::Version6 try_from and tests
2020-08-07 18:06:44 +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
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
05a99a00a0
Only use matches crate as a dev-dependency
2020-07-22 23:06:35 +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