vcard icon indicating copy to clipboard operation
vcard copied to clipboard

read vcard file documentation

Open 1sra3l opened this issue 2 years ago • 5 comments

Hi, there is no documentation showing an example how to read a vcard file. Does this library only create them, and not read them into the VCard struct? If this feature does not exist, could you please add it, I like the way your library is set up, and would like to read/modify vcard files, not only create.

1sra3l avatar May 02 '23 23:05 1sra3l

Currently, this crate does not have a parser. But it is in the todo list.

magiclen avatar May 02 '23 23:05 magiclen

Currently I am using vcard_parser but I like all the features your crate has, and the struct, specifically. That crate uses nom as the parser, you might look at what they have done in their implementation to get an idea. Another thought would be to do something with serde, though it might not work for the vcard format.

I am excited to think about using your library instead, the API is very good!

1sra3l avatar May 03 '23 00:05 1sra3l

I have been developing vcard v0.5 since last year with the latest validators crate. But the work is huge for me. So even now, the completion rate of the new vcard is still very low.

magiclen avatar May 03 '23 01:05 magiclen

I understand, if I end up having enough time, I will try to learn how to help implementing something. It seems like most crates use nom to parse the file. I have been away from programming for quite a while so it will take me some time to get back up to speed :smile_cat:

1sra3l avatar May 03 '23 02:05 1sra3l

Hope we all have time to do things we like.

magiclen avatar May 03 '23 02:05 magiclen