Closed robmiller closed 8 years ago
It's nice to know someone else is using this even if it if quite flaky.
No. You're not doing anything wrong. That plist managed to trigger five separate bugs but it should now work. Try with the latest version (0.0.8).
Hello! I realise this library is a work in progress, but I wanted to try it out because I happen to a) need to parse some plist data and b) want to continue learning Rust. Feel free, therefore, to tell me "bugger off, this doesn't work yet".
I'm using the parser as follows, to read from the output of the
system_profiler
command:However, this just hangs indefinitely on the
for
loop — I guess because thenext()
call inxml-rs
is blocking, and so it's as though it's not receiving any input. I've tried rewinding the stream before passing it intoStreamingParser::new
and the same still happens.Is this just a case of the library not being finished, or am I doing something obviously wrong that I can fix?
Thanks in advance, Rob