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-ltl
as a dependency. - Optionally adds or removes
thunk-rs
as a build dependency and modifiesbuild.rs
to 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-ltl
is not in your project's dependencies, add it. - If
vc-ltl
is already in your project's dependencies, remove it.
- If
- If
-t
or--thunk
is specified:- If
thunk-rs
is not in your project's build dependencies, add it and create or updatebuild.rs
. - If
thunk-rs
is already in your project's build dependencies, remove it and thebuild.rs
file (if managed by cargo-msvc).
- If
- If
-x
or--x86-64
is 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
-a
or--add-all
is specified:- Add
vc-ltl
dependency. - Add
thunk-rs
build dependency. - Create or update
build.rs
. - Configure default target to
x86_64-pc-windows-msvc
.
- Add
- If
-r
or--remove-all
is specified:- Remove
vc-ltl
dependency. - Remove
thunk-rs
build dependency (if present). - Remove
build.rs
file (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.