Mingun

Results 397 comments of Mingun

Probably there is no obvious way without copying data or using `unsafe`. You can make a PR!

Actually, there are already exists a library on top of quick-xml, that introduces custom traits & derive macro: [xmlserde](https://lib.rs/crates/xmlserde). After quick look it seems that it does not support namespaces...

I made some experiments with [XmlBeans 5.0.0](https://xmlbeans.apache.org/) -- a popular Java library to work with XML. Use the following XSD: ```xml ``` It skips comments and processing instructions and merge...

Unfortunately, this is not the easy task, because of [trim](https://docs.rs/quick-xml/latest/quick_xml/reader/struct.Reader.html#method.trim_text) feature, that is activated for serde deserializer. That means, that spaces between CDATA section and text will be trimmed, and...

@loyd , could you please describe, how you faced with this problem? You tried to use quick-xml in a crate with `resolver="2"` field?

I've almost done with rewriting > Btw, [`next_key()`](https://github.com/loyd/fixnum/blob/ad0ba674caf30862d6183b9e4ae2d01c31cac159/src/serde.rs#L128) cannot parse into `&str` (and `next_value()` too until v0.24 version). But it's a subject of another issue. Yes, that is [known problem](https://github.com/tafia/quick-xml/issues/328)...

@loyd, can you please post exact instruction, what I should do to reproduce that? I didn't see a `resolver="2"` field in the [fixnum Cargo.toml](https://github.com/loyd/fixnum/blob/ad0ba674caf30862d6183b9e4ae2d01c31cac159/Cargo.toml)

It seems that rust-analyzer could not work if `cargo check --workspace --message-format=json --manifest-path {path to your projects cargo toml} --all-targets` failed, for example because crate uses `#![feature()]` gate that is...

Yes, the problem in that `switch-on` not correctly interacts with size-constrained fields. Testcase: ```yaml meta: id: bug seq: - id: values size: 4 type: switch-on: _index cases: 0x01: container repeat:...

Actually, the origin of problem is that `size` incorrectly bound to _types_ instead of to _fields_, as I already stated in https://github.com/kaitai-io/kaitai_struct/issues/788#issuecomment-666195081. This KSY should generate something like this: ```js...