40 Commits

Author SHA1 Message Date
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
fb8039ac6d Support event ID formats for all room versions. 2019-06-03 11:52:15 -07:00
Jimmy Cuadra
6d9b3c7bf2 Add RoomVersionId. 2019-06-03 10:21:57 -07:00
Jimmy Cuadra
44de3bcb4d Move each type into its own module. 2019-06-03 09:00:04 -07:00
Jimmy Cuadra
1f7ac74adb Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:57:28 -07:00
Jimmy Cuadra
7059bc4ff3 Add missing closing doc test marker. 2019-06-01 03:06:38 -07:00
Jimmy Cuadra
1c5c1f92d6 Reintroduce macro_use for Diesel to import custom derives. 2019-04-12 03:54:28 -07:00
Jimmy Cuadra
eda32dfdb5 Remove try_from feature from doctests. 2019-04-11 17:35:54 -07:00
Jimmy Cuadra
56958147ca Update dependencies, remove Diesel workaround, remove try_from feature. 2019-04-08 17:05:56 -07:00
Jonas Platte
8f130f95e6 Update to Rust 2018, work around a warning for diesel 2019-02-11 13:28:09 +01:00
Andreas Studer
c8aeee8271 Allow types to be used as compound keys 2019-02-04 23:13:52 +01:00
Jonas Platte
05f7e6b0a8 Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 19:53:25 +01:00
Jimmy Cuadra
78b0d1e054 Update Diesel integration to Diesel 1.0. 2018-06-10 01:05:32 -07:00
Jimmy Cuadra
7ba979a411 Derive more traits for Error. 2018-05-24 04:04:19 -07:00
Jimmy Cuadra
c31794f581 Use new rand 0.5 API. 2018-05-24 04:04:08 -07:00
Digital
3a4041982c Add unicode compatibility for identifiers
Fix issue with unicode character boundaries in parse_id.
Add Unit test for unicode room aliases.
2018-04-04 14:31:16 +02:00
Jimmy Cuadra
418c91d5ff Update serde and serde_json to 1.0. 2017-04-20 21:57:36 -07:00
Jimmy Cuadra
9181220917 Update TryFrom::Err to TryFrom::Error. 2017-03-24 01:31:33 -07:00
Jimmy Cuadra
e4c3cae7fd Add missing Diesel implementations. 2017-02-08 22:25:01 -08:00
Jimmy Cuadra
c6b959c7a1 Update to Diesel 0.10. 2017-02-03 03:11:35 -08:00
Jimmy Cuadra
67ee31b3aa Update to serde 0.9, regex 0.2, and url 1.4. 2017-01-26 00:08:17 -08:00
Jimmy Cuadra
059b747cbb Add a little more detail to the RoomIdOrAliasId docstring. 2016-12-20 22:58:05 -08:00
Andreas Brönnimann
5c729ca988 Add RoomIdOrAliasId 2016-12-17 12:30:25 +01:00
Jimmy Cuadra
ff55576d0f Update deps, remove question_mark feature, bump version to 0.4.2. 2016-10-16 15:52:06 -07:00
Jimmy Cuadra
9da1442ffc Automatically downcase UserId localparts. 2016-08-28 04:27:32 -07:00
Jimmy Cuadra
971948d386 Add Diesel integration. 2016-08-27 03:50:12 -07:00
Jimmy Cuadra
3c66f7268a Derive Clone for ID types and Copy for Error. 2016-08-13 00:50:36 -07:00
Jimmy Cuadra
28fdff9a65 Derive Eq and Hash for ID types. 2016-07-28 02:57:36 -07:00
Jimmy Cuadra
43d668e9ef Implement std::error::Error for Error. 2016-07-26 06:06:51 -07:00
Jimmy Cuadra
20cfd5200e Add random generation constructors. 2016-07-26 06:00:30 -07:00
Jimmy Cuadra
91711c6544 new --> try_from 2016-07-26 05:36:51 -07:00
Jimmy Cuadra
e8abd71cd0 Implement deserialization for ID types. 2016-07-26 01:45:15 -07:00
Jimmy Cuadra
d560ccebeb Implement serialization for ID types. 2016-07-26 00:19:12 -07:00
Jimmy Cuadra
d05822199a Use question mark feature instead of try macro. 2016-07-23 01:19:12 -07:00
Jimmy Cuadra
920767c020 Reexport url::Host. 2016-07-22 23:01:28 -07:00
Jimmy Cuadra
4f3db4fff3 Add RoomAliasId. 2016-07-22 22:59:53 -07:00
Jimmy Cuadra
c357991bbd Fix some docstrings. 2016-07-22 22:50:00 -07:00
Jimmy Cuadra
9055983642 Add event and room IDs. 2016-07-22 22:41:40 -07:00
Jimmy Cuadra
2a03702976 Only use regex for checking valid characters in user localparts. 2016-07-22 21:55:28 -07:00
Jimmy Cuadra
9ad1e0fc69 ruma-identifiers 2016-07-17 22:10:17 -07:00