I would like to use serde in code generation, embedding some complex nested object iterals into generated code.
I'm not expecting to serde produce anything other than something of the form:
const FOO: Foo = Foo {
bar: 0,
baz: Baz {
quux: 1
}
};
(Perhaps with me supplying the const FOO: Foo =.)
Ron would seem to be the crate to use, but it looks like it doesn't produce the Rust syntax for literal values.
Have I misunderstood its purpose?