{"id":24344166,"url":"https://github.com/hoodie/icalendar","last_synced_at":"2026-06-03T01:01:15.916Z","repository":{"id":13262762,"uuid":"58396422","full_name":"hoodie/icalendar","owner":"hoodie","description":"📆 icalendar library, in Rust of course - for fun","archived":false,"fork":false,"pushed_at":"2026-04-04T19:14:30.000Z","size":761,"stargazers_count":183,"open_issues_count":11,"forks_count":45,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-08T07:04:56.353Z","etag":null,"topics":["calendar","icalendar","library","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoodie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-Apache","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-09T17:49:49.000Z","updated_at":"2026-04-04T19:14:37.000Z","dependencies_parsed_at":"2024-06-11T00:00:32.850Z","dependency_job_id":"85399251-581c-48f5-91a8-2ac99dc1c126","html_url":"https://github.com/hoodie/icalendar","commit_stats":{"total_commits":268,"total_committers":12,"mean_commits":"22.333333333333332","dds":"0.18283582089552242","last_synced_commit":"1268fa46689c58ea298a76901545d5ffb4d9e1fb"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/hoodie/icalendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoodie%2Ficalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoodie%2Ficalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoodie%2Ficalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoodie%2Ficalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoodie","download_url":"https://codeload.github.com/hoodie/icalendar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoodie%2Ficalendar/sbom","scorecard":{"id":468858,"data":{"date":"2025-08-11","repo":{"name":"github.com/hoodie/icalendar-rs","commit":"b343d5155c50f284e911a367ccedace3ea6a9f10"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 4/17 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/pull-request.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull-request.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/hoodie/icalendar/pull-request.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-Apache:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-Apache:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T13:15:17.668Z","repository_id":13262762,"created_at":"2025-08-19T13:15:17.669Z","updated_at":"2025-08-19T13:15:17.669Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33843611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","icalendar","library","rust"],"created_at":"2025-01-18T09:05:43.056Z","updated_at":"2026-06-03T01:01:15.901Z","avatar_url":"https://github.com/hoodie.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# iCalendar in Rust\n\n[![build](https://img.shields.io/github/actions/workflow/status/hoodie/icalendar/ci.yml?branch=main)](https://github.com/hoodie/icalendar/actions?query=workflow%3A\"Continuous+Integration\")\n[![Crates.io](https://img.shields.io/crates/d/icalendar)](https://crates.io/crates/icalendar)\n[![contributors](https://img.shields.io/github/contributors/hoodie/icalendar)](https://github.com/hoodie/icalendar/graphs/contributors)\n![maintenance](https://img.shields.io/maintenance/yes/2027)\n\n[![version](https://img.shields.io/crates/v/icalendar)](https://crates.io/crates/icalendar/)\n[![documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://docs.rs/icalendar/)\n[![license](https://img.shields.io/crates/l/icalendar.svg?style=flat)](https://crates.io/crates/icalendar/)\n\nA builder and parser for [`rfc5545`](http://tools.ietf.org/html/rfc5545) iCalendar.\n\n\u003c/div\u003e\n\nYou want to help make this more mature? Please talk to me, Pull Requests and suggestions are very welcome.\n\n## Usage \u0026 Documentation\n\nPlease see the [documentation](https://docs.rs/icalendar/) for current examples.\n\nBelow are a few examples of how to use this library. See the `examples` directory as well as the documentation for many more.\n\n### Building a new Calendar\n\nUse the builder-pattern to assemble the full calendar or event by event.\nDisplay printing produces the rfc5545 format.\n\n```rust\nuse icalendar::{Calendar, CalendarDateTime, Class, Component, Event, EventLike, Property, Todo};\nuse chrono::{Duration, NaiveDate, NaiveTime, Utc};\n\n// let's create a calendar\nlet my_calendar = Calendar::new()\n    .name(\"example calendar\")\n    .push(\n        // add an event\n        Event::new()\n            .summary(\"test event\")\n            .description(\"here I have something really important to do\")\n            .starts(Utc::now())\n            .class(Class::Confidential)\n            .ends(Utc::now() + Duration::days(1))\n            .append_property(\n                Property::new(\"TEST\", \"FOOBAR\")\n                    .add_parameter(\"IMPORTANCE\", \"very\")\n                    .add_parameter(\"DUE\", \"tomorrow\")\n            )\n    )\n    .push(\n        // add a todo\n        Todo::new()\n            .summary(\"groceries\")\n            .description(\"Buy some milk\")\n    )\n    .push(\n        // add an all-day event\n        Event::new()\n            .all_day(NaiveDate::from_ymd_opt(2016, 3, 15).unwrap())\n            .summary(\"My Birthday\")\n            .description(\"Hey, I'm gonna have a party\\nBYOB: Bring your own beer.\\nHendrik\")\n    )\n    .push(\n        // event with utc timezone\n        Event::new()\n            .starts(CalendarDateTime::from(\n                NaiveDate::from_ymd_opt(2024, 10, 24).unwrap()\n                    .and_time(NaiveTime::from_hms_opt(20, 10, 00).unwrap())\n                    .and_utc()\n            ))\n            .summary(\"Birthday Party\")\n            .description(\"I'm gonna have a party\\nBYOB: Bring your own beer.\\nHendrik\")\n    )\n    .done();\n\nprintln!(\"{}\", my_calendar);\n\n```\n\n### Removing Properties from Components\n\nYou can remove properties from components when you need to update their state:\n\n```rust\nuse icalendar::{Calendar, Component, Event, EventStatus, Todo, TodoStatus};\nuse chrono::Utc;\n\n// Create a completed todo\nlet mut todo = Todo::new();\ntodo\n    .summary(\"Buy milk\")\n    .completed(Utc::now())\n    .percent_complete(100)\n    .status(TodoStatus::Completed);\n\n// Later, mark it as uncompleted by removing completion properties\ntodo.mark_uncompleted();\n// This removes COMPLETED, PERCENT-COMPLETE, and STATUS properties\n\n// For events, you can remove specific properties\nlet mut event = Event::new();\nevent\n    .summary(\"Team Meeting\")\n    .status(EventStatus::Cancelled);\n\n// Remove the cancelled status\nevent.remove_status();\n\n// You can also remove any property directly\nevent.remove_property(\"LOCATION\");\n```\n\n### Parsing a Calendar\n\nThere is a feature called `\"parser\"` which allows you to read calendars again like this:\n\n```rust\nuse std::fs::read_to_string;\n\nuse icalendar::{Calendar, CalendarComponent, Component};\n\nlet contents = read_to_string(\"fixtures/icalendar-rb/event.ics\").unwrap();\n\nlet parsed_calendar: Calendar = contents.parse().unwrap();\n\nfor event in parsed_calendar.events() {\n    println!(\"Event: {}\", event.get_summary().unwrap())\n}\n\n```\n\n## Structure\n\nA [`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.\n\n## `RRule` Support\n\nThanks to the [`rrule`](https://crates.io/crates/rrule) crate and [friendly community contribution](https://github.com/hoodie/icalendar/pull/128), you can also add recurrence rules to your events and todos. See the documentation for `Event::recurrence` and `Todo::recurrence` for details.\nWe currently reexport a select subset of `rrule` types. Should you experience compatibility issues because the maintainer (me) has not yet updated `icalendar` to reexport the latest `rrule` version, please feel free to open a PR.\n\n## Contributing\n\nAny help in form of descriptive and friendly [issues](https://github.com/hoodie/icalendar/issues) or comprehensive pull requests are welcome!\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in icalendar by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n### Conventions\n\nThe Changelog of this library is generated from its commit log, there any commit message must conform with \u003chttps://www.conventionalcommits.org/en/v1.0.0/\u003e. For simplicity you could make your commits with [convco](https://crates.io/crates/convco).\n\n### Recognition\n\nThanks goes to these wonderful people:\n\n \u003ca href=\"https://github.com/hoodie/icalendar/graphs/contributors\"\u003e\n   \u003cimg src=\"https://contrib.rocks/image?repo=hoodie/icalendar\" /\u003e\n \u003c/a\u003e\n\n### License\n\n\u003csup\u003e\n`icalendar` (this crate) is licensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoodie%2Ficalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoodie%2Ficalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoodie%2Ficalendar/lists"}