Jonas Platte
f6f0b58a1c
Update change log
2020-06-01 00:44:46 +02:00
Jonas Platte
07040a18c8
Fixup for 7b30c2b
...
(forgot RoomVersionId)
2020-05-30 20:04:19 +02:00
Jonas Platte
cf1a1de151
Support room version 6
2020-05-30 20:00:34 +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
89f0594a68
Make string comparison PartialEq impls work
2020-05-01 23:02:06 +02:00
Jonas Platte
a67ba7a729
Switch CI from travis to builds.sr.ht
2020-04-24 21:54:27 +02:00
Jonas Platte
e9d69be874
Bump versions to 0.16.0
2020-04-20 15:43:07 +02:00
Jonas Platte
e21633ef53
Add RoomIdOrAliasId::into_either
2020-04-20 15:41:58 +02:00
Jonas Platte
6e6a51e11a
Implement conversion functinos for RoomIdOrAliasId
2020-04-20 15:38:19 +02:00
Jonas Platte
05c9eac6ab
Add tests for empty localparts
2020-04-17 18:18:14 +02:00
Jonas Platte
6ad614ceb8
Rename a test
2020-04-17 18:15:23 +02:00
Jonas Platte
acb02f96bc
Update parse_with_server_name's id bounds
...
… from `Into<Cow<'a, str>>` to `AsRef<str> + Into<String>`
2020-04-17 14:53:45 +02:00
Jonas Platte
50cc35f1fe
Bump version again...
2020-04-17 14:30:12 +02:00
Jonas Platte
0ca9c4c513
Bump version
2020-04-17 14:02:35 +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
ccaffcf107
Add UserId::parse_with_server_name
2020-04-17 13:31:53 +02:00
Jonas Platte
93f75353a7
Move user ID localpart classification into a public function
2020-04-17 13:15:05 +02:00
Jonas Platte
76a5a487d2
Make rand and serde dependencies optional
2020-04-17 12:54:50 +02:00
Jonas Platte
025e298274
Update dependencies
2020-04-17 12:40:50 +02:00
Jonas Platte
cb857db71e
Fix tests, some refactoring
2020-04-17 12:28:58 +02:00
Jonas Platte
ad48d3972e
Error on invalid localpart
2020-04-17 12:19:41 +02:00
Jonas Platte
e8f7bd9f6d
Restore server name validation
2020-04-17 12:06:40 +02:00
Jonas Platte
b48235f496
Update change log
2020-04-17 11:14:54 +02:00
Jonas Platte
c3ed37b337
Fix String
path in macros.rs
2020-04-16 16:15:27 +02:00
Jonas Platte
a9aa8a7d0d
Update change log
2020-04-16 14:00:04 +02:00
Jonas Platte
fe70d158e7
Implement string comparison for identifier types
2020-04-16 13:54:06 +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
791b510760
Update README.md
2020-04-10 14:06:31 +02:00
Jonas Platte
cc6a4dbc91
CI: Disable irc notifications
2020-04-03 19:11:18 +02:00
Jonas Platte
04e03db41d
Remove redundant spaces
2020-04-03 19:11:03 +02:00
Marcel
81fb260a46
Add support for historical uppercase user IDs
2020-02-17 09:31:46 +01:00
Jonas Platte
03555a3aed
Replace nth(0) with next()
2020-02-17 01:08:15 +01:00
Jonas Platte
7d3cfd769e
ID deserialization: Borrow from the deserializer if possible
...
… by using Cow<'_, str> instead of String
2019-12-15 20:40:51 +01:00
Jonas Platte
2a0414cd60
Remove unnecessary explicit lifetimes
2019-12-15 20:39:03 +01:00
Jonas Platte
88fcdb6f9b
Update changelog, release 0.14.1
2019-12-14 18:19:30 +01:00
Jonas Platte
f21f4b4733
Replace .err().unwrap()
with .unwrap_err()
2019-12-14 16:00:11 +01:00
Jonas Platte
874b32a53b
Update changelog
2019-12-14 15:59:05 +01:00
Jonas Platte
d19d9c054f
Support historical user IDs
2019-12-14 15:58:23 +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
11841f91b8
Remove regex, once_cell deps
2019-12-10 11:41:30 +01:00
Jonas Platte
7fa1407d76
Update set of allowed characters in UserId localpart
2019-12-09 17:43:15 +01:00
Jonas Platte
f84b7f2b7f
Bump MSRV to 1.36.0
2019-11-22 11:09:17 +01:00
Jonas Platte
3141f3e9a1
Fix Rust 2018 idiom warning
...
with `cargo fix --all-features`
2019-11-12 01:53:18 +01:00
Jonas Platte
3b10faad0e
Add #![warn(rust_2018_idioms)]
2019-11-12 01:24:57 +01:00
Jonas Platte
3e3e7cb7b3
Fix missing
2019-11-01 11:11:05 +01:00
Jonas Platte
f994672db5
Replace lazy_static with once_cell
2019-10-31 22:55:24 +01:00
Jonas Platte
31b683ab69
Remove #![deny(warnings)], #![warn(clippy::…)]
2019-10-31 22:33:55 +01:00