A library (far from anything) to generate icalendars This implementation is still far from complete, I haven't even read the entire spec yet. Instead I implemented the parts I needed first. More to come, contributions very welcome.
Structure
Calendar
s consist ofComponents
Component
s are e.g.Event
orTodo
Component
s consist ofProperty
sProperty
s may haveParameter
s
# extern crate chrono;
# extern crate icalendar;
# use *;
# use *;
#
Breaking API Changes in version 0.7.0
- [Todo::due] and [Todo::completed] now take their date-time argument by value rather than by reference
- [Todo::completed] now requires its [chrono::DateTime] argument to have exactly [chrono::Utc] specified as its time zone as mandated by the RFC.
- [Component::starts], [Component::ends] and [Todo::due] now take newly introduced
[CalendarDateTime] (through
Into<CalendarDateTime>
indirection). This allows callers to define time zone handling. Conversions from [chrono::NaiveDateTime
] andchrono::DateTime<Utc>
are provided for ergonomics, the latter also restoring API compatibility in case of UTC date-times.