magiclen / vcard

A pure Rust implementation of vCard based on RFC 6350.
MIT License
20 stars 2 forks source link

read vcard file documentation #2

Open 1sra3l opened 1 year ago

1sra3l commented 1 year ago

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.

magiclen commented 1 year ago

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

1sra3l commented 1 year ago

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!

magiclen commented 1 year ago

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.

1sra3l commented 1 year ago

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:

magiclen commented 1 year ago

Hope we all have time to do things we like.