Jonathan de Jong
7ca97a0f35
identifiers: Add FromStr to MatrixUri and MatrixToUri
2022-02-20 12:39:23 +01:00
Jonas Platte
2ed51f1d54
Release ruma-identifiers 0.22.0
2022-02-19 14:28:28 +01:00
Jonas Platte
91eac857c7
Release ruma-identifiers-validation 0.7.0
2022-02-19 14:27:44 +01:00
Kévin Commaille
1b411fc622
identifiers: Add random ClientSecret generator
...
Requires the rand feature.
2022-02-19 14:13:31 +01:00
Kévin Commaille
be376f5bd6
identifiers: Add MatrixUri for matrix scheme URIs
2022-02-19 14:09:43 +01:00
Kévin Commaille
02008ac6e9
identifiers: Add links to the spec for identifiers
2022-02-19 12:38:24 +01:00
Kévin Commaille
e9be719a33
identifiers: Implement TryFrom<&str> for MatrixToUri
2022-02-19 11:42:58 +01:00
Kévin Commaille
384d48baaa
identifiers: Rename matrix_to_url methods to matrix_to_uri
...
To be consistent in the naming
2022-02-19 11:39:25 +01:00
Jonas Platte
fec52a0218
Release ruma-identifiers 0.21.0
2022-02-19 01:07:23 +01:00
Jonas Platte
62c55d90ed
Release ruma-identifiers-validation 0.6.0
2022-02-19 01:06:17 +01:00
Jonas Platte
38881dd6af
Release ruma-serde 0.6.0
2022-02-19 01:01:17 +01:00
Jonas Platte
e2173ce60c
identifiers: Update link in changelog
2022-02-18 20:01:47 +01:00
Jonathan de Jong
936bb64e84
Update links to spec.matrix.org/v1.2
2022-02-18 19:45:04 +01:00
Kévin Commaille
f9b4958654
identifiers: Add MatrixToUri parsing
2022-02-18 19:11:26 +01:00
Kévin Commaille
1c23cd25b5
identifiers: Create MatrixId type for MatrixToUri
2022-02-18 19:11:26 +01:00
Kévin Commaille
52268b5dc2
identifiers: Rename MatrixToRef to matrix_uri::MatrixToUri
2022-02-18 19:11:26 +01:00
Jonas Platte
788ecba299
Add missing newlines
2022-02-18 11:37:10 +01:00
Jonas Platte
41d6bcc2a6
Format code in doc comments
2022-02-18 11:33:16 +01:00
Jonas Platte
7a70d96235
Remove PrivOwnedStr() from Debug formatting
2022-02-15 17:46:27 +01:00
Jonas Platte
ebb09589f9
Remove authors field from Cargo manifests
...
It's no longer necessary and authorship is much better tracked with git.
2022-02-12 13:46:44 +01:00
Jonas Platte
59907ca579
identifiers: Add more From impls for non-validated opaque identifiers
2022-02-12 03:37:42 +01:00
Jonas Platte
e9994b89c8
identifiers: Move room versions 8, 9 out of unstable-spec
...
… since v1.2 is out!
2022-02-02 23:06:39 +01:00
Jonas Platte
1a4e464422
Move restricted join rules and room versions 8, 9 from unstable-pre-spec to unstable-spec
2022-02-01 20:47:37 +01:00
Jonas Platte
9aa748459a
Revert "identifiers: Add SecretRequestId"
...
This reverts commit aafbe14923a9272029652e7f56ef2aa809b03e34.
2022-01-23 17:20:59 +01:00
Jonas Platte
aafbe14923
identifiers: Add SecretRequestId
2022-01-23 17:01:24 +01:00
Jonas Platte
7eb83f6b7a
identifiers: Update changelog
2022-01-17 12:07:07 +01:00
Jonas Platte
3c194ee43b
identifiers: Add port method to ServerName
2022-01-17 12:05:40 +01:00
Jonas Platte
4c2654c605
identifiers: Add host and is_ip_literal methods to ServerName
...
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2022-01-17 12:05:14 +01:00
Jonas Platte
ef6728abde
Add a TransactionId type
2022-01-16 23:17:23 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
...
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
gnieto
824cefb3e9
Properly validate localpart when parsing UserId
...
When a `UserId` was created via `parse_with_server_name` (and its
variants), the localpart was not validated. This lead to invalid user
ids being constructed and lead to a crash when `is_historical` was
called.
This changes will prevent that this invalid user is can be constructed.
2022-01-03 14:58:38 +00:00
Jonas Platte
9621b83d49
Use doc_auto_cfg for automatic cfg documentation
2022-01-02 19:22:42 +01:00
Jonas Platte
57cbe491f0
Move RoomVersionId::V7 out of unstable-pre-spec
...
Matrix v1.1 stabilized room version 7.
2021-12-17 18:51:38 +01:00
Jonas Platte
c48aead00e
identifiers: Replace qualified paths with imports
2021-12-01 19:51:38 +01:00
Jonas Platte
bba7d62442
identifiers: Add Rc
/ Arc
parsing constructors
2021-11-26 21:03:11 +01:00
Jonas Platte
6324034f03
identifiers: Generate public parse
functions for opaque ID types with invariants
2021-11-26 20:57:47 +01:00
Jonas Platte
87194d5bf9
identifiers: Consolidate unsafe code
2021-11-26 20:41:59 +01:00
Jonas Platte
6c48926649
identifiers: Add more conversions for RoomOrAliasId
2021-11-26 17:50:29 +01:00
Jonas Platte
2a2028f1a7
identifiers: Remove runtime checks for RoomOrAliasId conversions
2021-11-26 17:50:04 +01:00
Jonas Platte
4132c43cbb
identifiers: Remove runtime checks for server_name extraction
2021-11-26 17:43:02 +01:00
Jonas Platte
c3382f085c
identifiers: Make device_id! return a reference
...
Not necessarily 'static like the other macros but otherwise consistent.
2021-11-26 16:47:55 +01:00
Jonas Platte
8923881678
identifiers: Rename RoomIdOrAliasId to RoomOrAliasId
2021-11-26 01:07:41 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names
2021-11-26 01:07:26 +01:00
Jonas Platte
f03065793b
identifiers: Update changelog
2021-11-26 00:53:07 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
...
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
a81769c3fd
identifiers: Clean up internal macros
2021-11-26 00:40:44 +01:00
Jonas Platte
f448f6756e
identifiers: Derive PartialEq, Eq, PartialOrd, Ord, Hash for str newtypes
...
… instead of generating them in our own macro.
2021-11-26 00:40:44 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST
2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
313124a099
identifiers: Make RoomIdOrAliasId a DST
2021-11-26 00:04:28 +01:00