pub enum LinkType {
Default,
Dynamic,
Static,
}
Expand description
Specifies how a dependency library is linked.
Variants§
Default
Cargo is instructed to link the library without specifying/overriding how linking is
performed. If an environment variable LIBNAME_STATIC
is present, the dependency will be
statically linked. (This way, downstream consumers of the crate may influence how the
dependency is linked without modifying the build script and/or features.)
Cargo is instructed to automatically rerun the build script if an environment variable by
this name exists; you do not have to call rebuild_if_env_changed()
yourself.
Dynamic
Cargo will be instructed to explicitly dynamically link against the target library, overriding the default configuration specified by the configuration or the toolchain.
Static
Cargo will be instructed to explicitly statically link against the target library, overriding the default configuration specified by the configuration or the toolchain.