pub struct ProjectConfig {
pub name: String,
pub registries: HashMap<String, RegistrySpec>,
pub packages: Vec<PackageCheck>,
pub pkgs: Vec<String>,
pub pkgs_v2: HashMap<String, PackageSpec>,
pub config: ProjectLocalConfig,
pub commands: Vec<CommandSpec>,
pub environments: Vec<EnvironmentSpec>,
pub shell: Option<ShellSpec>,
}Expand description
Represents the combined evaluation of a project’s zoi.lua and zoi.yaml configuration.
This struct acts as the central definition for a project environment. It unifies:
- The scriptable package and registry requirements defined in
zoi.lua. - The declarative task (
commands) andenvironmentsdefined inzoi.yaml.
Fields§
§name: StringThe name of the project.
registries: HashMap<String, RegistrySpec>Registries scoped specifically to this project.
packages: Vec<PackageCheck>Declarative package checks (legacy v1).
pkgs: Vec<String>A flat list of simple package dependencies.
pkgs_v2: HashMap<String, PackageSpec>A map of packages defining explicit version requirements and options.
config: ProjectLocalConfigProject-local configuration overrides (e.g. --local isolation).
commands: Vec<CommandSpec>Declared task aliases and their underlying scripts.
environments: Vec<EnvironmentSpec>Full environment setup groups.
shell: Option<ShellSpec>Ephemeral shell configurations.
Trait Implementations§
Source§impl Clone for ProjectConfig
impl Clone for ProjectConfig
Source§fn clone(&self) -> ProjectConfig
fn clone(&self) -> ProjectConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectConfig
impl Debug for ProjectConfig
Source§impl<'de> Deserialize<'de> for ProjectConfig
impl<'de> Deserialize<'de> for ProjectConfig
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 ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnsafeUnpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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