1904 Commits

Author SHA1 Message Date
Devin Ragotzy
b2d45e4748 Rename generic_lifetime -> is_lifetime_generic 2020-08-07 00:48:01 +02:00
Devin Ragotzy
1060d63057 Use full type with Outgoing trait for request query deserialization 2020-08-07 00:48:01 +02:00
Devin Ragotzy
e783288ef0 Limit when RequestQuery impls Deserialize and impl Outgoing 2020-08-07 00:48:01 +02:00
Devin Ragotzy
770a68d49b Fix Outgoing derive missing lifetimes when branching for emitting code 2020-08-07 00:48:01 +02:00
Devin Ragotzy
7e3ebff089 Add tests testing failing Outgoing derive for query fields 2020-08-07 00:48:01 +02:00
Devin Ragotzy
5103baeb4b Add semicolons and the other possible syn::Type types 2020-08-07 00:48:01 +02:00
Devin Ragotzy
1336cd8c41 Handle tuple types in collect_lifetime_idents 2020-08-07 00:48:01 +02:00
Devin Ragotzy
4e2f1a19e1 Fix typo and rename copy_lifetime_ident -> collect_lifetime_ident 2020-08-07 00:48:01 +02:00
Devin Ragotzy
f67744bb4f Throw error if query_map has any ref types 2020-08-07 00:48:01 +02:00
Devin Ragotzy
588a6035f0 Use Outgoing trait in ruma_api_lifetime tests 2020-08-07 00:48:01 +02:00
Devin Ragotzy
80237d6dd1 Fix clippy warnings 2020-08-07 00:48:01 +02:00
Devin Ragotzy
2beaf450a3 Add a query_map field to ruma_api! lifetime test 2020-08-07 00:48:01 +02:00
Devin Ragotzy
c980644d77 Clean up and fix missing comma for request query map 2020-08-07 00:48:01 +02:00
Devin Ragotzy
e36149aea1 Add tuple lifetime stripping to derive_outgoing 2020-08-07 00:48:01 +02:00
Devin Ragotzy
f0a5a43455 Move lifetime tests into their own file 2020-08-07 00:48:01 +02:00
Devin Ragotzy
0793724264 Refactor to use Req/ResLifetimes struct for adding lifetimes to req/res 2020-08-07 00:48:01 +02:00
Devin Ragotzy
e7f7c3bb9d Add lifetime params to Request/Response when needed 2020-08-07 00:48:01 +02:00
Devin Ragotzy
c2342e3ef7 Add failing test to ruma-api for lifetimes in ruma_api! macro 2020-08-07 00:48:01 +02:00
Devin Ragotzy
1155edcaed Add lifetime discovery and collection functions to ruma-api-macro 2020-08-07 00:48:01 +02:00
Jonas Platte
63758e89ec
Create empty ruma-push-gateway-api crate 2020-08-06 01:58:09 +02:00
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