pray-core 1.26.1

Prayfile core library — package manager for the language placed before inference
Documentation

pray-core

Core library for Prayfile: a package manager for the language placed before inference.

Resolve, lock, render, verify, and publish shared instructions, policies, templates, and related input as versioned packages. This is the shared engine used by the pray CLI (pray-cli on crates.io).

Install

[dependencies]
pray-core = "1.5"

The default auth feature enables local registry authentication storage (SQLite). For a slim build:

pray-core = { version = "1.5", default-features = false }

Embedder API

Import pray_core::embed (RFC 0109). That module is the supported library surface for parse, resolve, lock, render, and verify. inspect_locked_destinations checks dest files against Prayfile.lock without resolving packages (RFC 0106). Other public modules remain for the in-tree CLI.

use pray_core::embed::{parse_lockfile, parse_manifest};

let manifest = parse_manifest("prayfile \"1\"\n").expect("manifest");
assert_eq!(manifest.prayfile_version, "1");
let _ = parse_lockfile;

Links