| Crates.io | msvc |
| lib.rs | msvc |
| version | 0.1.0 |
| created_at | 2025-08-26 07:49:14.217659+00 |
| updated_at | 2025-08-26 07:49:14.217659+00 |
| description | A tool to automate setup for MSVC projects with vc-ltl and thunk-rs. |
| homepage | https://github.com/ba0ge/msvc |
| repository | https://github.com/ba0ge/msvc |
| max_upload_size | |
| id | 1810662 |
| size | 49,689 |
A tool to automate setup for MSVC projects with vc-ltl and optionally thunk-rs.
vc-ltl as a dependency.thunk-rs as a build dependency and modifies build.rs to call thunk::thunk() only on MSVC.x86_64-pc-windows-msvc.cargo install msvc
Navigate to your Cargo project directory and run:
# Add or remove vc-ltl dependency
msvc
# Add vc-ltl and thunk-rs, and modify build.rs
msvc -t
# or
msvc --thunk
# Remove thunk-rs dependency and build.rs file (if managed by cargo-msvc)
msvc -t
# or
msvc --thunk
# Configure default target to x86_64-pc-windows-msvc
msvc -x
# or
msvc --x86-64
# Remove default target configuration
msvc -x
# or
msvc --x86-64
# Add all configurations (vc-ltl, thunk-rs, and target configuration)
msvc -a
# or
msvc --add-all
# Remove all configurations (vc-ltl, thunk-rs, and target configuration)
msvc -r
# or
msvc --remove-all
This will:
vc-ltl is not in your project's dependencies, add it.vc-ltl is already in your project's dependencies, remove it.-t or --thunk is specified:
thunk-rs is not in your project's build dependencies, add it and create or update build.rs.thunk-rs is already in your project's build dependencies, remove it and the build.rs file (if managed by cargo-msvc).-x or --x86-64 is specified:
x86_64-pc-windows-msvc, configure it by creating or updating .cargo/config.toml.x86_64-pc-windows-msvc, remove the configuration from .cargo/config.toml.-a or --add-all is specified:
vc-ltl dependency.thunk-rs build dependency.build.rs.x86_64-pc-windows-msvc.-r or --remove-all is specified:
vc-ltl dependency.thunk-rs build dependency (if present).build.rs file (if managed by cargo-msvc)..cargo/config.toml (if present).Licensed under either of
at your option.