greentic-distributor-dev
Dev-only distributor source that serves packs and components directly from the local filesystem. Useful for running flows locally without publishing packs/components to a remote store.
Layouts
Flat(default)- Packs:
{root}/{packs_dir}/{pack_id}-{version}.gtpack - Components:
{root}/{components_dir}/{component_id}-{version}.wasm
- Packs:
ByIdAndVersion- Packs:
{root}/{packs_dir}/{pack_id}/{version}/pack.gtpack - Components:
{root}/{components_dir}/{component_id}/{version}/component.wasm
- Packs:
Default config points at .greentic/dev with packs and components subdirectories.
Usage
use ;
use ;
let dev_source = new;
let sources = new;
let pack_id = try_from?;
let version = parse?;
let pack_bytes = sources.fetch_pack?;
println!;
Future greentic-dev integration can build packs/components into .greentic/dev/{packs,components} and resolve them via this source without any remote distributor.