Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

XML Support #45

Closed
mattnenterprise opened this issue Feb 1, 2015 · 3 comments
Closed

XML Support #45

mattnenterprise opened this issue Feb 1, 2015 · 3 comments

Comments

@mattnenterprise
Copy link

Will this library ever support XML?

@gbersac
Copy link

gbersac commented Apr 24, 2015

👍 I'd love it to be available too. I'll add an issue to also have yaml support. Having one rust library for all type of serialization would be awesome !

What would be even more interesting would be to have an abstraction over the different type of data independant of the encoding language. Example :

let data1 = xml::from_string(xml_string); // return a Node structure
let data2 = yaml::from_string(yaml_string); // also return a Node structure
let data3 = json.from_string(json_string); // also return a Node structure

@gbersac gbersac mentioned this issue Apr 24, 2015
@dtolnay
Copy link
Contributor

dtolnay commented Feb 2, 2017

The response from the other ticket seems relevant here as well:

This would be awesome! I suspect it would not be a part of this library, however, but rather done as an external crate.

Right now we're not looking to expand this library too much as we hope to deprecated it one day (fingers crossed!). With crates.io and Rust traits, however, it's super easy to make a high-quality library externally, and it also keeps the compile times down for everyone using rustc-serialize who doesn't require YAML encoding/decoding. An example of a library like this is toml

@alexcrichton
Copy link
Contributor

I'm going to close this now that this crate is deprecated in favor of serde. We're discontinuing feature development in rustc-serialize but will still continue to merge bug fixes if they arise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants