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
impl Config
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>
pub fn library_full_name(&self) -> String
pub fn filter_version(&self, version: Option<Version>) -> Option<Version>
pub fn find_ext_library( &self, namespace: &Namespace, ) -> Option<&ExternalLibrary>
pub fn min_required_version( &self, env: &Env, ns_id: Option<NsId>, ) -> Option<Version>
pub fn resolve_type_ids(&mut self, library: &Library)
pub fn check_disable_format(&mut self)
Trait Implementations§
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> 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