{"id":16872363,"url":"https://github.com/robjtede/rustversion-msrv","last_synced_at":"2025-04-11T11:09:51.629Z","repository":{"id":239464383,"uuid":"799618626","full_name":"robjtede/rustversion-msrv","owner":"robjtede","description":"Conditional compilation according to rustc compiler version + MSRV support","archived":false,"fork":false,"pushed_at":"2024-07-22T00:28:17.000Z","size":248,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T00:12:46.695Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robjtede.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"robjtede"}},"created_at":"2024-05-12T17:12:58.000Z","updated_at":"2024-07-22T00:28:19.000Z","dependencies_parsed_at":"2024-05-15T21:58:19.378Z","dependency_job_id":"c96478e2-58cd-467a-8f8f-8f3a31477878","html_url":"https://github.com/robjtede/rustversion-msrv","commit_stats":null,"previous_names":["robjtede/rustversion-msrv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Frustversion-msrv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Frustversion-msrv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Frustversion-msrv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robjtede%2Frustversion-msrv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robjtede","download_url":"https://codeload.github.com/robjtede/rustversion-msrv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381789,"owners_count":21094528,"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-10-13T15:14:32.264Z","updated_at":"2025-04-11T11:09:51.597Z","avatar_url":"https://github.com/robjtede.png","language":"Rust","funding_links":["https://github.com/sponsors/robjtede"],"categories":[],"sub_categories":[],"readme":"\u003e Conditional compilation according manifest MSRV.\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[![crates.io](https://img.shields.io/crates/v/rustversion-msrv?label=latest)](https://crates.io/crates/rustversion-msrv)\n[![Documentation](https://docs.rs/rustversion-msrv/badge.svg?version=0.100.0)](https://docs.rs/rustversion-msrv/0.100.0)\n![Version](https://img.shields.io/badge/rustc-1.63+-ab6000.svg)\n![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/rustversion-msrv.svg)\n\u003cbr /\u003e\n[![dependency status](https://deps.rs/crate/rustversion-msrv/0.100.0/status.svg)](https://deps.rs/crate/rustversion-msrv/0.100.0)\n![Download](https://img.shields.io/crates/d/rustversion-msrv.svg)\n\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- cargo-rdme start --\u003e\n\nConditional compilation according manifest MSRV.\n\n# Selectors\n\n- `#[rustversion_msrv::msrv]`\n\n  True on the **call-site** crate's `rust-version` field, i.e., its minimum supported Rust\n  version (MSRV).\n\n# Use Cases\n\nThe motivating use case for the `msrv` macro in this crate is to ensure a stable compiler error\noutput when running negative trybuild tests. Guarding your test function like this means you\nonly need to update the .stderr files when you bump your MSRV, not (potentially) every stable\nrelease (or worse). Of course, try make sure that your CI is actually running an MSRV job in its\nset.\n\n```rust\n#[rustversion_msrv::msrv]\n#[test]\nfn trybuild() {\n   // ...\n}\n```\n\n\u003c!-- cargo-rdme end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobjtede%2Frustversion-msrv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobjtede%2Frustversion-msrv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobjtede%2Frustversion-msrv/lists"}