ebarnard / rust-plist

A rusty plist parser.
MIT License
71 stars 42 forks source link

add a plist macro - copied from serde_json #143

Open aluedeke opened 3 months ago

aluedeke commented 3 months ago

i copied the json macro from serde and modified it i create plist::Value from json annotation. This is super handy when working with lockdown and usbmuxd messages.

I am relatively new to rust, thus i would appreciate any feedback.

The original macro was copied from here: https://github.com/serde-rs/json/blob/c4f24f3be29a3d096d3ac7b1d5594777a613ec0d/src/macros.rs

aluedeke commented 3 months ago

@ebarnard added tests as well