286 Commits

Author SHA1 Message Date
Jonas Platte
5f116e4e49 Remove remaining uses of quote::TokenStreamExt
fixes #4
2019-04-20 13:30:26 +02:00
Jimmy Cuadra
09a337f42a Bump version to 0.4.0. 2019-04-11 18:16:01 -07:00
Jimmy Cuadra
2e60cf8826 Remove try_from feature. 2019-04-11 18:15:32 -07:00
Jimmy Cuadra
6659df8495 Update dependencies. 2019-04-11 18:15:26 -07:00
Jimmy Cuadra
6e3e29fc22 Bump version to 0.7.0. 2019-04-11 18:05:34 -07:00
Jimmy Cuadra
376b53613f Remove try_from feature. 2019-04-11 18:03:46 -07:00
Jimmy Cuadra
99b2d6423f Update dependencies. 2019-04-11 18:03:11 -07:00
Jimmy Cuadra
728ea7a301 Add note about minimum Rust version. 2019-04-11 17:29:43 -07:00
Jimmy Cuadra
58a785c350
Merge pull request #17 from ruma/serde-derive-feature
Replace serde_derive by re-exports in serde
2019-02-06 13:42:11 -08:00
Jimmy Cuadra
6bb5a9865f
Merge pull request #15 from ruma/serde-derive-feature
Replace serde_derive by re-exports in serde
2019-02-06 13:41:53 -08:00
Jonas Platte
561a254ca8 Replace serde_derive by re-exports in serde 2019-02-06 20:24:29 +01:00
Jonas Platte
26842652fc Replace serde_derive by re-exports in serde 2019-02-06 20:17:38 +01:00
Jimmy Cuadra
ebead04bb9 Bump version to 0.3.1. 2019-02-01 13:57:39 -08:00
Jimmy Cuadra
4396affedb
Merge pull request #14 from ruma/import-fix
Fix trait imports in generated code without rename
2019-01-31 18:01:26 -08:00
Jonas Platte
f761a8f837 Fix trait imports in generated code without rename
Previously, the generated code would fail to compile when the 'derive' feature
on the serde crate was enabled
2019-01-30 22:50:11 +01:00
Jimmy Cuadra
b6401a1232
Merge pull request #16 from ruma/rust-2018
Update to Rust 2018
2019-01-15 12:33:28 -08:00
Jimmy Cuadra
cba85ba9c5
Merge pull request #13 from ruma/rust-2018
Update to Rust 2018
2019-01-15 12:33:10 -08:00
Jonas Platte
282b952192 Update to Rust 2018 2019-01-13 21:42:45 +01:00
Jonas Platte
d3322bec11 Update to Rust 2018 2019-01-13 21:41:27 +01:00
Jimmy Cuadra
025e981b96
Merge pull request #15 from ruma/nested-imports
Use nested imports
2019-01-09 14:53:32 -08:00
Jimmy Cuadra
578c3f38ab
Merge pull request #12 from ruma/nested-imports
Use nested imports, update formatting
2019-01-09 14:52:59 -08:00
Jonas Platte
9d1e8180b8 Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:17:28 +01:00
Jonas Platte
0b3dd48c3e Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:06:19 +01:00
Jimmy Cuadra
3e7f7a987b
Merge pull request #11 from ruma/less_append_all
Get rid of almost all calls to append_all
2018-12-16 11:22:31 -08:00
Jonas Platte
0a4239b678 Get rid of almost all calls to append_all 2018-12-15 21:22:07 +01:00
Jimmy Cuadra
0e494ade66 Bump version to 0.3.0. 2018-12-03 18:28:16 -08:00
Jimmy Cuadra
1ac3236a9e Merge remote-tracking branch 'fest-im/master' 2018-12-03 18:26:57 -08:00
Jimmy Cuadra
d90dfdee24 Merge remote-tracking branch 'Johni0702/cloneable' 2018-12-03 18:10:52 -08:00
Jimmy Cuadra
b72afdefae Update dependencies. 2018-12-03 18:08:03 -08:00
Jimmy Cuadra
2f07b803a8 Update to ruma-api 0.6.0. 2018-12-03 18:06:14 -08:00
Jimmy Cuadra
033c04fd12 Bump version to 0.6.0. 2018-12-03 17:57:58 -08:00
Jimmy Cuadra
bfddf74398 Update dependencies. 2018-12-03 17:56:51 -08:00
Jonas Platte
c9277ddc94 Upgrade dependencies 2018-11-10 22:39:29 +01:00
Jonas Herzig
20cbadd95b Make Request and Response cloneable 2018-09-12 15:27:40 +02:00
Jonas Herzig
e4ec9442d8 Make the Future returned by generated future_froms be Send 2018-09-12 13:23:33 +02:00
Jonas Herzig
e23eff151b Add convertion to/from Request/Response from/to http::Request/Response 2018-09-12 13:00:28 +02:00
Jonas Herzig
c71b60ef70 Add convertion to/from Request/Response from/to http::Request/Response 2018-09-11 16:56:25 +02:00
Jonas Herzig
74dad12056 Fix test compilation 2018-09-11 15:00:52 +02:00
Jörg Sommer
116a6f44bc Fix some hints from Rust and clippy
* the feature `proc_macro` has been stable since 1.29.0 and no longer
  requires an attribute to enable

* https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#needless_return

* https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#len_zero
2018-08-31 13:47:29 +02:00
Jörg Sommer
c91b9137fb Update dependent crates quote, syn and others
Cargo treats updates in the third position of the version number as
compatible and updates them silently. Therefore, we can drop this number
in the config.

`Tokens` was moved from *quote* to *proc_macro2* and got renamed to
`TokenStream`.
2018-08-31 13:47:27 +02:00
Jörg Sommer
8703e515a9 Replace Vec<u8> by hyper::Body
The `hyper::Request` and `Response` used in *ruma-client* require a type
parameter that implements `hyper::body::Payload`, but no implementation
for `Vec<u8>` is provided by a crate. Therefore, the best is to use
`hyper::Body` in the macros.
2018-08-31 13:46:28 +02:00
Jörg Sommer
d4578a835d Use Hyper::Body as default for Endpoint
This makes many code more compact.
2018-08-31 12:35:44 +02:00
Jörg Sommer
08c0d14221 Add Error(Hyper) for errors originated from Hyper
During the parsing of the HTTP responses an error might come from
*Hyper*. To pass this error down to the caller, we need an entry in
`Error`.
2018-08-31 12:31:46 +02:00
Jimmy Cuadra
adf785ffc9 Bump version to 0.2.2. 2018-05-19 02:16:10 -07:00
Jimmy Cuadra
f744e0813d Upgrade dependencies. 2018-05-19 02:15:51 -07:00
Jimmy Cuadra
527562c760 Bump version to 0.2.1. 2018-05-19 02:08:44 -07:00
Jimmy Cuadra
1bedd5af4e Request body must always be a Vec<u8>. 2018-05-19 02:08:44 -07:00
Jimmy Cuadra
ff30a4381a Use fields stripped of serde attributes. 2018-05-19 02:08:44 -07:00
Jimmy Cuadra
621b73bd6f Add missing commas after each query field. 2018-05-19 02:08:44 -07:00
Jimmy Cuadra
1678ee2cea Ignore attributes that aren't Meta::Lists. 2018-05-19 02:08:44 -07:00