Jonas Platte
1878e8aae0
Replace some turbofishes with type annotations
2021-04-05 13:13:28 +02:00
Jonas Platte
536a8aea1b
api-macros: Replace ToTokens implementations with inherent methods
2021-04-05 12:57:50 +02:00
Jonas Platte
2e0f787ccd
api-macros: Refactor parsing logic
2021-04-05 12:39:22 +02:00
Jonas Platte
e8e0ceb17d
api-macros: Move some helper functions from util to api::parse
2021-04-05 12:18:54 +02:00
Jonas Platte
1dd6a3870a
Use mem::take instead of mem::replace where applicable
2021-04-05 12:08:29 +02:00
Jonas Platte
679508f831
api-macros: Move parsing logic into a separate module
2021-04-05 12:07:34 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc
2021-04-05 11:42:07 +02:00
Jonas Platte
db18d938e0
api-macros: Refactor error type parsing
2021-04-05 11:42:07 +02:00
Jonas Platte
c27b17e5f9
Upgrade proc-macro-crate to 1.0.0
2021-03-23 20:43:58 +01:00
Jonas Platte
a0e8bb416b
Increase MSRV from 1.43 to 1.45
2021-03-21 20:32:46 +01:00
Jonas Platte
ad608c0013
Replace syn::Error::to_compile_error with into_compile_error
2021-03-09 19:12:21 +01:00
Akshay
4d51e98707
Introduce client
and server
feature flags for *-api crates
2021-03-05 16:00:35 +01:00
Jonas Platte
4ced423612
Fix new clippy warnings
2021-03-01 18:38:41 +01:00
Jonas Platte
a20c75d536
Fix import grouping issues
2021-02-25 20:55:19 +01:00
Akshay
1c0dab5a47
api: Allow cfg attributes on rate_limited and authentication metadata fields
2021-02-05 12:47:43 +01:00
Akshay
b087cf75b7
Set the default Content-Type for requests to application/json
2021-01-22 17:39:06 +01:00
Jonas Platte
5dd3658324
Fix nightly CI
2021-01-18 16:22:43 +01:00
Jonas Platte
ca1f334ded
Remove documentation links from all Cargo.toml
s
...
It was wrong for ruma-federation-api and useless for all others since
crates.io will link to docs.rs automatically if no link is given.
2021-01-17 17:00:09 +01:00
Jonas Platte
8e247a5ce2
Release ruma-api 0.17.0-alpha.2
2021-01-02 14:58:00 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements
2020-12-24 02:48:01 +01:00
Jonas Platte
212153ea5f
Mark macro-generated trait implementations as #[automatically_derived]
2020-12-13 13:29:03 +01:00
Jonas Platte
95d21552e0
Use a dedicated method for conversion from http::Request to Ruma request types
2020-12-13 12:59:21 +01:00
Jonas Platte
ac4446ab5b
api-macros: Improve readability of expand_all
2020-12-13 12:28:48 +01:00
Jonas Platte
ae6595339c
Stop stripping serde attributes
...
To still prevent 'unknown attribute' errors, the attribute is registered
using a dummy derive macro where needed.
2020-12-13 11:54:39 +01:00
Jonas Platte
cc07d26af6
Allow empty request / response if all body parameters are optional
2020-12-06 22:33:27 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde
2020-11-28 03:45:39 +01:00
Jonas Platte
5175d3d622
api_macros: Improve readability, fix lines >100 chars
2020-11-27 23:06:31 +01:00
Jonas Platte
a6ff054ba3
api-macros: Refactor metadata parsing
...
* duplicate field assignment will now raise an error
* parsing should now be faster (though it probably doesn't matter)
* the code is now split into more independent parts
2020-11-27 21:44:59 +01:00
Jonas Platte
761aecbe4e
api-macros: Remove RawApi, some refactoring
2020-11-27 21:15:37 +01:00
Jonas Platte
183f427143
api-macros: Rename RawErrorType => ErrorType
2020-11-27 21:15:37 +01:00
Jonas Platte
4d9fdeb61d
api-macros: Remove RawResponse
2020-11-27 21:15:37 +01:00
Jonas Platte
05249c6cdb
api-macros: Remove RawRequest
2020-11-27 21:15:37 +01:00
Jonas Platte
00ae067bce
api-macros: Remove RawMetadata
2020-11-27 21:15:37 +01:00
Jonas Platte
187809cff5
api-macros: Export METADATA as a regular constant
...
Rather than just as an associated constant in trait implementations.
2020-11-27 21:15:32 +01:00
Devin Ragotzy
c15382ca41
api-macros: Make Response header fields override any defaults
2020-11-01 14:04:34 +01:00
Jonas Platte
e1975c2035
Be more consistent about whitespace
2020-10-24 00:44:01 +02:00
skim
5b904ddbd7
Update links to main branch
2020-10-13 10:24:54 +02:00
Jonas Platte
406b8501ac
Fix building on Rust 1.43.0
2020-09-29 22:12:56 +02:00
Jonas Platte
006582e3f2
Various README updates
2020-09-29 20:30:33 +02:00
Jonas Platte
8b9e20b842
Fix outdated links
2020-09-29 20:10:54 +02:00
Jonas Platte
e0e7f901d0
Merge license sections in README.md's
2020-09-26 16:26:32 +02:00
Jonas Platte
fdd326edf7
Move Outgoing from ruma-api to ruma-common
...
The derive macro moves from ruma-api-macros to a new ruma-common-macros
crate likewise.
2020-09-22 21:35:10 +02:00
Vincent Lee
d36d005b97
Change requires_authentication: bool
to authentication: AuthScheme
2020-09-18 16:28:51 +02:00
Jonas Platte
133056c524
api-macros: Small improvements to request building code
2020-09-17 21:46:46 +02:00
Jonas Platte
3d1ab0cd3f
api-macros: Fix docs for associated METADATA types
2020-09-11 21:09:55 +02:00
Jonas Platte
67d113ba57
api: Add non_exhaustive attribute to request and reponse types through the macro
2020-09-11 21:01:02 +02:00
Devin Ragotzy
a8b4bad684
Support optional header values in request/response types
2020-08-21 19:53:46 +02:00
Jonas Platte
30a0a39d2b
Outgoing derive: Replace incoming_no_deserialize with incoming_derive(!Deserialize)
2020-08-17 22:08:56 +02:00
Jonas Platte
f101611c3d
Add incoming_derive to Outgoing derive macro
2020-08-17 22:03:56 +02:00
Jonas Platte
4a52931af7
Fix outdated docs on Outgoing derive
2020-08-17 21:40:48 +02:00