Jonas Platte
398cf406d7
identifiers: Add compat features to allow more user IDs
2021-04-13 21:12:24 +02:00
Kévin Commaille
e2728a7081
identifiers: Make MxcUri less strict
2021-04-11 10:15:37 +02:00
Jonas Platte
ddaaca1ec4
identifiers: Fix line wrapping
2021-04-08 14:05:00 +02:00
Kévin Commaille
e049e45423
docs: Add missing dots
2021-04-07 12:15:37 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions
2021-04-07 12:14:49 +02:00
Jonas Platte
bd61e97b96
identifiers: Fix hidden _macros module being visible in rustdoc
2021-04-06 19:30:07 +02:00
Jonas Platte
0dcbec5fa7
identifiers: Add more conversion methods and a trait impl
2021-04-05 21:41:54 +02:00
Jonas Platte
b4da6b784a
Replace non-renaming uses of serde_json::{from_str, to_string}
2021-04-05 13:33:59 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc
2021-04-05 11:42:07 +02:00
Jonas Platte
12686fe6e3
Clean up std::fmt imports
...
We were pretty inconsistent about them before.
2021-03-25 16:32:08 +01:00
Julian Sparber
00fea9d468
add type for mxc://
2021-03-25 13:04:23 +01:00
Jonas Platte
00121bdb4b
Fix inconsistent #[test] module naming
2021-02-02 11:44:30 +01:00
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