10 releases (breaking)

✓ Uses Rust 2018 edition

0.8.0 Jan 12, 2020
0.7.1 Nov 24, 2019
0.6.0 Mar 9, 2019
0.5.0 Dec 21, 2018
0.1.0 Nov 20, 2016

#22 in Date and time

Download history 11/week @ 2019-10-05 13/week @ 2019-10-12 40/week @ 2019-10-19 87/week @ 2019-10-26 17/week @ 2019-11-02 4/week @ 2019-11-09 15/week @ 2019-11-16 67/week @ 2019-11-23 1/week @ 2019-11-30 67/week @ 2019-12-07 12/week @ 2019-12-14 8/week @ 2019-12-21 9/week @ 2019-12-28 9/week @ 2020-01-04 181/week @ 2020-01-11

118 downloads per month
Used in 1 crate

MIT/Apache

31KB
602 lines

iCalendar in Rust

Travis license Crates.io version documentation maintenance contributors

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

~1.5MB
~19K SLoC