msvc-0.1.0 is not a library.
msvc
A tool to automate setup for MSVC projects with vc-ltl and optionally thunk-rs.
Features
- Automatically adds or removes
vc-ltlas a dependency. - Optionally adds or removes
thunk-rsas a build dependency and modifiesbuild.rsto callthunk::thunk()only on MSVC. - Optionally configures or removes the default target to
x86_64-pc-windows-msvc. - Optionally adds or removes all configurations at once.
Installation
Usage
Navigate to your Cargo project directory and run:
# Add or remove vc-ltl dependency
# Add vc-ltl and thunk-rs, and modify build.rs
# or
# Remove thunk-rs dependency and build.rs file (if managed by cargo-msvc)
# or
# Configure default target to x86_64-pc-windows-msvc
# or
# Remove default target configuration
# or
# Add all configurations (vc-ltl, thunk-rs, and target configuration)
# or
# Remove all configurations (vc-ltl, thunk-rs, and target configuration)
# or
This will:
- If no flags are specified:
- If
vc-ltlis not in your project's dependencies, add it. - If
vc-ltlis already in your project's dependencies, remove it.
- If
- If
-tor--thunkis specified:- If
thunk-rsis not in your project's build dependencies, add it and create or updatebuild.rs. - If
thunk-rsis already in your project's build dependencies, remove it and thebuild.rsfile (if managed by cargo-msvc).
- If
- If
-xor--x86-64is specified:- If the default target is not configured to
x86_64-pc-windows-msvc, configure it by creating or updating.cargo/config.toml. - If the default target is already configured to
x86_64-pc-windows-msvc, remove the configuration from.cargo/config.toml.
- If the default target is not configured to
- If
-aor--add-allis specified:- Add
vc-ltldependency. - Add
thunk-rsbuild dependency. - Create or update
build.rs. - Configure default target to
x86_64-pc-windows-msvc.
- Add
- If
-ror--remove-allis specified:- Remove
vc-ltldependency. - Remove
thunk-rsbuild dependency (if present). - Remove
build.rsfile (if managed by cargo-msvc). - Remove target configuration from
.cargo/config.toml(if present).
- Remove
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.