| Crates.io | greentic-distributor-dev |
| lib.rs | greentic-distributor-dev |
| version | 0.4.26 |
| created_at | 2025-12-08 17:59:59.707017+00 |
| updated_at | 2026-01-17 11:41:04.847702+00 |
| description | Dev-only distributor source that serves packs and components from the local filesystem. |
| homepage | https://github.com/greentic |
| repository | https://github.com/greentic/greentic-distributor-client |
| max_upload_size | |
| id | 1974147 |
| size | 99,245 |
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.
Flat (default)
{root}/{packs_dir}/{pack_id}-{version}.gtpack{root}/{components_dir}/{component_id}-{version}.wasmByIdAndVersion
{root}/{packs_dir}/{pack_id}/{version}/pack.gtpack{root}/{components_dir}/{component_id}/{version}/component.wasmDefault config points at .greentic/dev with packs and components subdirectories.
use greentic_distributor_client::{ChainedDistributorSource, DistributorSource, PackId, Version};
use greentic_distributor_dev::{DevConfig, DevDistributorSource};
let dev_source = DevDistributorSource::new(DevConfig::default());
let sources = ChainedDistributorSource::new(vec![Box::new(dev_source)]);
let pack_id = PackId::try_from("dev.local.hello-flow")?;
let version = Version::parse("0.1.0")?;
let pack_bytes = sources.fetch_pack(&pack_id, &version)?;
println!("loaded {} bytes", pack_bytes.len());
Future greentic-dev integration can build packs/components into .greentic/dev/{packs,components} and resolve them via this source without any remote distributor.