149 Commits

Author SHA1 Message Date
Jonas Platte
1a00c1d386
Don't treat literal "null" as JSON
Reverts part of 7972453e9107d9439e90bf1661538c7b935c3ebb
2020-04-29 10:56:58 +02:00
Jonas Platte
a3787cf3b9
Update dependencies 2020-04-29 10:56:19 +02:00
Jonas Platte
a22335c6e7
Remove Cargo.toml left over from serde_urlencoded integration 2020-04-29 10:06:07 +02:00
Ragotzy.devin
7972453e91
urlencoded: (de)serialize nested structs as JSON 2020-04-29 09:58:30 +02:00
Jonas Platte
f7d6cf9b3f
Replace travis CI with builds.sr.ht 2020-04-24 22:19:30 +02:00
Jonas Platte
053d2e94f6
Update CI config 2020-04-24 21:53:42 +02:00
Jonas Platte
16acf7f753
CI updates 2020-04-24 18:43:49 +02:00
Jonas Platte
50218e27ab
Add sources to builds.sr.ht manifests 2020-04-24 18:38:37 +02:00
Jonas Platte
1eb5bffbc6
Add builds.sr.ht manifests 2020-04-24 18:29:28 +02:00
Jonas Platte
cb5f8ffc39
Don't use unstable rustfmt options 2020-04-24 12:32:25 +02:00
Jonas Platte
6fa05a1a6f
Update some imports 2020-04-24 12:29:44 +02:00
Jonas Platte
6770ed61c1
Update .gitignore 2020-04-24 12:28:17 +02:00
Jonas Platte
32d95057a6
cargo fmt 2020-04-24 12:17:59 +02:00
Jonas Platte
41288b7c73
Fix warnings 2020-04-24 10:11:35 +02:00
Jonas Platte
c6359d1916
Integrate serde_urlencoded fork 2020-04-24 10:09:19 +02:00
Jonas Platte
afb39536eb Add 'urlencoded/' from commit '93a7283991aa9c9b1087803c274953d3072c3dc0'
git-subtree-dir: urlencoded
git-subtree-mainline: 3e4cd7abd4fa3f87c7de3952a10c65928d93979d
git-subtree-split: 93a7283991aa9c9b1087803c274953d3072c3dc0
2020-04-24 09:43:01 +02:00
Devin R
93a7283991
Add support for matrix-style multiple query parameters
This adds support for query strings in which a sequence field of a
`Deserialize` / `Serialize` struct is (de)serialized as
`field=val1&field=val2&field=val3`, instead of the more common
`field[]=val1&field[]=val2&field[]=val3` syntax.
2020-04-24 09:32:37 +02:00
Devin R
68daaf86f6 update to 2018 edition, import in ruma style 2020-04-20 09:11:41 -04:00
Jonas Platte
3e4cd7abd4
Add LICENSE file, travis configuration 2020-04-17 19:54:23 +02:00
Jonas Platte
c0e751669f
Initial commit (import code from ruma-client-api)
Co-authored-by: Isaiah Inuwa <isaiah.inuwa@gmail.com>
2020-04-17 19:50:14 +02:00
bors[bot]
ab6f3ce278
Merge #68
68: Allow serialization of unit type r=nox a=maxv-rust

That changes provides support for unit type serialization.

It may looks like it doesn't make sense to serialize `()`. Unfortunately that kind of serialization may be necessary for generic structures where one of generic argument may be `()`.

Closes #69 

Co-authored-by: MaxV <60802079+maxv-rust@users.noreply.github.com>
2020-04-16 10:20:06 +00:00
MaxV
f60e4fd093 Allow serialization of unit type 2020-04-08 23:02:57 -07:00
bors[bot]
e659355313
Merge #61
61: chore: Exclude unneeded files r=nox a=ignatenkobrain



Co-authored-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2020-03-10 08:35:20 +00:00
bors[bot]
820c8a0b84
Merge #67
67: replace typo in documentation r=nox a=mcginty

It caught me when I was reading it :).

Co-authored-by: Jake McGinty <me@jake.su>
2020-03-10 08:33:32 +00:00
Jake McGinty
12c95203e0 replace typo in documentation 2020-03-10 12:38:30 +09:00
bors[bot]
bf16076bce Merge #64
64: Add Error::source r=nox a=AnderEnder

As discussed in https://github.com/nox/serde_urlencoded/pull/63 `Error::source` was added in `1.30.0`

This PR implements `Error::source`

Co-authored-by: Andrii Radyk <ander.ender@gmail.com>
2020-02-10 11:15:28 +00:00
Andrii Radyk
ed2b92f98b add Error::source 2020-01-20 23:07:27 +01:00
Wim de With
f5bfee3f8d Bump MSRV and run CI on multiple Rust versions 2019-11-25 23:37:05 +01:00
Wim de With
038ae89d05 Add thirdparty network endpoints 2019-11-21 14:43:47 +01:00
Wim de With
55dfe98d44 Update ruma-api to 0.11.2 2019-11-21 14:41:16 +01:00
Jimmy Cuadra
c3aa9bd952 Update Travis CI configure and include IRC notifications. 2019-11-11 21:02:34 -08: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
Igor Gnatenko
eb3c523444
chore: Exclude unneeded files 2019-08-25 14:10:44 +02: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
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
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
Simon Sapin
99ef71ac2e Update the url crate to 2.0 2019-07-24 16:59:16 +02:00
Florian Dehau
76b45ee001 feat: allow serialization of unit structs 2019-04-18 08:21:54 +02:00
bors[bot]
643a206559 Merge #54
54: Don't use CowStrDeserializer (fixes #53) r=nox a=nox



Co-authored-by: Anthony Ramine <n.oxyde@gmail.com>
2019-04-16 09:29:19 +00:00
Anthony Ramine
2bb996055b Bump version to 0.5.5 2019-04-16 11:27:24 +02:00
Anthony Ramine
98f0113592 Don't use CowStrDeserializer (fixes #53) 2019-04-16 11:26:25 +02:00
Anthony Ramine
92eadc25be Reformat 2019-04-16 11:15:32 +02:00
bors[bot]
11cc5bb88f Merge #45
45: Fix struct newtype deserialization (and add tests) r=nox a=samsieber

Fixes #41

I only had to fix the deserializer - the serialization already works. So now they work the same way - you can serialize something and then deserialize it losslessly. 

I also added tests for serialization and deserialization. Let me know if there's anything you'd like changed.

Co-authored-by: Sam Sieber <swsieber@gmail.com>
2018-11-19 16:16:45 +00:00
Sam Sieber
8f829ac1b4 Bump version to 0.5.4 2018-11-19 09:12:33 -07:00