Jonas Platte
b5f436d511
Expand explanation comment for unsafe code
2020-05-19 22:22:44 +02:00
Jonas Platte
af0a304594
Fix building on 1.36.0
2020-05-19 22:22:19 +02:00
Jonas Platte
e05b30d008
Query string deserialization: Allow multiple values for one key
2020-05-18 01:10:05 +02:00
Jonas Platte
0e627a8ac1
Update url_deserialize tests
2020-05-17 22:02:32 +02:00
Jonas Platte
48c5fb1a73
Update deps, bump version to 0.2.1
2020-05-15 11:51:11 +02:00
Jonas Platte
17783661da
Rename nested struct serialization tests
2020-05-15 11:50:01 +02:00
Jonas Platte
338ef529e1
Forbid serializing nested lists
2020-05-15 11:49:48 +02:00
Jonas Platte
73a46d6b21
Revert 'impl Sink for &mut ValueSink
instead of for ValueSink
'
...
This reverts commit 2032fc2, which was never actually necessary
2020-05-15 11:45:16 +02:00
Jonas Platte
7aa27c2a2d
More serialization test updates
2020-05-15 00:56:05 +02:00
Jonas Platte
9092f7d6d8
Update serialization tests
2020-05-14 23:12:12 +02:00
Jonas Platte
0c775de766
Add serialization support for sequences
...
Sequences of values for one key are serialized as `key=value1&key=value2`
2020-05-14 22:16:24 +02:00
Jonas Platte
2032fc2a94
impl Sink for &mut ValueSink
instead of for ValueSink
...
preparation for one-key-many-value serialization
2020-05-14 22:11:25 +02:00
Jonas Platte
e55527fee6
Merge, re-group imports in urlencoded
2020-05-14 22:08:55 +02:00
Jonas Platte
981a3aebe2
Bump version again
...
to 0.2.0 this time, since the revert to plain serde_urlencoded logic was actually a breaking change
2020-05-13 23:00:01 +02:00
Jonas Platte
a9579a4729
Bump version
2020-05-13 21:42:16 +02:00
Jonas Platte
01562cb7ac
Revert urlencoded to plain serde_urlencoded logic temporarily
2020-05-13 21:38:42 +02:00
Jonas Platte
d99812364f
Silence clippy warning
2020-05-04 18:38:15 +02:00
Jonas Platte
25f302f491
Add is_true
2020-05-01 23:33:01 +02:00
Jonas Platte
2fb17f30be
Bump version
2020-04-30 17:55:36 +02:00
Jonas Platte
3471e9c46e
Move serde_json_eq into submodule, always compile
2020-04-30 17:55:20 +02:00
Jonas Platte
06f6ca82b2
Bump version
2020-04-30 17:24:09 +02:00
Jonas Platte
f664a0132d
Import some things from ruma-events
2020-04-30 17:23:50 +02:00
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
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
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