35 Commits

Author SHA1 Message Date
Kévin Commaille
9a765f9d2b identifiers: Improve docs of IdZst macro 2024-12-15 02:57:05 -05:00
Kévin Commaille
35da79a26e identifiers: Make DeviceKeyId a type alias of KeyId 2024-11-08 13:13:19 -05:00
Kévin Commaille
7f8f89eff7 identifiers: Differentiate signing keys from device keys
Use OwnedCrossSigningKeyId, OwnedDeviceSigningKeyId and
OwnedCrossSigningOrDeviceSigningKeyId instead of OwnedDeviceKeyId
to identify signing keys.
2024-11-08 13:13:15 -05:00
Kévin Commaille
ae3897cad8 identifiers: Allow to validate KeyId with any key name type
Use new trait bounds for KeyId to only allow specific types.
Change the KeyId validation to be generic over the key name type.
Remove the KeyName type and replace it with the more specific
ServerSigningKeyVersion.
2024-11-08 12:49:53 -05:00
Jonas Platte
0e8388abab macros: Add __internal_macro_expand feature for better RA macro expansion 2024-09-07 07:57:30 +00:00
Jonas Platte
de6b08a2b5 macros: Simplify internal derive macro input parsing 2024-09-07 07:57:30 +00:00
Jonas Platte
4a02b97aa3
Update website URL 2024-04-04 13:20:58 +02:00
Jonas Platte
c82f600d6a
Fix new lints 2023-11-08 18:16:44 +01:00
Jonas Platte
e658b8b128
Remove 'www.' from ruma.io URLs 2023-10-12 15:44:00 +02:00
Jonas Platte
31331f3165
Bring back ruma-events
Co-authored-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-08-28 10:23:54 +02:00
Jonas Platte
3dac70ead9
Remove most unreachable visibility modifiers 2023-07-19 14:32:14 +02:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive 2023-01-13 13:49:59 +01:00
Jonas Platte
625d5a0782
common: Add DebugAsRefStr derive macro 2023-01-13 13:47:55 +01:00
Jonas Platte
3211fccab0
Remove borrowing in requests 2022-11-28 14:02:35 +01:00
Jonas Platte
bdb5950fe4 macros: Remove ruma_api! macro 2022-11-12 10:17:24 +01:00
Jonas Platte
f613137b31
macros: Add response attribute macro 2022-11-01 09:39:11 +01:00
Jonas Platte
f22857e682
macros: Add request attribute macro 2022-10-24 15:28:50 +02:00
Jonas Platte
cc514a2b6c
macros: Allow opt-out of Debug deriving for incoming types 2022-10-17 17:16:38 +02:00
Jonas Platte
28f70467ca
macros: Document event type aliases 2022-08-04 13:35:24 +02:00
Jonas Platte
b11f09030a
macros: Improve docs note on ruma_api macro 2022-07-19 09:35:47 +02:00
Jonas Platte
195091c051
Update clippy issue reference 2022-06-21 18:03:46 +02:00
Jonas Platte
56cf3ce94c Allow buggy clippy lint on a per-crate basis
The previous method of allowing it through .cargo/config.toml doesn't
seem to work anymore.
2022-06-08 11:45:29 +02:00
Kévin Commaille
240c8bc4b8 macros: Derive as_str() for types that derive StringEnum 2022-05-30 17:17:06 +02:00
Kévin Commaille
24b4dd69ad macros: Add derive macro to implement as_str() from AsRef<str> 2022-05-30 17:17:06 +02:00
Jonas Platte
f658487c50
identifiers: Replace most macro_rules! code with proc-macro code 2022-04-14 11:16:01 +02:00
Jonas Platte
1415e32a1d macros: Remove some unnecessary short-circuiting in event proc-macros 2022-04-02 20:31:37 +02:00
Jonas Platte
a6a530dcc8 serde: Rename derive macro Outgoing to Incoming
All it does now is generate `Incoming{Self}` types.
2022-03-22 13:19:03 +01:00
Jonas Platte
493b9a08c7
macros: Move utility things into util module 2022-03-04 17:43:39 +01:00
Jonas Platte
1192bd1099
common: Create crate-level macro re-exports module 2022-03-04 17:00:01 +01:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common 2022-03-04 11:45:07 +00:00
Kévin Commaille
f32dcb9254
common: Merge ruma-api into ruma-common 2022-03-03 14:01:51 +01:00
Kévin Commaille
0d49715f29
macros: Merge ruma-api-macros into ruma-macros 2022-03-02 15:19:16 +01:00
Kévin Commaille
2a3c78de18
macros: Merge ruma-serde-macros into ruma-macros 2022-03-01 18:02:57 +01:00
Kévin Commaille
60eb51ee0e macros: Merge ruma-identifiers-macros into ruma-macros 2022-03-01 17:24:19 +01:00
Kévin Commaille
f2dca60fc7
macros: Rename ruma-events-macros to ruma-macros 2022-02-27 13:54:17 +01:00