summaryrefslogtreecommitdiff
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2020-12-06Serialize bytes as percent-encoded data.Sam Scott
Fixes #40. Thanks to @faulesocke for reporting.
2020-12-06Add support for actix 3.Sam Scott
2020-08-27Switch from error-chain to thiserror (#33)Josh Triplett
thiserror provides a simpler interface than error-chain, directly generating an error enum similar to what could be written by hand. It also reduces dependencies; error-chain pulls in backtrace which currently pulls in gimli, which is fairly heavyweight. This changes the error type's interface, so it'll require a bump to 0.7.0.
2020-06-03Support actix-web v2 (#30)Sam Scott
* update dependencies - actix-web v2 - percent encoding v2.1 - rust 2018 edition - remove rustfmt no longer supported rules * ci: add feature build matrix * fix actix unit tests Co-authored-by: Mario Reder <mreder1289@gmail.com>
2020-06-03update lints listMarc-Antoine Perennou
One is deprecated and the other has been renamed Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-01-23Add feature for easy use in `actix_web` extractors.Sam Scott
2019-01-23Run cargo fmt.Sam Scott
2019-01-23Add documentation and workaroud for `#[serde(flatten)]` usage.Sam Scott
2019-01-21Merge branch 'master' of github.com:samscott89/serde_qsSam Scott
2019-01-21Minor fixes:Sam Scott
- Suppress deprecated warning from error-chain - Fix clippy issues - Update dependencies - Update example to csv 1.0
2018-08-04Update documentation to clarify strict encoding modes.Sam Scott
2018-07-09Let warnings through.Sam Scott
2017-11-09Add generic serialize `to_writer` method.Sam Scott
2017-11-09Let rustfmt do its thing.Sam Scott
2017-11-09Refactor Serialize logic to produce correct strings.Sam Scott
Removes the dependency on the `url` crate because we only need the percent decoding, with our own encoding set. All keys/values are conservatively percent-encoded, but the square brackets are untouched. Compatible with strict decoding, and potentially less error prone.
2017-11-09Implement `strict` option feature.Sam Scott
Permits encoded brackets, and will generally tolerate parsing errors where possible. Permitting, for example, `a%5B[0%5D=1` to decode as `a: vec![1]`. Default behaviour is strict.
2017-10-31New parsing strategy.Sam Scott
- Only perform the percent decoding at the final step (fixes #10). - Reduce allocations by borrowing as much as possible.
2017-05-23Add note in docs about using integer keys.Sam Scott
2017-05-21Refactor errors to be of a single type and export it.Sam Scott
2017-05-21Add stricter lints.Sam Scott
2017-05-21Docs, API and panics.Sam Scott
Improved documentation, simpified the API coverage, and replaced panics with errors in most cases.
2017-05-21Updates to documentation.Sam Scott
2017-05-20Organisational changes.Sam Scott
2017-05-20Rewrite of most components.Sam Scott
Simplify `ser` logic, and expand `de` functionality.
2017-03-12Address some clippy comments.Sam Scott
Add docs for `Config`.
2017-03-12Add in docs link, clean up examples and querystring consistency.Sam Scott
2017-03-12Run rustfmt on code.Sam Scott
2017-03-10Cleaning up, modifying docs.Sam Scott
2017-03-09Refactoring aproach.Sam Scott
2017-02-15Some _very_ hacky code to get nested url_encoded params working.Sam Scott
2017-02-05Inline docs of reexports and bump version to 0.4.2Anthony Ramine
2017-02-05Introduce de::from_readerArthur Skobara
2017-01-31Update serde to 0.9.3 and use serde::ser::ImpossibleAnthony Ramine
2017-01-29Use dtoa to not allocate a String to serialize a floatAnthony Ramine
2017-01-29Use itoa to not allocate a String to serialize an integerAnthony Ramine
2017-01-29Use void for the unreachable serializersAnthony Ramine
2016-09-11Add convenience functions (fixes #2)Anthony Ramine
2016-09-11x-www-form-urlencoded meets SerdeAnthony Ramine