{"id":19439155,"url":"https://github.com/spacejam/assert_panic_free","last_synced_at":"2025-04-24T22:32:25.373Z","repository":{"id":57497708,"uuid":"344197828","full_name":"spacejam/assert_panic_free","owner":"spacejam","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-03T17:00:18.000Z","size":3,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T01:22:28.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/spacejam.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}},"created_at":"2021-03-03T16:52:49.000Z","updated_at":"2025-04-09T15:13:40.000Z","dependencies_parsed_at":"2022-09-03T23:20:54.919Z","dependency_job_id":null,"html_url":"https://github.com/spacejam/assert_panic_free","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fassert_panic_free","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fassert_panic_free/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fassert_panic_free/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fassert_panic_free/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacejam","download_url":"https://codeload.github.com/spacejam/assert_panic_free/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249228151,"owners_count":21233825,"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":[],"created_at":"2024-11-10T15:21:35.808Z","updated_at":"2025-04-24T22:32:25.143Z","avatar_url":"https://github.com/spacejam.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assert_panic_free\n\nA lightweight higher-order-function that doesn't compile\nif a function you pass to it might panic. This probably\nwont' work unless you're compiling your code with optimizations\nenabled.\n\n# Example\n\nworks when built with optimizations / release:\n\n```no_build\nassert_panic_free::assert_panic_free(|| 32);\n```\n\ndoesn't work:\n\n```compile_fail\nassert_panic_free(|| panic!(\":(\"));\n```\n\nInspired by [no_panic](https://github.com/dtolnay/no-panic) and [panic_never](https://github.com/japaric/panic-never) but I wanted something that allowed for fine-grained panic reduction (like no_panic) but also something that compiled fast (like panic_never).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fassert_panic_free","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacejam%2Fassert_panic_free","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fassert_panic_free/lists"}