pub struct BuildSpec {
pub name: String,
pub version: String,
pub channels: Vec<String>,
pub packages: Vec<String>,
pub entrypoint: EntrypointSpec,
pub platform: Platform,
}Expand description
Input spec for bv-builder build, mirroring apko’s declarative format
but adapted for conda packages.
Spec YAML example:
name: samtools
version: 1.19.2
channels:
- https://conda.anaconda.org/bioconda
- https://conda.anaconda.org/conda-forge
packages:
- samtools ==1.19.2
entrypoint:
command: /opt/conda/envs/env/bin/samtools
platform: linux/amd64Fields§
§name: String§version: String§channels: Vec<String>§packages: Vec<String>Package requirements in name ==version form, or just name.
entrypoint: EntrypointSpec§platform: PlatformImplementations§
Source§impl BuildSpec
impl BuildSpec
pub fn package_specs(&self) -> Result<Vec<PackageSpec>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildSpec
impl<'de> Deserialize<'de> for BuildSpec
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 BuildSpec
impl RefUnwindSafe for BuildSpec
impl Send for BuildSpec
impl Sync for BuildSpec
impl Unpin for BuildSpec
impl UnsafeUnpin for BuildSpec
impl UnwindSafe for BuildSpec
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