12 releases (breaking)

0.10.0 Feb 12, 2021
0.9.0 Feb 25, 2020
0.8.0 Jan 12, 2020
0.7.1 Nov 24, 2019
0.1.0 Nov 20, 2016

#57 in Date and time

Download history 95/week @ 2021-08-11 322/week @ 2021-08-18 176/week @ 2021-08-25 152/week @ 2021-09-01 147/week @ 2021-09-08 162/week @ 2021-09-15 199/week @ 2021-09-22 326/week @ 2021-09-29 95/week @ 2021-10-06 68/week @ 2021-10-13 90/week @ 2021-10-20 129/week @ 2021-10-27 71/week @ 2021-11-03 52/week @ 2021-11-10 65/week @ 2021-11-17 62/week @ 2021-11-24

262 downloads per month
Used in 3 crates

MIT/Apache

36KB
691 lines

iCalendar in Rust

build Crates.io contributors maintenance

version documentation license

A very simple library to generate rfc5545 calendars. Please double check the spec.

You want to help make this more mature? Please talk to me, Pull Requests and suggestions are very welcome.

Examples

let event = Event::new()
    .summary("test event")
    .description("here I have something really important to do")
    .starts(Utc::now())
    .class(Class::Confidential)
    .ends(Utc::now() + Duration::days(1))
    .append_property(Property::new("TEST", "FOOBAR")
            .add_parameter("IMPORTANCE", "very")
            .add_parameter("DUE", "tomorrow")
            .done())
    .done();

let bday = Event::new()
    .all_day(Utc.ymd(2020, 3, 15))
    .summary("My Birthday")
    .description(
r#"Hey, I'm gonna have a party
BYOB: Bring your own beer.
Hendrik"#
)
    .done();

let todo = Todo::new().summary("Buy some milk").done();


let mut calendar = Calendar::new();
calendar.push(event);
calendar.push(todo);
calendar.push(bday);

License

icalendar-rs is licensed under either of

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.

Dependencies

~1MB
~16K SLoC