MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / build_plan

Function build_plan

xtask/src/extension_catalog.rs:440–482  ·  view source on GitHub ↗
(catalog: &ExtensionCatalog)

Source from the content-addressed store, hash-verified

438}
439
440fn build_plan(catalog: &ExtensionCatalog) -> Result<ExtensionBuildPlan> {
441 let specs = build_specs(catalog)?;
442 Ok(ExtensionBuildPlan {
443 format_version: 1,
444 generated_from: vec![
445 CatalogInput {
446 name: "extension-catalog".to_owned(),
447 path: CATALOG_PATH.to_owned(),
448 },
449 CatalogInput {
450 name: "promotion-config".to_owned(),
451 path: PROMOTION_CONFIG_PATH.to_owned(),
452 },
453 CatalogInput {
454 name: "asset-manifest-evidence".to_owned(),
455 path: ASSET_MANIFEST.to_owned(),
456 },
457 ],
458 extensions: specs
459 .into_iter()
460 .map(|spec| ExtensionBuildPlanEntry {
461 id: spec.id,
462 sql_name: spec.sql_name,
463 display_name: spec.display_name,
464 source_kind: spec.source_kind,
465 build_kind: spec.build_kind,
466 source_dir: spec.source_dir,
467 make_args: spec.make_args,
468 contrib_dir: spec.contrib_dir,
469 module_file: spec.module_file,
470 archive: spec.archive,
471 control_file: spec.control_file,
472 stable: spec.stable,
473 dependencies: spec.dependencies,
474 native_dependencies: spec.native_dependencies,
475 load_order: spec.load_order,
476 lifecycle: spec.lifecycle,
477 smoke: spec.smoke,
478 tests: spec.tests,
479 })
480 .collect(),
481 })
482}
483
484fn write_generated_extension_api(catalog: &ExtensionCatalog) -> Result<()> {
485 let promoted = promoted_extensions(catalog);

Callers 2

extensionsFunction · 0.85
build_plan_textsFunction · 0.85

Calls 1

build_specsFunction · 0.85

Tested by

no test coverage detected