{"id":24545392,"url":"https://github.com/bells307/drop-panic","last_synced_at":"2025-07-06T16:06:38.121Z","repository":{"id":228440019,"uuid":"774008237","full_name":"bells307/drop-panic","owner":"bells307","description":"The callback that will be called if the current thread panics","archived":false,"fork":false,"pushed_at":"2024-03-20T06:33:45.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:58:49.102Z","etag":null,"topics":["panic","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bells307.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-18T19:30:39.000Z","updated_at":"2024-10-30T16:52:22.000Z","dependencies_parsed_at":"2024-03-18T21:14:18.288Z","dependency_job_id":"e7e31fb0-9bf7-4e01-bddd-40724464bd5d","html_url":"https://github.com/bells307/drop-panic","commit_stats":null,"previous_names":["bells307/drop-panic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bells307/drop-panic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fdrop-panic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fdrop-panic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fdrop-panic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fdrop-panic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bells307","download_url":"https://codeload.github.com/bells307/drop-panic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fdrop-panic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263932021,"owners_count":23531709,"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":["panic","rust"],"created_at":"2025-01-22T21:19:41.518Z","updated_at":"2025-07-06T16:06:38.097Z","avatar_url":"https://github.com/bells307.png","language":"Rust","readme":"# drop-panic\n\nThe callback that will be called if the current thread panics.\n\n## Example\n```rust\nlet panicked = Arc::new(AtomicBool::new(false));\n\nlet jh = thread::spawn({\n    let panicked = Arc::clone(\u0026panicked);\n    move || {\n        drop_panic! {\n            panicked.store(true, Ordering::Release);\n        };\n\n        panic!(\"boom\");\n    }\n});\n\nassert!(jh.join().is_err());\nassert!(panicked.load(Ordering::Acquire));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbells307%2Fdrop-panic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbells307%2Fdrop-panic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbells307%2Fdrop-panic/lists"}