2155 Commits

Author SHA1 Message Date
Damir Jelić
e847ac1ee1 ruma-events: Change the structure of key.verification.start events. 2020-07-31 19:28:13 +02:00
Devin Ragotzy
c86f0b106b Re-add the Outgoing trait and derive macro
The Outgoing trait now has no attributes except incoming_no_deserialize,
it looks for any references and lifetimes in a struct declaration and
removes them. The point of the Outgoing trait is to allow references to
be serialized and owned values to come out of deserialization. It has no
ability to wrap values in Raw (then EventResult).
2020-07-31 12:59:19 -04:00
timokoesters
8650ae00da
Make limit in user_directory/search a smart field 2020-07-30 19:05:49 +02:00
Jonas Platte
50a33c8089
Add a README.md for the ruma crate 2020-07-29 17:47:30 +02:00
Jonas Platte
ab95ab46a6
Release ruma 0.0.1 2020-07-29 17:41:23 +02:00
Jonas Platte
4a251189ef
Release ruma-client-api 0.10.0-alpha.1 2020-07-29 17:38:54 +02:00
Jonas Platte
94bc0a3c44
Release ruma-appservice-api 0.2.0-alpha.1 2020-07-29 17:37:41 +02:00
Jonas Platte
97888f18ae
Release ruma-federation-api 0.0.3 2020-07-29 17:30:29 +02:00
Jonas Platte
dbdbc148ea
Release ruma-api 0.17.0-alpha.1 2020-07-29 17:25:32 +02:00
Jonas Platte
fa8c7b020b
Release ruma-events 0.22.0-alpha.1 2020-07-29 17:09:29 +02:00
Jonas Platte
5086a6654a
Update changelog for ruma-events-macros 2020-07-29 16:54:11 +02:00
Jonas Platte
48777f2eed
Release ruma-serde 0.2.3 2020-07-29 16:48:02 +02:00
Jonas Platte
97bd6c8a3f
Fix ruma-federation-api's changelog 2020-07-29 16:42:25 +02:00
Jonas Platte
c1677aa4c0
Fix cargo metadata 2020-07-29 16:36:48 +02:00
Devin Ragotzy
71e537d123 Move move-value test decl into logical mods for each 2020-07-29 08:50:08 -04:00
Devin Ragotzy
47b6adb524 Add tests for ruma_api! macro ensuring request/response generation ok 2020-07-28 18:55:02 -04:00
Devin Ragotzy
f00bad3895 Add try_build test testing new type body fields are declared last 2020-07-28 17:13:33 -04:00
Devin Ragotzy
b68b63ab8d Remove runtime panic caused by header <-> string conversion 2020-07-28 17:13:33 -04:00
Devin Ragotzy
4c01fee5c5 Move new type body init field (last field initialized) 2020-07-28 17:13:26 -04:00
Jonas Platte
39c36176a6
Make in_reply_to in RelatesTo optional 2020-07-27 21:30:51 +02:00
timokoesters
d5d2d1d893
Make is_empty helpers in sync_events public 2020-07-27 10:34:17 +02:00
Devin Ragotzy
4a34375449
Support multiple attribute arguments in ruma_event attribute (#161)
* Add parsing to allow ruma_event attribute to accept mutli args

* fixup! Add parsing to allow ruma_event attribute to accept mutli args

* Refactor MetaAttrs::parse and resolve review issues
2020-07-26 19:18:28 -04:00
Jonas Platte
1862d15365
Remove glob imports of C-like enums 2020-07-26 17:13:08 +02:00
Jonas Platte
3f3cf83ceb
Remove glob imports of modules 2020-07-26 17:13:00 +02:00
Jonas Platte
42e07308e1
Remove unused import 2020-07-26 17:02:42 +02:00
Jonas Platte
e047c647dd
fixup 2020-07-26 16:34:56 +02:00
Jonas Platte
05d0a3c04b
fixup 2020-07-26 16:30:11 +02:00
Jonas Platte
d7463ce37d
Remove things that can't be properly deprecated
See https://github.com/rust-lang/rust/issues/47236
2020-07-26 16:24:36 +02:00
Jonas Platte
5ca2fd78a8
ruma: Reexport identifier types from the crate root 2020-07-26 16:16:30 +02:00
Jonas Platte
2e0a765820
Fix mistakenly renamed struct 2020-07-26 16:04:12 +02:00
Jonas Platte
c363494905
Release ruma-identifiers 0.17.1 2020-07-26 15:04:20 +02:00
Jonas Platte
82b7cc1637
identifiers: Add as_bytes to all types with as_str 2020-07-26 14:55:39 +02:00
Jonas Platte
2e5fceb2b5
identifiers: Simplify generated as_str implementations 2020-07-26 14:44:37 +02:00
Jonas Platte
08fbace022
Mark PinnedEventsEventContent as non_exhaustive 2020-07-25 03:04:19 +02:00
Jonas Platte
be175bbae6
Mark JoinRulesEventContent as non_exhaustive 2020-07-25 02:58:37 +02:00
Bernardo Yusti
ea2992a412
federation-api: Add V2 send join 2020-07-25 02:12:27 +02:00
Jonas Platte
e01706d1bb
Accept and Into<String> for FormattedBody::html 2020-07-25 02:03:36 +02:00
Jonas Platte
f56b530dc3
Rename TextMessageEventContent::new_plain to plain 2020-07-25 01:59:18 +02:00
Jonas Platte
76c2f5c449
Add a convenience constructor to FormattedBody 2020-07-25 01:44:06 +02:00
Jonas Platte
c8b1aad189
Add macros to create identifiers from string slices 2020-07-24 22:22:25 +02:00
Jonas Platte
ce04ea10bf
Remove no longer needed extern crate proc_macro; declarations 2020-07-24 21:21:13 +02:00
Jonas Platte
8faeef4fef
identifiers: Remove outdated allow attribute 2020-07-24 21:15:24 +02:00
Jonas Platte
617a40e3e9
identifiers: Change deny attribute to warn 2020-07-24 21:15:04 +02:00
Jonas Platte
85e2ae3d48
Remove ugly commas 2020-07-24 21:13:41 +02:00
Jonas Platte
e3e8911d8b
ruma-appservice-api: Change deny attribute to warn 2020-07-24 21:11:35 +02:00
Jonas Platte
360628067b
Release ruma-common 0.2.0 2020-07-24 21:08:46 +02:00
Jonas Platte
a74833a19b
ruma-common: Add a changelog 2020-07-24 20:56:42 +02:00
Jonas Platte
324d339f06
ruma-common: Make most public types non-exhaustive 2020-07-24 20:55:59 +02:00
Jonas Platte
f9e76358a1
Fix typos 2020-07-24 20:53:01 +02:00
Jonas Platte
69c8914b03
ruma-common: Small refactorings in any_push_rule.rs
* Make field order consistent
* Use `Self` type alias for shorter code
2020-07-24 20:50:24 +02:00