Closed gurugio closed 2 years ago
Yeah this was fallout from struct reorganization, try out e00c3e85de980075a43bf82e8478224a266200b5 which should fix this.
Great. I will try and ping you if it doesn't work. Thank you very much.
Hi,
I have a problem.
We are using v0.8.0 because we use Qemu 6.x version. Qapi-rs v0.10.0 does not have a backward compatibility with Qemu 6.x version. (Some memory device types and etc were changed.)
Could you please do back-porting the patch into 0.8.0?
I am able to do back-porting with only cherry-picking. There is no conflicts at all. So I guess it doesn't take long time.
Yeah, I was planning on backporting it once it was tested/released anyway, try this: 9eb901b2b22460f775a95b41d29b1c8cf86a5295
I tested the branch v0.8.x and got no error. Thank you very much.
Thanks for the confirmation, updates for all branches should be on crates.io now
Hi, I saw 0.9.1 but there is no other version upgrade. Could you please push 0.8.1?
qapi-qmp 0.8 depends on qapi-codegen 0.6, which contains the update. A cargo update
should pull it in automatically.
Hi,
Yes, all is well with qapi 0.8.0. Thank you very much.
Hi,
I tried to use object_add as below code snipet.
I got "can only flatten structs and maps (got a string))" error. So I checked the code of
enum ObjectOptions
in qapi-rs/target/debug/build/qapi-qmp-a7c0e267f5c0521a/out/qmp.rs file. And I found there is serde(flatten) attribute forid: String
.I guess serde cannot do flatten with String data. So I made a test code as below.
My test generates the same error: "can only flatten structs and maps (got a string)".
After removing serde(flatter) for String data, it does not generate any error.
I am wondering if there is any bug at generating enum ObjectOptions, Or do I misunderstand how to use it?