Struct cpp_to_rust_build_tools::Config [] [src]

pub struct Config { /* fields omitted */ }

Configuration of the build script.

Methods

impl Config
[src]

[src]

Constructs default configuration state based on information in the generated build_script_data.json file located at the crate root. The caller may change CppBuildPaths and CppBuildConfig values stored in this object and call config.run() to apply them.

[src]

Returns version of the native C++ library used for generating this crate. This is the value set with Config::set_cpp_lib_version during generation, or None if the version was not set.

[src]

Returns current CppBuildConfig data.

[src]

Returns mutable CppBuildConfig data.

[src]

Sets new CppBuildConfig data.

[src]

Returns current CppBuildPaths data.

[src]

Returns mutable CppBuildPaths data.

[src]

Sets new CppBuildPaths data.

[src]

Same as run(), but result of the operation is returned to the caller.

[src]

Starts build script with current configuration. The build script performs the following operations:

  • Build the C++ wrapper library;
  • Generate ffi.rs file with actual link attributes;
  • Determine C++ type sizes on current platform and generate type_sizes.rs;
  • Report linking information to cargo.

This function ends the process with the appropriate error code and never returns to the caller.

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.