{"id":16760151,"url":"https://github.com/maulingmonkey/cargo-vs","last_synced_at":"2025-03-21T23:32:15.964Z","repository":{"id":57540546,"uuid":"303240549","full_name":"MaulingMonkey/cargo-vs","owner":"MaulingMonkey","description":"autogenerate visual studio solutions / projects","archived":false,"fork":false,"pushed_at":"2023-10-15T09:31:59.000Z","size":24,"stargazers_count":18,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-14T04:22:30.734Z","etag":null,"topics":["2017","cargo","rust","studio","visual","vs"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaulingMonkey.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-12T00:42:37.000Z","updated_at":"2024-08-16T15:14:28.000Z","dependencies_parsed_at":"2023-01-29T23:30:32.556Z","dependency_job_id":null,"html_url":"https://github.com/MaulingMonkey/cargo-vs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2Fcargo-vs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2Fcargo-vs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2Fcargo-vs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaulingMonkey%2Fcargo-vs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaulingMonkey","download_url":"https://codeload.github.com/MaulingMonkey/cargo-vs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820520,"owners_count":16886214,"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":["2017","cargo","rust","studio","visual","vs"],"created_at":"2024-10-13T04:22:33.409Z","updated_at":"2024-10-28T11:12:49.022Z","avatar_url":"https://github.com/MaulingMonkey.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-vs • autogenerate visual studio solutions / projects\n\n[![GitHub](https://img.shields.io/github/stars/MaulingMonkey/cargo-vs.svg?label=GitHub\u0026style=social)](https://github.com/MaulingMonkey/cargo-vs)\n[![crates.io](https://img.shields.io/crates/v/cargo-vs.svg)](https://crates.io/crates/cargo-vs)\n[![%23![forbid(unsafe_code)]](https://img.shields.io/github/search/MaulingMonkey/cargo-vs/unsafe%2bextension%3Ars?color=green\u0026label=%23![forbid(unsafe_code)])](https://github.com/MaulingMonkey/cargo-vs/search?q=forbid%28unsafe_code%29+extension%3Ars)\n[![rust: stable](https://img.shields.io/badge/rust-stable-yellow.svg)](https://gist.github.com/MaulingMonkey/c81a9f18811079f19326dac4daa5a359#minimum-supported-rust-versions-msrv)\n[![License](https://img.shields.io/crates/l/cargo_vs.svg)](https://github.com/MaulingMonkey/cargo-vs)\n[![Build Status](https://github.com/MaulingMonkey/cargo-vs/workflows/Rust/badge.svg)](https://github.com/MaulingMonkey/cargo-vs/actions?query=workflow%3Arust)\n\n\n\n\u003ch2 name=\"quickstart\"\u003eQuickstart\u003c/h2\u003e\n\n```cmd\ncd my-rust-project\ncargo install cargo-vs\ncargo vs2017\n\"%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\devenv.exe\" vs\\vs2017.sln\n```\n\n\n\n\u003ch2 name=\"generated\"\u003eWhat's generated?\u003c/h2\u003e\n\n`vs/.gitignore` since many/most projects don't want .vsode boilerplate checked in IME (although I always provide mine)\u003cbr\u003e\n`vs/vs2017.sln`\u003cbr\u003e\n`vs/vs2017/*.vcsproj` - Makefile style projects which will invoke `cargo +stable-%ARCH%-pc-windows-msvc build --target %ARCH%-pc-windows-msvc --package [package] [--bin|--example] [target] [--release]`\u003cbr\u003e\n\n\n\n\u003ch2 name=\"caveat-32-bit-toolchains\"\u003eCaveat: 32-bit (x86/Win32) builds require an i686 toolchain\u003c/h2\u003e\n\nWhen MSVC configures a build environment, rustc will pick up the `%PATH%` provided `link.exe`.\u003cbr\u003e\nOn the plus side, this means it should work for new VS versions rustc doesn't recognize.\u003cbr\u003e\nOn the minus side, this means that `build.rs` and your target use the same linker, and must match architectures.\u003cbr\u003e\nThis could be \"fixed\" by clearing a bunch of environment variables, but...\n\n\n\n\u003ch2 name=\"why-not-dot-vs\"\u003eWhy makefile projects instead of .vs/*.vs.json?\u003c/h2\u003e\n\n* Easier to retrofit support for legacy Visual Studio versions\n* Presumably easier to integrate into your existing C++/C# msbuild mess\n* I can't figure out how to launch the graphics debugger with .vs/*\n* Proper build matricies\n\n\n\n\u003ch2 name=\"license\"\u003eLicense\u003c/h2\u003e\n\nLicensed under either of\n\n* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n\n\n\u003ch2 name=\"contribution\"\u003eContribution\u003c/h2\u003e\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulingmonkey%2Fcargo-vs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaulingmonkey%2Fcargo-vs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaulingmonkey%2Fcargo-vs/lists"}