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
Jonas Platte
70d4f83ba3
Allow clippy::use_self
2019-10-31 22:33:20 +01:00
Jonas Platte
26068c462d
Remove unneeded clones
2019-10-31 22:33:12 +01:00
Jonas Platte
859ec7babe
Add 1.34.2, beta, nightly to travis
2019-10-31 22:32:57 +01:00
Jonas Platte
fc145097be
Update dependencies, use single-line toml syntax
2019-10-31 22:29:48 +01:00
Jimmy Cuadra
b5102db0d4
Only build PRs and the master branch on CI.
2019-08-03 14:02:24 -07:00
Jimmy Cuadra
2edf22157c
Bump version to 0.14.0.
2019-07-25 10:33:04 -07:00
Jimmy Cuadra
b627ae9311
Merge pull request #10 from ruma/update-deps
...
Update deps
2019-07-24 10:09:54 -07:00
Jonas Platte
59bd63d25e
Update rand to 0.7, regex to 1.2.0, url to 2.0.0
2019-07-23 21:34:42 +02:00
Jonas Platte
4bafdb1ed7
Change invalid host tests from '-' to '/'
2019-07-23 21:34:42 +02:00
Jimmy Cuadra
29a8fa38a9
Run cargo-audit on CI.
2019-07-23 09:59:38 -07:00
Jimmy Cuadra
77e5976ba6
Add crates.io categories. [ci skip]
2019-06-16 16:41:59 -07:00
Jimmy Cuadra
bc7683af96
Bump version to 0.13.1.
2019-06-16 01:30:42 -07:00
Jimmy Cuadra
9506c565e0
Add support for room version 5.
2019-06-16 01:29:54 -07:00
Jimmy Cuadra
6de32b1b9c
Bump version to 0.13.0.
2019-06-03 12:14:34 -07:00
Jimmy Cuadra
b37bb53495
Add DeviceId
.
2019-06-03 12:13:11 -07: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
fb8039ac6d
Support event ID formats for all room versions.
2019-06-03 11:52:15 -07:00