{"id":18716669,"url":"https://github.com/immunant/rexpat","last_synced_at":"2025-04-12T13:31:29.274Z","repository":{"id":48380210,"uuid":"233701665","full_name":"immunant/rexpat","owner":"immunant","description":"Rust ❤️  Expat library","archived":false,"fork":false,"pushed_at":"2021-08-07T04:28:47.000Z","size":3661,"stargazers_count":22,"open_issues_count":13,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-26T08:13:08.935Z","etag":null,"topics":["expat","expat-xml-parser","library","rust","rust-library","xml","xml-parser","xml-parser-lib"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/immunant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-13T21:55:16.000Z","updated_at":"2022-08-24T19:51:28.000Z","dependencies_parsed_at":"2022-08-26T02:32:05.014Z","dependency_job_id":null,"html_url":"https://github.com/immunant/rexpat","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/immunant%2Frexpat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immunant%2Frexpat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immunant%2Frexpat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/immunant%2Frexpat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/immunant","download_url":"https://codeload.github.com/immunant/rexpat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248573460,"owners_count":21126837,"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":["expat","expat-xml-parser","library","rust","rust-library","xml","xml-parser","xml-parser-lib"],"created_at":"2024-11-07T13:13:22.342Z","updated_at":"2025-04-12T13:31:28.692Z","avatar_url":"https://github.com/immunant.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://dev.azure.com/immunant/rexpat/_apis/build/status/immunant.rexpat?branchName=master)](https://dev.azure.com/immunant/rexpat/_build/latest?definitionId=2\u0026branchName=master)\n\n# Rexpat: a libexpat compatible Rust crate\n\nThis project is a work-in-progress conversion from unsafe Rust transpiled directly from libexpat into safe, idiomatic Rust code. The initial transpilation and refactoring was done using [C2Rust](https://github.com/immunant/c2rust).\n\nDo **not** use this in production (yet!), but help refactoring and rewriting is always welcome.\n\n## Building\n\nRequirements: Linux host with [`rustup`](https://rustup.rs/) installed. To run tests, you'll also need to install the requirements of libexpat (autoconf 2.58 or newer, make, and a recent C toolchain).\n\n    $ git clone --recurse-submodules https://github.com/immunant/rexpat\n    $ cd rexpat \u0026\u0026 cargo build\n\n## Testing\nUnit testing:    \n    \n    $ cargo test\n\nDownload the W2C XML test suite to `/tmp/libexpat/xml-test-suite` and run\n\n    $ ./test_w2c.sh \n\nTo perform additional testing. \n\n## Benchmarking\n\n*NOTE:* Requires that you build `$REXPAT_ROOT/upstream/expat/tests/benchmark/benchmark` first. See steps and requirements [here](https://github.com/libexpat/libexpat/). You must also have `python3` (Python 3.6 or later) in your path.\n\n    $ ./src/tests/bench_c_vs_rust.py\n\n## Goals\n\n- Provide an ABI-compatible drop-in replacement for `libexpat`\n- Avoid memory-corruption vulnerabilities via Rust's safety guarantees.\n- Perform on par with the `libexpat` in time and space.\n\n\n## License\n\n`rexpat` is free software licensed similarly to `libexpat`. You may copy, distribute, and modify it under the terms of the License contained in the file [COPYING](https://github.com/immunant/rexpat/blob/master/COPYING) distributed with this package. This license is the same as the MIT/X Consortium license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmunant%2Frexpat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimmunant%2Frexpat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmunant%2Frexpat/lists"}