iCalendar in Rust
A builder and parser for rfc5545 iCalendar.
You want to help make this more mature? Please talk to me, Pull Requests and suggestions are very welcome.
Examples
Below are two examples of how to use this library. See the examples directory as well as the documentation for many more.
Building a new Calendar
Use the builder-pattern to assemble the full calendar or event by event. Display printing produces the rfc5545 format.
use ;
use ;
// let's create a calendar
let my_calendar = new
.name
.push
.push
.push
.push
.done;
println!;
Parsing a Calendar
There is a feature called "parser" which allows you to read calendars again like this:
use read_to_string;
use ;
let contents = read_to_string.unwrap;
let parsed_calendar: Calendar = contents.parse.unwrap;
for component in &parsed_calendar.components
Structure
A [Calendar] represents a full calendar, which contains multiple [Component]s. These may be either [Event]s, [Todo]s, or [Venue]s. Components in turn have [Property]s, which may have [Parameter]s.
License
icalendar-rs is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Any help in form of descriptive and friendly issues or comprehensive pull requests are welcome!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in icalendar-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.