Struct libgir::Config

source ·
pub struct Config {
Show 25 fields pub work_mode: WorkMode, pub girs_dirs: Vec<PathBuf>, pub girs_version: Vec<GirVersion>, pub library_name: String, pub library_version: String, pub target_path: PathBuf, pub auto_path: PathBuf, pub doc_target_path: PathBuf, pub external_libraries: Vec<ExternalLibrary>, pub objects: BTreeMap<String, GObject>, pub min_cfg_version: Version, pub use_gi_docgen: bool, pub make_backup: bool, pub generate_safety_asserts: bool, pub deprecate_by_min_version: bool, pub show_statistics: bool, pub concurrency: Concurrency, pub single_version_file: Option<PathBuf>, pub trust_return_value_nullability: bool, pub disable_format: bool, pub split_build_rs: bool, pub extra_versions: Vec<Version>, pub lib_version_overrides: HashMap<Version, Version>, pub feature_dependencies: HashMap<Version, Vec<String>>, pub external_docs_url: Option<String>,
}

Fields§

§work_mode: WorkMode§girs_dirs: Vec<PathBuf>§girs_version: Vec<GirVersion>§library_name: String§library_version: String§target_path: PathBuf§auto_path: PathBuf

Path where files generated in normal and sys mode

§doc_target_path: PathBuf§external_libraries: Vec<ExternalLibrary>§objects: BTreeMap<String, GObject>§min_cfg_version: Version§use_gi_docgen: bool§make_backup: bool§generate_safety_asserts: bool§deprecate_by_min_version: bool§show_statistics: bool§concurrency: Concurrency§single_version_file: Option<PathBuf>§trust_return_value_nullability: bool§disable_format: bool§split_build_rs: bool§extra_versions: Vec<Version>§lib_version_overrides: HashMap<Version, Version>§feature_dependencies: HashMap<Version, Vec<String>>§external_docs_url: Option<String>

An url that will be inserted into the docs as link that links to another doc source, for example when builds on docs.rs are limited due to license issues.

Implementations§

source§

impl Config

source

pub fn new<'a, S, W>( config_file: S, work_mode: W, girs_dirs: &[String], library_name: S, library_version: S, target_path: S, doc_target_path: S, make_backup: bool, show_statistics: bool, disable_format: bool, ) -> Result<Self, String>
where S: Into<Option<&'a str>>, W: Into<Option<WorkMode>>,

source

pub fn library_full_name(&self) -> String

source

pub fn filter_version(&self, version: Option<Version>) -> Option<Version>

source

pub fn find_ext_library( &self, namespace: &Namespace, ) -> Option<&ExternalLibrary>

source

pub fn min_required_version( &self, env: &Env, ns_id: Option<NsId>, ) -> Option<Version>

source

pub fn resolve_type_ids(&mut self, library: &Library)

source

pub fn check_disable_format(&mut self)

Trait Implementations§

source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.