pub struct BuildScriptOptions { /* private fields */ }
Expand description

Type to store any (optional) options for the build script.

Implementations

Enables and disables dependency collection.

Dependency data is fairly large, which may cause problems, mainly by crashing the build process. If the project compiles successfully with dependency collection enabled, you are probably fine.

Set the build timestamp by hand.

This is mostly important for reproducible builds using only cargo. If possible, consider setting the environment variable SOURCE_DATE_EPOCH instead, which does not require any setup.

Set the build timestamp by hand as nanosecond-precise UNIX timestamp.

This is mostly important for reproducible builds using only cargo. If possible, consider setting the environment variable SOURCE_DATE_EPOCH instead, which does not require any setup.

Consumes the BuildScriptOptions and returns a BuildInfo object. Use this function if you wish to inspect the generated build information in build.rs.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.