quininer / cbor4ii

CBOR: Concise Binary Object Representation
MIT License
58 stars 6 forks source link

Feature Request: `Value` construction with macro #5

Open bdbai opened 2 years ago

bdbai commented 2 years ago

It would be super convenient to compose a complex Value directly from a diagnostic notation literal with a macro, similar to serde_json::json!.

quininer commented 2 years ago

I am not interested in this feature, you can use Value to construct it manually. I prefer to use the core::types construct, which will have less overhead. But if someone is willing to implement it, I am also happy to accept it.