pub struct ConfigFile {
pub package: PackageDescription,
pub apps: Option<Vec<AppFile>>,
pub library: Option<LibraryFile>,
pub dependencies: HashMap<String, PackageDetails>,
}Expand description
The Lingo.toml format is defined by this struct
Fields§
§package: PackageDescriptiontop level package description
apps: Option<Vec<AppFile>>list of apps defined inside this package
library: Option<LibraryFile>library exported by this Lingo Toml
dependencies: HashMap<String, PackageDetails>Dependencies for required to build this Lingua-Franca Project
Implementations§
Source§impl ConfigFile
impl ConfigFile
pub fn new_for_init_task(init_args: &InitArgs) -> Result<ConfigFile>
pub fn write(&self, path: &Path) -> Result<()>
pub fn from(path: &Path, fsr: FsReadCapability<'_>) -> Result<ConfigFile>
pub fn setup_native(&self, target_language: TargetLanguage) -> BuildResult
pub fn setup_example( &self, platform: Platform, target_language: TargetLanguage, git_clone_capability: &GitCloneAndCheckoutCap<'_>, ) -> BuildResult
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 moreSource§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnwindSafe for ConfigFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more