{"id":18495815,"url":"https://github.com/sunjay/rcov","last_synced_at":"2025-05-14T03:15:15.463Z","repository":{"id":72478693,"uuid":"61695552","full_name":"sunjay/rcov","owner":"sunjay","description":"Rust Code Coverage (initial phase of development)","archived":false,"fork":false,"pushed_at":"2016-06-22T07:08:28.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T17:09:50.130Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunjay.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-22T06:45:32.000Z","updated_at":"2022-08-20T05:47:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c218a7b-0ff9-420d-8c07-c31ca8341183","html_url":"https://github.com/sunjay/rcov","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/sunjay%2Frcov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Frcov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Frcov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Frcov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunjay","download_url":"https://codeload.github.com/sunjay/rcov/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212561,"owners_count":19600830,"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-06T13:26:22.971Z","updated_at":"2025-02-16T23:41:40.307Z","avatar_url":"https://github.com/sunjay.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rcov - Rust Code Coverage\n\nBuilding off of the techniques in [this paper](http://www.semdesigns.com/Company/Publications/TestCoverage.pdf), I will build a code\ncoverage tool for Rust, in Rust.\n\n## Installation\nThis won't work until this is properly finished, but I anticipate installation will look something like this:\n\n**Note: This is currently only supported on Rust nightly because the plugin API is not on the stable channel**\n\nAdd the crate to your [`dev-dependencies` section](http://doc.crates.io/specifying-dependencies.html#development-dependencies) in `Cargo.toml`:\n\n```\n[dev-dependencies]\nrcov = \"stable\"\n```\n\nAdd these lines to the top of your executable's main file:\n\n```\n#![feature(plugin)]\n#![plugin(rcov)]\n\n#![coverage]\n```\n\nThese lines enable the required feature, load the plugin and apply the coverage syntax extension to the entire crate.\n\nRunning `cargo test` for your project should now instrument your code and result in a code coverage file being produced.\n\nTODO: There should be some way to make coverage optionally compile only in the test executable (using `cfg(test)`?)\n\n## Build \u0026 Test\nStandard `cargo` commands apply. \n\nUse this to run the example:\n\n```\ncargo run --example sample\n```\n\nUse this to run the tests and the examples too\n```\ncargo test\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay%2Frcov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunjay%2Frcov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay%2Frcov/lists"}