pub struct DuneLibrary {
pub name: String,
pub public_name: Option<String>,
pub modules: Vec<String>,
pub libraries: Vec<String>,
pub preprocess: Vec<String>,
pub ocamlopt_flags: Vec<String>,
pub wrapped: bool,
pub inline_tests: bool,
}Expand description
A Dune library stanza.
Fields§
§name: StringLibrary name.
public_name: Option<String>Public name (for installed packages).
modules: Vec<String>Module names.
libraries: Vec<String>Library dependencies.
preprocess: Vec<String>Preprocessor directives.
ocamlopt_flags: Vec<String>Flags passed to ocamlopt/ocamlc.
wrapped: boolWhether to wrap modules.
inline_tests: boolInline tests.
Implementations§
Source§impl DuneLibrary
impl DuneLibrary
Sourcepub fn public_name(self, name: &str) -> Self
pub fn public_name(self, name: &str) -> Self
Set public name.
Sourcepub fn add_module(self, module: &str) -> Self
pub fn add_module(self, module: &str) -> Self
Add a module.
Sourcepub fn with_inline_tests(self) -> Self
pub fn with_inline_tests(self) -> Self
Enable inline tests.
Trait Implementations§
Source§impl Clone for DuneLibrary
impl Clone for DuneLibrary
Source§fn clone(&self) -> DuneLibrary
fn clone(&self) -> DuneLibrary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DuneLibrary
impl RefUnwindSafe for DuneLibrary
impl Send for DuneLibrary
impl Sync for DuneLibrary
impl Unpin for DuneLibrary
impl UnsafeUnpin for DuneLibrary
impl UnwindSafe for DuneLibrary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more