Jonas Platte
|
09b8de5b6e
|
Introduce FromRaw in addition to TryFromRaw
|
2019-10-15 20:26:30 +02:00 |
|
Jonas Platte
|
a6c34596d7
|
Rename EventResultCompatible to TryFromRaw
|
2019-10-15 20:05:46 +02:00 |
|
Jonas Platte
|
c20d79db7d
|
Inline try_from method into EventResultCompatible
|
2019-10-08 21:28:18 +02:00 |
|
Jonas Platte
|
05562a48a3
|
WIP
|
2019-09-29 13:30:51 +02:00 |
|
Jonas Platte
|
297bae4cbb
|
Remove FromStr, TryFrom<&'_ str> implementations
|
2019-09-29 10:56:15 +02:00 |
|
Jimmy Cuadra
|
c309eed2ae
|
impl Deserialize for m.room.server_acl
|
2019-08-06 15:23:40 -07:00 |
|
Jimmy Cuadra
|
db89aad22c
|
impl Deserialize for m.room.canonical_alias
|
2019-08-06 15:19:55 -07:00 |
|
Jimmy Cuadra
|
35e5ed9491
|
impl Deserialize for m.room.power_levels
|
2019-08-06 15:15:33 -07:00 |
|
Jimmy Cuadra
|
2a2dcf6801
|
impl Deserialize for m.room.name
|
2019-08-06 15:07:38 -07:00 |
|
Jimmy Cuadra
|
bd64b7f4be
|
impl Deserialize for m.room.message
|
2019-08-06 15:02:05 -07:00 |
|
Jimmy Cuadra
|
2acca3e3ef
|
impl Deserialize for m.room.encrypted
|
2019-08-06 14:54:25 -07:00 |
|
Jimmy Cuadra
|
dbadf52da8
|
Add tests for m.room.create.
|
2019-07-23 01:25:43 -07:00 |
|
Jimmy Cuadra
|
de23971ee4
|
Deny and address all warnings.
|
2019-07-19 15:47:14 -07:00 |
|
Jimmy Cuadra
|
b003699048
|
Remove unnecessary crate:: prefixes.
|
2019-07-19 14:59:45 -07:00 |
|
Jimmy Cuadra
|
d5b38354d0
|
Convert m.room.member to the new API. Remove dependency on
ruma-signatures.
|
2019-07-19 14:58:07 -07:00 |
|
Jimmy Cuadra
|
7d1701ccce
|
Implement FromStr for content types.
|
2019-07-19 14:56:38 -07:00 |
|
Jimmy Cuadra
|
0f55729478
|
Handle both deserialization and validation errors in FromStr impls.
|
2019-07-19 14:54:31 -07:00 |
|
Jimmy Cuadra
|
5c2e0e62a9
|
Implement Serialize for EncryptedEventContent.
|
2019-07-19 14:53:19 -07:00 |
|
Jimmy Cuadra
|
3e58ad7a8f
|
Convert m.room.message to the new API.
|
2019-07-19 14:52:49 -07:00 |
|
Jimmy Cuadra
|
8b59318629
|
Sort the unsigned field alphabetically in Serialize impls.
|
2019-07-19 14:52:49 -07:00 |
|
Jimmy Cuadra
|
21351aaff0
|
Convert m.room.encrypted to the new API.
|
2019-07-19 14:52:30 -07:00 |
|
Jimmy Cuadra
|
0f49c5e7f6
|
Convert m.room.create to the new API.
|
2019-07-19 14:52:05 -07:00 |
|
Jimmy Cuadra
|
5b505cc501
|
Convert m.room.canonical_alias to the new API. Reorder additional fields
alphabetically. Remove unused serde attributes.
|
2019-07-19 14:49:05 -07:00 |
|
Jimmy Cuadra
|
71646445d5
|
Sort fields of ServerAclEvent alphabetically.
|
2019-07-19 14:48:38 -07:00 |
|
Jimmy Cuadra
|
406a007678
|
Add more tests.
|
2019-07-19 14:47:59 -07:00 |
|
Jimmy Cuadra
|
cc107106f0
|
Continue implementation of m.room.power_levels and add tests.
|
2019-07-19 14:47:01 -07:00 |
|
Jimmy Cuadra
|
090a91f78b
|
Add new macros for implementing event traits. Fix Serialize impl for
NameEventContent. Convert m.room.power_levels to the new API.
|
2019-07-19 14:44:16 -07:00 |
|
Jimmy Cuadra
|
03099b9a8b
|
Add InvalidInput type and convert m.room.name to the new API.
|
2019-07-19 14:43:24 -07:00 |
|
Jimmy Cuadra
|
afe44b4dda
|
Convert m.room.server_acl to the new API.
|
2019-07-19 14:42:57 -07:00 |
|
Jimmy Cuadra
|
eaddc6dce2
|
Use str::parse for conversion from JSON.
|
2019-07-19 14:42:57 -07:00 |
|
Jimmy Cuadra
|
4212c9f619
|
Convert m.room.{aliases ,avatar ,encryption ,guest_access,
history_visibility, join_rules, member, pinned_events,
third_party_invite, tombstone, topic} to the new API.
|
2019-07-19 14:40:48 -07:00 |
|
Jimmy Cuadra
|
22c15277a7
|
Convert m.call.*, m.room.message.feedback, and m.room.redaction to the new
API.
|
2019-07-19 14:39:31 -07:00 |
|
Jimmy Cuadra
|
c3f48c5be3
|
Use js_int types for numbers.
Closes #27.
|
2019-06-16 16:16:37 -07:00 |
|
Jimmy Cuadra
|
9b17d5729a
|
Use a consistent style for the name of the library.
|
2019-06-15 00:07:44 -07:00 |
|
Jimmy Cuadra
|
f4b7204f31
|
Derive PartialEq where possible.
|
2019-06-15 00:03:32 -07:00 |
|
Jimmy Cuadra
|
a0a9799c81
|
Add events from the end-to-end encryption module.
|
2019-06-14 22:14:11 -07:00 |
|
Jimmy Cuadra
|
12212789b3
|
Future-proof enums with a __Nonexhaustive variant.
This can be replaced with the #[non_exhaustive] compiler attribute once
it's stabilized.
|
2019-06-14 18:18:47 -07:00 |
|
Jimmy Cuadra
|
add7ef0d8b
|
Add blank lines to make type definitions easier to read.
|
2019-06-14 14:02:03 -07:00 |
|
Jimmy Cuadra
|
dd2e0afd47
|
All fields on FileInfo, ImageInfo, and ThumbnailInfo are optional.
|
2019-06-13 17:32:09 -07:00 |
|
Jimmy Cuadra
|
110234827e
|
Add a note about m.room.member's invite_room_state data.
|
2019-06-13 17:06:42 -07:00 |
|
Jimmy Cuadra
|
7530342637
|
Adjust some default values.
|
2019-06-13 16:59:22 -07:00 |
|
Jimmy Cuadra
|
4661547e21
|
Add the m.server_notice* message type.
|
2019-06-13 01:50:13 -07:00 |
|
Jimmy Cuadra
|
668e8b2239
|
Add m.room.tombstone.
|
2019-06-13 01:34:05 -07:00 |
|
Jimmy Cuadra
|
9836222b73
|
Add m.room.server_acl.
|
2019-06-13 01:24:00 -07:00 |
|
Jimmy Cuadra
|
f8e5a80c93
|
Rename mod.rs files.
|
2019-06-12 16:22:29 -07:00 |
|
Jimmy Cuadra
|
ba2538dda9
|
Update existing events for spec r0.5.0 and add m.fully_read and
m.room.message.feedback.
|
2019-06-12 16:20:10 -07:00 |
|
Florian Jacob
|
01156ad661
|
Properly handle CanonicalAliasEvent and NameEvent content being absent, null or empty,
which is allowed by the spec to show those events were deleted:
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
|
2019-02-11 13:50:07 +01:00 |
|
Jonas Platte
|
7f18e1c32e
|
Replace serde_derive by re-exports in serde
|
2019-02-06 20:12:30 +01:00 |
|
Jonas Platte
|
1b2cd339cb
|
Update to Rust 2018
|
2019-01-16 00:13:10 +01:00 |
|
Jonas Platte
|
6f093f70ed
|
Use nested imports, misc. import changes
* Bring imports into a consistent order (std, crates, internal)
* Replace super::super-imports by crate-relative ones
|
2019-01-16 00:13:10 +01:00 |
|