Module prelude

Source
Expand description

Provides many useful, often use types and functions within assemble

Modules§

dependencies
Describe mechanisms to enable projects to have dependencies
text_factory
Text factory adds some useful traits and factories for producing text.

Macros§

named_attribute
payload_from
provider
create a provider with a function

Structs§

Assemble
Provides a wrapper around the assemble instance that’s running this build.
Executable
The wrapped task itself
PluginManager
Facilities applying plugins and determining which plugins have been applied to a plugin aware object.
Project
The Project contains the tasks, layout information, and other related objects that would help with project building.
ProjectBuilder
Helps to build a project
ProjectDescriptor
A project descriptor is used to define projects.
ProjectGraph
Describes the project graph
ProjectId
How projects are referenced. Unlike tasks, projects don’t have to have parents.
Settings
Declares the configuration required to instantiate and configure the hierarchy of SharedProject which are part of this build. There’s exactly one settings instance that’s created per settings file.
SharedProject
The shared project allows for many projects to share references to the same Project instance.
StartParameter
The start parameters define the configuration used by an assemble instance to execute a build.
TaskId
How tasks are referenced throughout projects.
Workspace

Enums§

BacktraceEmit
The mechanism to emit the backtrace at
ProjectError
StdResult
Result is a type that represents either success (Ok) or failure (Err).

Statics§

ASSEMBLE_HOME
Provides access to the instance of the Assemble home workspace

Traits§

AssembleAware
A type that’s aware it’s part of an assemble build
CreateProject
Trait for creating a project
Plugin
A plugin to apply to the project. All plugins must implement default.
PluginAware
Some value that can have plugins applied to it.
Provider
The provider trait represents an object that can continuously produce a value. Provider values can be chained together using the ProviderExt trait.
ProviderExt
Provides extensions that are not object safe to the Provider trait.
SettingsAware
A type that’s aware of the settings value
Task

Functions§

execute_assemble
Executes some function. If an error is returned by the function, then None is returned and the error is printed to the error output. Otherwise, Some(R) is returned.

Type Aliases§

BuildResult
ProjectResult
Result
A result with a pay-loaded error

Attribute Macros§

plug

Derive Macros§

CreateTask
Creates tasks using default values. Also creates lazy_evaluation using the name of the field
TaskIO
Enables shortcuts for adding inputs and outputs for tasks