summaryrefslogtreecommitdiff
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2024-04-07Actix: extract querystring from form data (#98)Sam Scott
* Deprecate support for actix-web 2.0 * Update actix.rs Added QsForm to support application/x-www-form-urlencoded Web forms * Update actix.rs with working adjustments Added Into_inner function for both QsQuery and QsForm to behave like actix_webs default extractors Made some fixes * Added missing code to actix.rs for QsForm * Update actix.rs Added new trait "IntoInner" Fixed QsFormConfig not correctly setting new settings correctly * Update actix.rs Removed trait requirement for using into_inner() now functions as a function. * Update src/actix.rs * Remove redundant config, add tests * Add changelog * Bump serde qs version * Add Debug bound to docs example --------- Co-authored-by: nMessage <135612238+nMessage@users.noreply.github.com>
2024-04-07Add `Deserializer::new` to crate a new deserializer, and public ↵Jason Lee
deserializer. (#91) * Add `Deserializer::new` to crate a new deserializer, and public deserializer. * Update mod.rs Co-authored-by: Paul Hansen <mail@paul.rs> --------- Co-authored-by: Paul Hansen <mail@paul.rs>
2023-01-07Update flatten workaround for serde_with 2.0.0 (#69)Pierre Hubert
2022-07-13Add a standalone serializer.Sam Scott
2022-07-10Formatting.Sam Scott
2022-07-09feat: non-strict mode replaces invalid UTF-8 (#62)Jeremiah Senkpiel
This change makes non-strict mode percent-decode utf-8 lossily. This means that invalid UTF-8 percent encoded sequences, such as `%E9`, are decoded as the unicode replacement character (� `U+FFFD`). Refs: https://github.com/samscott89/serde_qs/issues/43
2022-04-29Add axum support (#59)Denis Kayshev
2022-03-05Add an `actix` feature to provide a nicer error message (#57)Sam Scott
* Add an `actix` feature to provide a nicer error message for people migrating from <= 0.8 * Fix tests. * Bump version in readme.
2022-03-05Actix 4 (#56)Omid Rad
* Remove all default actix features * Set MSRV * Have `actix4` feature, instead of `actix` * enable actix tests for all features
2021-10-01Update flatten workaround.Sam Scott
2021-03-09Add warp support (#46)Glitch
* add tracing, add tests, default to empty string
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