{"id":18443215,"url":"https://github.com/mkroening/interrupts","last_synced_at":"2025-06-11T05:38:02.075Z","repository":{"id":195541677,"uuid":"693202396","full_name":"mkroening/interrupts","owner":"mkroening","description":"Cross-architecture utilities for temporarily disabling interrupts and signals.","archived":false,"fork":false,"pushed_at":"2025-05-17T14:29:00.000Z","size":51,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T15:31:19.581Z","etag":null,"topics":["interrupts","osdev","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/interrupts","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/mkroening.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-09-18T14:51:23.000Z","updated_at":"2025-05-17T14:28:58.000Z","dependencies_parsed_at":"2023-09-18T15:21:11.965Z","dependency_job_id":"22516517-f5ba-4b31-9d13-01428882097a","html_url":"https://github.com/mkroening/interrupts","commit_stats":null,"previous_names":["mkroening/interrupts"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Finterrupts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Finterrupts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Finterrupts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Finterrupts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkroening","download_url":"https://codeload.github.com/mkroening/interrupts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Finterrupts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259209960,"owners_count":22822275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["interrupts","osdev","rust"],"created_at":"2024-11-06T06:46:40.481Z","updated_at":"2025-06-11T05:38:02.033Z","avatar_url":"https://github.com/mkroening.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# interrupts\n\n[![Crates.io](https://img.shields.io/crates/v/interrupts)](https://crates.io/crates/interrupts)\n[![docs.rs](https://img.shields.io/docsrs/interrupts)](https://docs.rs/interrupts)\n[![CI](https://github.com/mkroening/interrupts/actions/workflows/ci.yml/badge.svg)](https://github.com/mkroening/interrupts/actions/workflows/ci.yml)\n\nCross-architecture utilities for temporarily disabling interrupts and signals.\n\nUse [`disable`] to disable interrupts with a guard:\n\n```rust\n// interrupts may or may not be enabled\nlet guard = interrupts::disable();\n// interrupts are disabled\ndrop(guard);\n// interrupts are restored to the previous state\n```\n\nUse [`without`] to run a closure with disabled interrupts:\n\n```rust\n// interrupts may or may not be enabled\ninterrupts::without(|| {\n    // interrupts are disabled\n});\n// interrupts are restored to the previous state\n```\n\nFor API documentation, see the [docs].\n\n[`disable`]: https://docs.rs/interrupts/latest/interrupts/fn.disable.html\n[`without`]: https://docs.rs/interrupts/latest/interrupts/fn.without.html\n[docs]: https://docs.rs/interrupts\n\n## Related Crates\n\n- [interrupt-ref-cell] (A `RefCell` for sharing data with interrupt handlers or signal handlers on the same thread.)\n- [interrupt-mutex] (A mutex for sharing data with interrupt handlers or signal handlers.)\n\n[interrupt-ref-cell]: https://crates.io/crates/interrupt-ref-cell\n[interrupt-mutex]: https://crates.io/crates/interrupt-mutex\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkroening%2Finterrupts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkroening%2Finterrupts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkroening%2Finterrupts/lists"}