{"id":16309555,"url":"https://github.com/denzp/rust-crate-compile-test","last_synced_at":"2025-07-05T19:33:30.236Z","repository":{"id":57611809,"uuid":"131711284","full_name":"denzp/rust-crate-compile-test","owner":"denzp","description":"Rust Crate Compilation Test helper","archived":false,"fork":false,"pushed_at":"2018-06-13T14:31:34.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T12:45:51.688Z","etag":null,"topics":["compilation-testing","rust","rust-crate","testing"],"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/denzp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T12:36:27.000Z","updated_at":"2018-05-21T20:56:12.000Z","dependencies_parsed_at":"2022-09-02T12:20:26.625Z","dependency_job_id":null,"html_url":"https://github.com/denzp/rust-crate-compile-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denzp/rust-crate-compile-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denzp%2Frust-crate-compile-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denzp%2Frust-crate-compile-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denzp%2Frust-crate-compile-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denzp%2Frust-crate-compile-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denzp","download_url":"https://codeload.github.com/denzp/rust-crate-compile-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denzp%2Frust-crate-compile-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263794693,"owners_count":23512559,"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":["compilation-testing","rust","rust-crate","testing"],"created_at":"2024-10-10T21:21:41.896Z","updated_at":"2025-07-05T19:33:30.215Z","avatar_url":"https://github.com/denzp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Crate Compilation Test helper\n\u003e Swiss army knife for `proc-macro` crates testing.\n\n[![Build Status](https://travis-ci.org/denzp/rust-crate-compile-test.svg?branch=master)](https://travis-ci.org/denzp/rust-crate-compile-test)\n[![Current Version](https://img.shields.io/crates/v/crate-compile-test.svg)](https://crates.io/crates/crate-compile-test)\n\n## Purpose\nThe library was highly inspired by [laumann/compiletest-rs](https://github.com/laumann/compiletest-rs), and it's origin [Rust's compiletest](https://github.com/rust-lang/rust/tree/master/src/tools/compiletest).\nDifference between them and this library is that latter lets to test whole crates instead of single compilation units.\n\nThis can be useful if your `proc-macro` uses **cargo** (or **xargo**) or you want to test more complex scenarios.\n\n**There is a lot of work** needs to be done, to get feature parity with the other Rust compilation testing libs, currently planned only:\n\n* Successful Compilation tests\n* Failed Compilation tests\n* Macro Expansion tests\n\n## Installation\nNo third party tools are needed. Just add the library to `dev-dependencies`:\n\n```\n[dev-dependencies]\ncrate-compile-test = \"0.1\"\n```\n\n## Usage\nThe example usage can be found at `example` directory.\n\n### Failed Compilation messages\nExpected messages specification is similar to original [compiletest's specification](https://github.com/rust-lang/rust/blob/master/src/test/COMPILER_TESTS.md#summary-of-error-info-commands), with small addition - you can specify either **error code** or **error message**:\n\n``` rust\nuse mod2::func3; //~ ERROR unresolved import `mod2::func3`\n\nfn func2() -\u003e NonExistingType {\n    0\n}\n//~^^^ ERROR E0433\n```\n\n### Macro Expansion\nTBD","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenzp%2Frust-crate-compile-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenzp%2Frust-crate-compile-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenzp%2Frust-crate-compile-test/lists"}