Jonas Platte
baf84d5581
Create empty ruma-identity-service-api crate
2020-08-06 01:56:03 +02:00
Jonas Platte
a589e92144
Move, update identifier macro tests
2020-08-05 00:59:24 +02:00
Jonas Platte
9bc6ce9201
Use identifier macros for tests
2020-08-05 00:12:44 +02:00
Jonas Platte
066da75c7d
Remove pointless TryFrom usage
2020-08-05 00:12:44 +02:00
Jonas Platte
2023616319
Make all identifier macros usable from ruma-identifiers, even indirectly
2020-08-05 00:12:39 +02:00
Jonas Platte
0d0480e523
Replace ruma_identifiers_macros::device_id with ruma_identifiers::device_id
...
The proc_macro is replaced by a macro_rules macro because it doesn't
actually need and proc_macro features.
2020-08-04 23:41:35 +02:00
Jonas Platte
68d2e088db
Make ruma-identifiers-macros depend on ruma-identifiers-validation rather than ruma-identifiers
2020-08-04 23:28:36 +02:00
Jonas Platte
1881e45eee
Move ruma-identifiers validation logic into a new crate
2020-08-04 23:23:39 +02:00
Jonas Platte
6c4589d642
Fix last outdated repository in Cargo metadata
2020-08-04 23:22:34 +02:00
Jonas Platte
50dabed92b
Fix last use of GitHub as homepage
2020-08-04 23:21:57 +02:00
Jonas Platte
0bfaa3dcef
Remove old comment
2020-08-04 22:29:03 +02:00
Devin Ragotzy
606f988ed8
Add doc comments for cmp traits and use unambiguius paths
2020-08-03 17:39:50 +02:00
Devin Ragotzy
3f370c5f1b
Add PartialEq/Eq and PartialOrd/Ord to the event structs with event_ids
2020-08-03 17:39:50 +02:00
Devin Ragotzy
b6c289c3d2
Clean up before starting to implement eq/ord trait
2020-08-03 17:39:50 +02:00
Devin Ragotzy
2fbdd674ab
Refactor impl_outgoing_with_incoming_self and add struct variant
2020-08-01 18:19:17 +02:00
Devin Ragotzy
f0fb9a69c0
Handle enums and nested types properly
2020-08-01 18:19:17 +02:00
Jonas Platte
03288c2140
Re-export the Outgoing trait from ruma::api
2020-08-01 01:44:14 +02:00
Jonas Platte
f5c529bc36
Try not to rely on prelude in ruma-api-macros generated code
...
… and fix some lines that were too wide
2020-08-01 01:21:09 +02:00
Jonas Platte
12c7a4a17c
Rewrap comment
2020-08-01 01:02:45 +02:00
Jonas Platte
10184cb9ca
Use a dedicated method for conversion from Ruma request type to http::Request
2020-08-01 01:01:15 +02:00
Damir Jelić
67a2012b85
ruma-events: Add an init struct for the m.sas.v1 content of the accept event.
2020-07-31 19:28:13 +02:00
Damir Jelić
964893334e
ruma-events: Add the hmac-sha256 MAC method.
2020-07-31 19:28:13 +02:00
Damir Jelić
6513ebd9b0
ruma-events: Rename MSasV1ContentOptions to MSasV1ContentInit.
2020-07-31 19:28:13 +02:00
Damir Jelić
21837d6b8d
ruma-events: Implement TryFrom to for MSasV1Content.
2020-07-31 19:28:13 +02:00
Damir Jelić
afeb328705
ruma-events: Change the structure of the accept event as well.
...
This allows the accept event to contain method specific content similar
to how the start event accepts it.
2020-07-31 19:28:13 +02:00
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