pub struct Build { /* private fields */ }Implementations§
source§impl Build
impl Build
pub fn new() -> Self
pub fn file<P: AsRef<Path>>(self, p: P) -> Build
pub fn lib_name<P: AsRef<Path>>(self, p: P) -> Build
pub fn flags<F>(self, f: F) -> Buildwhere
F: IntoIterator,
F::Item: AsRef<str>,
pub fn as_static(self) -> Build
pub fn as_dynlib(self) -> Build
sourcepub fn optimiziation(self, opt: Opt) -> Build
pub fn optimiziation(self, opt: Opt) -> Build
Configure the optimization level of the library.
If crate is compiled with debug this defaults to DEBUG,
otherwise it defaults to ReleaseSafe