Jonas Platte
622d69884c
Add borrowed id types
2020-06-04 00:09:38 +02:00
Jonas Platte
7b30c2bb3e
Update how TryFrom implementation are generated
...
… and remove TryFrom<Cow<'_, str>> implementations
2020-05-30 19:28:06 +02:00
Jonas Platte
5861457f3b
Remove diesel integration
2020-05-30 19:10:21 +02:00
Jonas Platte
96ca638474
Change most usages of String to Box<str>
2020-05-30 18:31:08 +02:00
Jonas Platte
6e6a51e11a
Implement conversion functinos for RoomIdOrAliasId
2020-04-20 15:38:19 +02:00
Jonas Platte
8f9bcd3a65
Make docsrs show items for all features
...
with indicators what needs to be enabled to use each conditional item
2020-04-17 14:01:57 +02:00
Jonas Platte
76a5a487d2
Make rand and serde dependencies optional
2020-04-17 12:54:50 +02:00
Jonas Platte
cb857db71e
Fix tests, some refactoring
2020-04-17 12:28:58 +02:00
Jonas Platte
e8f7bd9f6d
Restore server name validation
2020-04-17 12:06:40 +02:00
Jonas Platte
3945f88e10
New representation for identifiers
...
Identifiers now always own just a single allocation, and implement AsRef<str>.
PartialOrd and Ord implementations were also added at the same time. All
identifiers except RoomVersionId can now also be converted to String without
allocation.
2020-04-15 13:54:31 +02:00
Jonas Platte
2a0414cd60
Remove unnecessary explicit lifetimes
2019-12-15 20:39:03 +01:00
Jonas Platte
f21f4b4733
Replace .err().unwrap()
with .unwrap_err()
2019-12-14 16:00:11 +01:00
Jonas Platte
32733cf782
Further simplify deserialization
2019-12-10 22:42:46 +01:00
Jonas Platte
d120f77635
Simplify deserialization
2019-12-10 11:54:09 +01:00
Jonas Platte
4bafdb1ed7
Change invalid host tests from '-' to '/'
2019-07-23 21:34:42 +02:00
Jimmy Cuadra
9011423eea
Consistently use localpart instead of opaque_id and use homeserver_host instead of server_name.
2019-06-03 12:11:57 -07:00
Jimmy Cuadra
44de3bcb4d
Move each type into its own module.
2019-06-03 09:00:04 -07:00