Struct vcpkg::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
Configuration options for finding packages, setting up the tree and emitting metadata to cargo
Implementations
Find the package port_name
in a Vcpkg tree.
Emits cargo metadata to link to libraries provided by the Vcpkg package/port named, and any (non-system) libraries that they depend on.
This will select the architecture and linkage based on environment variables and build flags as described in the module docs, and any configuration set on the builder.
Define whether metadata should be emitted for cargo allowing it to
automatically link the binary. Defaults to true
.
Define cargo:include= metadata should be emitted. Defaults to false
.
Should DLLs be copied to OUT_DIR?
Defaults to true
.
Define which path to use as vcpkg root overriding the VCPKG_ROOT environment variable
Default to None
, which means use VCPKG_ROOT or try to find out automatically
Specify target triplet. When triplet is not specified, inferred triplet from rust target is used.
Specifying a triplet using target_triplet
will override the default triplet for this crate. This
cannot change the choice of triplet made by other crates, so a safer choice will be to set
VCPKGRS_TRIPLET
in the environment which will allow all crates to use a consistent set of
external dependencies.
Override the name of the library to look for if it differs from the package name.
It should not be necessary to use lib_name
anymore. Calling find_package
with a package name
will result in the correct library names.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.libname("ssleay32")
will look for ssleay32.lib and also ssleay32.dll if
dynamic linking is selected.
Override the name of the library to look for if it differs from the package name.
It should not be necessary to use lib_names
anymore. Calling find_package
with a package name
will result in the correct library names.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.lib_names("libcurl_imp","curl")
will look for libcurl_imp.lib and also curl.dll if
dynamic linking is selected.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config