mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
hyper_serde changes very infrequently and typically only in order to upgrade Servo dependencies. crates.io lists hyper_serde as having no dependents, and its integration will not prevent releasing new versions. Integrating it will both reduce the number of repositories we have to maintain as well as making it easier to upgrade Servo dependencies.
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
Serde support for Hyper types
|
|
=============================
|
|
|
|
This crate provides wrappers and convenience functions to support [Serde] for
|
|
some types defined in [cookie], [Hyper], [mime] and [time].
|
|
|
|
[cookie]: https://github.com/SergioBenitez/cookie-rs
|
|
[Hyper]: https://github.com/hyperium/hyper
|
|
[mime]: https://github.com/hyperium/mime
|
|
[Serde]: https://github.com/serde-rs/serde
|
|
[time]: https://github.com/time-rs/time
|
|
|
|
The supported types are:
|
|
|
|
* `cookie::Cookie`
|
|
* `hyper::header::ContentType`
|
|
* `hyper::header::Headers`
|
|
* `hyper::http::RawStatus`
|
|
* `hyper::method::Method`
|
|
* `hyper::Uri`
|
|
* `mime::Mime`
|
|
* `time::Tm`
|
|
|
|
For more details, see the crate documentation.
|
|
|
|
## License
|
|
|
|
hyper_serde is licensed under the following licenses.
|
|
|
|
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
https://www.apache.org/licenses/LICENSE-2.0)
|
|
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
https://opensource.org/licenses/MIT)
|
|
|
|
at your option.
|
|
|
|
### Contribution
|
|
|
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
|
for inclusion in hyper_serde by you, as defined in the Apache-2.0 license,
|
|
shall be dual licensed as above, without any additional terms or conditions.
|