Skip to content

Commit

Permalink
Fix tafia#473: add explicit serde feature that is independent from de…
Browse files Browse the repository at this point in the history
…pendency
  • Loading branch information
Mingun committed Dec 12, 2022
1 parent e877f4f commit c705e2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,19 @@ escape-html = []
## [`Deserializer`]: crate::de::Deserializer
overlapped-lists = []

## Enables support for [`serde`] serialization and deserialization
serialize = ["serde"]
## Enables serialization of some types using [`serde`]. Probably your rarely will
## need this feature enabled.
##
## This feature does NOT provide XML serializer or deserializer. You should use
## the `serialize` feature for that instead.
serde = ["serde/derive"]

## Enables support for [`serde`] serialization and deserialization. When this
## feature is enabled, quick-xml provides serializer and deserializer for XML.
##
## This feature does NOT enables serializaton of the types inside quick-xml.
## If you need that, use the `serde` feature.
serialize = ["dep:serde"]

[package.metadata.docs.rs]
# document all features
Expand Down
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
```
- [#523]: Fix incorrect handling of `xs:list`s with encoded spaces: they still
act as delimiters, which is confirmed also by mature XmlBeans Java library
- [#473]: Fix a hidden requirement to enable serde's `derive` feature to get
quick-xml's `serialize` feature for `edition = 2021` or `resolver = 2` crates

### Misc Changes

Expand All @@ -66,6 +68,7 @@
Refer to [documentation] for details.
- [#521]: MSRV bumped to 1.52.

[#473]: https://github.com/tafia/quick-xml/issues/473
[#490]: https://github.com/tafia/quick-xml/pull/490
[#500]: https://github.com/tafia/quick-xml/issues/500
[#514]: https://github.com/tafia/quick-xml/issues/514
Expand Down

0 comments on commit c705e2d

Please sign in to comment.