Skip to main content

Produced

Struct Produced 

Source
pub struct Produced {
    pub upstream: Vec<Outputs>,
    pub roots: Vec<String>,
    pub declared: Vec<Vec<String>>,
}
Expand description

Paths in node_modules that the lockfile does not key, which a path set keeps: what the tasks a task depends on declare as their outputs, such as a client generated into node_modules/.prisma, and what lies below a directory in node_modules that an upstream output or an includeIgnored fileset reads from, with the directories between such a directory and the node_modules holding it, where a task looks for what was produced. Everything else there is installed.

Fields§

§upstream: Vec<Outputs>

The declared outputs of the tasks the task depends on.

§roots: Vec<String>

Directories naming a node_modules directory, workspace-relative.

§declared: Vec<Vec<String>>

The outputs of the tasks it depends on as they declare them, sorted.

Implementations§

Source§

impl Produced

Source

pub fn new(upstream: Vec<Outputs>, include_ignored: Vec<String>) -> Self

The tasks’ upstream outputs and includeIgnored roots: of the roots, only those in node_modules count, as a project root would hold installed packages too.

Source

pub fn declared(self, declared: Vec<Vec<String>>) -> Self

With the upstream outputs as declared, which Self::weak keys.

Source

pub fn holds(&self, path: &str) -> bool

Whether path, workspace-relative, is produced rather than installed, or a directory in node_modules holding what is.

Source

pub fn lists(&self, path: &str) -> bool

Whether a listing of path, a directory in node_modules, is kept, and whether, as an entry of one, it is listed: what holds what is produced or may come to, as node_modules holds .gen for an output in node_modules/.gen/app, or as a directory below the anchor of an upstream output’s glob holds what it may match. An installed package elsewhere is neither listed nor its listing kept.

Source

pub fn traced(&self, path: &str, operation: &Operation) -> bool

Whether an access to path, in node_modules, is read from a trace at all, and so counts toward its limits: what Self::holds, and where only a listing is kept, as Self::lists says, only listings and writes. An installed package read below where an upstream glob starts is dropped from a path set anyway.

Source

pub fn weak(&self) -> Option<Value>

What decides which paths in node_modules a recording keeps, for the weak key: a path set recorded under other declarations could leave out what this task’s would key. None where nothing does.

Trait Implementations§

Source§

impl Default for Produced

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.