Kévin Commaille
4ac0ae1392
macros: Implement AsRef<{id}> for {id}
2023-08-24 14:57:57 +02:00
Jonas Platte
53622f8ce0
macros: Upgrade syn to 2.0
2023-04-24 17:02:23 +02:00
Jonas Platte
01acabe8a6
identifiers: Implement AsRef<[u8]> for owned ID types
2023-03-07 11:18:14 +01:00
Jonas Platte
5aa0f29935
identifiers: Add AsRef<[u8]> impls for ID types
2023-03-07 11:06:34 +01:00
Jonas Platte
44d4a34d9c
macros: Add automatically_derived attribute to generated impl blocks
2023-01-13 13:11:04 +01:00
Kévin Commaille
67abaf4de1
identifiers: Add From<OwnedId> impls for String
2022-11-12 11:13:34 +01:00
Kévin Commaille
c75d97772c
identifiers: Deduplicate as_str() based impls between ID DSTs and owned IDs
2022-11-12 11:13:34 +01:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
Jonathan de Jong
8f8937b29e
identifiers: Add Into Box & Arc, and PartialEq Arc ( #1235 )
...
* Add Into Box & Arc, and PartialEq Arc
* change into to from
* Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte@element.io>
Co-authored-by: Jonas Platte <jplatte@element.io>
2022-07-12 10:44:02 +02:00
Jonas Platte
cb96caa064
identifiers: Add session_id macro
2022-06-08 13:31:38 +02:00
Jonas Platte
8912182c56
Increase usage of implicit named arguments in format strings
2022-06-03 10:06:28 +02:00
Jonathan de Jong
49c770c9f4
macros: Compress repeated segments of quote!
ed macro output
2022-06-01 11:47:07 +02:00
Jonas Platte
cbf71d848a
identifiers: Make parse return owned IDs and add parse_box
2022-04-20 10:39:36 +02:00
Jonas Platte
d855ec33d6
identifiers: Update ToOwned implementations to use new types
...
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Jonas Platte
6434fd8c92
identifiers: Add conversions from strings to owned ID types
2022-04-20 10:39:36 +02:00
Jonas Platte
f6c74fa23a
identifiers: Add manual Clone impl for owned ID types
...
… to get rid of unnecessary bounds.
2022-04-20 10:39:36 +02:00
Jonas Platte
ae095cc037
macros: Expand IdZst derive to generic types
...
… and use it for KeyId.
2022-04-14 13:57:02 +02:00
Jonas Platte
5d8f6748e6
identifiers: Add extra PartialEq implementations for owned ID types
2022-04-14 11:37:35 +02:00
Jonas Platte
d36157a57c
identifiers: Add Display implementation for owned types
2022-04-14 11:37:35 +02:00
Jonas Platte
ed92a4fbd7
identifiers: Implement From<&Id> for String
2022-04-14 11:37:35 +02:00
Jonas Platte
d5656f3399
identifiers: Rename from_owned to from_box
2022-04-14 11:37:35 +02:00
Jonas Platte
f658487c50
identifiers: Replace most macro_rules! code with proc-macro code
2022-04-14 11:16:01 +02:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common
2022-03-09 17:46:51 +00:00
Kévin Commaille
60eb51ee0e
macros: Merge ruma-identifiers-macros into ruma-macros
2022-03-01 17:24:19 +01:00