Bug 415915 - Upgrading serde-xml-rs from 0.2 to 0.3.1
Summary: Upgrading serde-xml-rs from 0.2 to 0.3.1
Status: RESOLVED FIXED
Alias: None
Product: rust-qt-binding-generator
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-06 03:10 UTC by Jeff Flesher
Modified: 2020-01-12 21:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Flesher 2020-01-06 03:10:48 UTC
Upgrading Cargo.toml 
from
serde-xml-rs = "0.2.1"
to
serde-xml-rs = "0.3.1"

build.rs
from
use serde_xml_rs::deserialize;
to
extern crate serde_xml_rs;

from
let mut rcc: RCC = deserialize(&bytes[..]).unwrap_or_else(|e| panic!("could not parse {}: {}", qrc.display(), e));
to
let mut rcc: RCC = serde_xml_rs::from_reader(&bytes[..]).unwrap_or_else(|e| panic!("could not parse {}: {}", qrc.display(), e));

One way to upgrade from .2 to .3, but it may not be the best way, so I will put an upgrade on a wishlist.
Comment 1 Jos van den Oever 2020-01-12 21:02:12 UTC
This is fixed in 4d393706b84a3c2852ece2689366811a0fc02207.