{"id":15777081,"url":"https://github.com/healeycodes/coolrule","last_synced_at":"2025-08-31T03:37:40.802Z","repository":{"id":189171200,"uuid":"679463913","full_name":"healeycodes/coolrule","owner":"healeycodes","description":"🧮 Boolean expression evaluation engine. A Rust port of boolrule.","archived":false,"fork":false,"pushed_at":"2024-09-17T21:11:02.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T21:55:30.784Z","etag":null,"topics":["boolean-expression","evaluator","pom"],"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/healeycodes.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}},"created_at":"2023-08-16T22:56:30.000Z","updated_at":"2024-09-18T09:04:48.000Z","dependencies_parsed_at":"2024-09-18T01:41:49.328Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/coolrule","commit_stats":null,"previous_names":["healeycodes/coolrule"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/healeycodes/coolrule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcoolrule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcoolrule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcoolrule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcoolrule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/coolrule/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fcoolrule/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272935876,"owners_count":25018156,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":["boolean-expression","evaluator","pom"],"created_at":"2024-10-04T17:42:26.596Z","updated_at":"2025-08-31T03:37:40.756Z","avatar_url":"https://github.com/healeycodes.png","language":"Rust","readme":"# coolrule\n\n[![Rust](https://github.com/healeycodes/coolrule/actions/workflows/rust.yml/badge.svg)](https://github.com/healeycodes/coolrule/actions/workflows/rust.yml) [![crates.io v1.0.0](https://img.shields.io/badge/crates.io-v1.0.0-brightgreen)](https://crates.io/crates/coolrule)\n\n\u003e My blog post: [Porting Boolrule to Rust](https://healeycodes.com/porting-boolrule-to-rust)\n\n\u003cbr\u003e\n\nBoolean expression evaluation engine (a port of [boolrule](https://github.com/tailsdotcom/boolrule) to Rust).\n\n```rust\n// Without context\nlet expr = coolrule::new(\"1 in (1, 2, 3) or 2 \u003e 3\")?;\nlet test = expr.test()?; // true\n\n// With context\nlet expr = coolrule::new(\"x ∉ (5, 6, 7)\")?;\nlet test = expr.test_with_context(\n    HashMap::from([(vec![\"x\"], Value::Number(8.0))])\n)?; // true\n```\n\nThe boolrule test suite has also been ported (and passes) see `lib.rs`.\n\nExpressions are parsed via PEG parser combinators (powered by [pom](https://github.com/J-F-Liu/pom)).\n\nIt's around 3x faster than the Python version (before any kind of optimization work).\n\nI'm still learning how to write idiomatic Rust so if you see anything strange please let me know!\n\n## Tests\n\n`cargo test`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fcoolrule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Fcoolrule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fcoolrule/lists"}