1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! # ezcal
//!
//! Ergonomic iCalendar (RFC 5545) + vCard (RFC 6350) library for Rust.
//!
//! `ezcal` aims to be the simplest way to read and write `.ics` and `.vcf` files in Rust,
//! while still being correct and complete enough for real-world use.
//!
//! ## Quick Start: Create an event
//!
//! ```rust
//! use ezcal::ical::{Calendar, Event};
//!
//! let cal = Calendar::new()
//! .event(
//! Event::new()
//! .summary("Team Standup")
//! .location("Room 42")
//! .starts("2026-03-15T09:00:00")
//! .ends("2026-03-15T09:30:00")
//! )
//! .build();
//!
//! let ics = cal.to_string();
//! assert!(ics.contains("Team Standup"));
//! ```
//!
//! ## Quick Start: Parse an .ics file
//!
//! ```rust
//! use ezcal::ical::Calendar;
//!
//! let input = "\
//! BEGIN:VCALENDAR\r\n\
//! VERSION:2.0\r\n\
//! PRODID:-//Test//EN\r\n\
//! BEGIN:VEVENT\r\n\
//! UID:example\r\n\
//! DTSTAMP:20260315T090000Z\r\n\
//! DTSTART:20260315T090000\r\n\
//! SUMMARY:Team Standup\r\n\
//! END:VEVENT\r\n\
//! END:VCALENDAR\r\n";
//!
//! let calendar = Calendar::parse(input).unwrap();
//! for event in calendar.events() {
//! println!("{}", event.get_summary().unwrap_or("(untitled)"));
//! }
//! ```
//!
//! ## Quick Start: Create a vCard contact
//!
//! ```rust
//! use ezcal::vcard::Contact;
//!
//! let card = Contact::new()
//! .full_name("Jane Doe")
//! .email("jane@example.com")
//! .phone("+1-555-0123")
//! .organization("Acme Corp")
//! .build();
//!
//! let vcf = card.to_string();
//! assert!(vcf.contains("Jane Doe"));
//! ```
pub use ;