Skip to main content

Crate vx_rez_adapter

Crate vx_rez_adapter 

Source
Expand description

vx-rez-adapter bridges vx and rez-next package environments.

The crate is intended to expose two capabilities:

  1. Resolving the environment of one or more rez packages.
  2. Launching a tool as a child process with that environment applied.

Both capabilities are implemented on top of the rez-next SDK:

  • RezAdapter::resolve_env delegates repository discovery, dependency resolution, variant selection, and Rex activation to rez-next-runtime.
  • RezAdapter::launch spawns the program with that environment applied and reports its exit status.

Re-exports§

pub use env::EnvAction;
pub use env::EnvDelta;
pub use env::ResolvedEnv;
pub use env::env_key;
pub use env::path_separator;
pub use error::Error;
pub use error::Result;
pub use launch::LaunchOutcome;
pub use launch::LaunchRequest;
pub use process::which;
pub use resolve::resolve_env;
pub use resolve::resolve_env_async;

Modules§

env
Environment representation produced by a rez resolve.
error
Error and result types for the adapter.
launch
Describing and reporting the launch of a tool inside a resolved environment.
process
Spawning a tool inside a resolved environment.
resolve
Dependency resolution and activation through the Rez Next runtime facade.

Structs§

ResolveRequest
A request to resolve the environment of a set of rez packages.
ResolveTarget
The platform and architecture used to select package variants.
RezAdapter
Resolves rez package environments and launches tools inside them.

Type Aliases§

Environment
An ordered map of environment variable name to value.