468 Commits

Author SHA1 Message Date
Jonas Platte
d6f1926832
Disallow body fields in GET endpoints 2019-11-11 22:55:04 +01:00
Jonas Platte
c8f1342144
Disallow multiple ruma_api(body) attributes in one request / response 2019-11-11 22:32:10 +01:00
Jonas Platte
47267cc2ba
Slightly simplify attribute parsing code 2019-11-11 22:28:43 +01:00
Jonas Platte
e8858f119d
Fix outdated doc comment 2019-11-11 22:28:24 +01:00
Wim de With
fa771877f7 Fix wording in Cargo.toml description 2019-11-11 11:07:45 +01:00
Wim de With
7a2b14fe15 Add homepage and repository URLs to Cargo.toml 2019-11-11 11:07:17 +01:00
Wim de With
531bbb6429 Configure Travis 2019-11-11 11:04:52 +01:00
Wim de With
4339999152 Initial commit 2019-11-08 15:17:57 +01:00
Jonas Platte
e5a3027b3b Add CHANGELOG.md, ruma-api-macros/CHANGELOG.md 2019-11-04 11:37:56 +01:00
Jonas Platte
59056808de Remove #![deny(warnings)], #![warn(clippy::…)] 2019-11-02 14:15:49 +01:00
Jonas Platte
0889d1e0ef Fix version of ruma-api-macros 2019-10-29 20:06:16 +01:00
Jonas Platte
4a03892ad6 Bump versions 2019-10-29 20:05:07 +01:00
Jonas Platte
540a69a8e4 Remove percent-encoding dependency (not currently used) 2019-10-29 19:56:00 +01:00
Jonas Platte
958a0a01c4 Remove server-side functionality
This is a temporary change that is done to get one release of
ruma-client-api with ruma-events' EventResult API out. After ruma-api
0.11 is released, getting the server-side functionality to work again
will be a priority.
2019-10-29 12:11:38 +01:00
Jonas Platte
481f4c682c Remove unnecessary main declaration in doctest
(found by clippy)
2019-10-29 12:01:09 +01:00
Jonas Platte
7e7041fbef Allow clippy::use_self 2019-10-29 11:02:25 +01:00
Jonas Platte
83bb889b64 Bump MSRV from 1.34 to 1.34.2, test it in CI 2019-10-29 00:14:00 +01:00
Igor Gnatenko
eb3c523444
chore: Exclude unneeded files 2019-08-25 14:10:44 +02:00
Jonas Platte
1c57a2380d Disable clippy lint cognitive_complexity for ruma-api-macros 2019-08-16 23:22:34 +02:00
Jonas Platte
3b3744153f Update dependencies 2019-08-16 21:42:26 +02:00
Jimmy Cuadra
ef2535a7c2 Bump ruma-api-macros to 0.7.1. 2019-08-02 18:41:03 -07:00
Jimmy Cuadra
d8830770db Remove ruma-api as a dependency from ruma-api-macros. 2019-08-02 18:40:21 -07:00
Jimmy Cuadra
12cfa48fc5 Bump ruma-api-macros to 0.7.0. 2019-08-02 17:50:11 -07:00
Jimmy Cuadra
97c1a37f0c Update homepage and repository URLs for ruma-api-macros. 2019-08-02 17:49:06 -07:00
Jimmy Cuadra
4436bbfe5d Update ruma-api-macros README and remove redundant files. 2019-08-02 17:47:56 -07:00
Jimmy Cuadra
3e9fd80a7e Update dependencies and remove unnecessary ones. 2019-08-02 17:45:18 -07:00
Jimmy Cuadra
1bbdbff592 Only build PRs and the master branch on CI. 2019-08-02 17:41:48 -07:00
Jimmy Cuadra
6e7e6b5aec Run CI against all workspace members. 2019-08-02 17:07:33 -07:00
Jimmy Cuadra
4f03c4dce2 Re-export ruma-api-macros from ruma-api. 2019-08-02 16:08:35 -07:00
Jimmy Cuadra
e291730288 Add 'ruma-api-macros/' from commit '02bcb5f0384340d3a722ae93cdb0b74015902c7e'
git-subtree-dir: ruma-api-macros
git-subtree-mainline: 954b24f2bbda1617aaa80889ee1dd01f742a4164
git-subtree-split: 02bcb5f0384340d3a722ae93cdb0b74015902c7e
2019-08-02 13:51:32 -07:00
Anthony Ramine
278de79267 Bump version to 0.6.1 2019-07-31 10:49:32 +02:00
bors[bot]
2aba0def87 Merge #59
59: Expose lifetimes in UrlEncodedSerializer r=nox a=benesch

Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.

Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
2019-07-31 08:27:48 +00:00
Jimmy Cuadra
954b24f2bb
Merge pull request #23 from ruma/v0.10.0
Update dependencies, bump version to 0.10.0
2019-07-30 14:09:07 -07:00
Nikhil Benesch
31641affad
Expose lifetimes in UrlEncodedSerializer
Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.
2019-07-30 13:26:36 -04:00
Jonas Platte
78507b1d8b
Update dependencies, bump version to 0.10.0 2019-07-30 17:37:09 +02:00
bors[bot]
4250a6bcd9 Merge #51
51: feat: allow serialization of unit structs r=nox a=fdehau

fix #50 

Co-authored-by: Florian Dehau <work@fdehau.com>
2019-07-30 07:41:19 +00:00
bors[bot]
68113de90f Merge #57
57: Update the url crate to 2.0 r=nox a=SimonSapin



Co-authored-by: Simon Sapin <simon.sapin@exyr.org>
2019-07-30 07:37:26 +00:00
Simon Sapin
59f990aba4
url is a public dependency, so updating it to 2.0 is a breaking change 2019-07-29 10:19:29 +02:00
Jimmy Cuadra
02bcb5f038
Merge pull request #20 from ruma/spans
Use spans to improve error reporting
2019-07-26 09:45:41 -07:00
Jonas Platte
a89f69e4f3 Add documentation to Meta::from_attribute 2019-07-25 23:59:35 +02:00
Jonas Platte
53cf6c562d Re-run rustfmt 2019-07-25 22:42:47 +02:00
Jonas Platte
8f3b141db5 Replace string literals by identifiers in #[ruma_api] attributes 2019-07-25 22:00:24 +02:00
Jonas Platte
777e9c4c70 Stop throwing away span information when parsing metadata 2019-07-25 20:08:51 +02:00
Jimmy Cuadra
70cd077f29 Update dependencies. 2019-07-25 10:19:57 -07:00
Jimmy Cuadra
bb5a159412 Tweak documentation and import names. 2019-07-25 10:04:49 -07:00
Jimmy Cuadra
4324ab29cf
Merge pull request #21 from ruma/endpoint_is_request
Simplify the Endpoint trait by using the Request type as Self
2019-07-25 09:37:16 -07:00
Simon Sapin
99ef71ac2e Update the url crate to 2.0 2019-07-24 16:59:16 +02:00
Jimmy Cuadra
db709e2fdd Run cargo generate-lockfile on CI before running cargo-audit. 2019-07-23 09:47:56 -07:00
Jimmy Cuadra
fd8367be4c Run cargo-audit on CI. 2019-07-23 09:47:17 -07:00
Jimmy Cuadra
f59d9d1fb1 Run cargo-audit on CI. 2019-07-23 09:46:13 -07:00