Repository navigation
Add pak v1: format spec, core, remote, wasm and CLI - #2
Merged
Merged
Conversation
Add the pak package manager for retro C and assembly development. - docs/spec rev3.md defines the format; schema/pak.schema.json validates .pak.json. - pak-core holds the format rules (manifest, pack, resolve, lock, install plan, include and path rules, messages) and does no I/O. - pak-remote talks to GitHub for git installs. - pak-wasm exposes pak-core to browser-based tools. - The pak binary implements init, install, remove, update, list, outdated, info, why, it, path, verify, check and create. - tests/stories holds 52 end-to-end user stories with fixtures. - CI runs fmt, clippy, tests and the wasm build on Linux, macOS and Windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add pak v1: format spec, core library, remote, wasm and CLI
Format
docs/spec rev3.md: the format spec (manifest, tags, kinds and profiles, dependencies, installing, build integration, commands, scripts).schema/pak.schema.json: JSON Schema for.pak.json, checked bytests/manifest_schema.rs.Crates
pak-core(crates/core): every format rule (manifest parsing, packing, version resolution, lockfile, install planning, include roots and paths,conflict checks, messages). It does no disk, network or clock I/O;
crates/core/clippy.tomlfails the lint run if it does.pak-remote(crates/remote): GitHub access forgithub:<owner>/<repo>installs.pak-wasm(crates/wasm):pak-corefor browsers.CLI (
src/)init,install,remove,update,list,outdated,info,why,it(pack),path,verify,check,create,help..pakfiles and local folders.pak installkeeps every versionpak.lockpins;--lockedfails on a stale lockfile.--allow-fsnamesis passed.prepackruns only with the author's approval (a terminal prompt or--allow-scripts).Tests
pak-coreand the CLI.tests/stories/: 52 end-to-end user stories with fixtures, run bytests/stories.rs.Tooling
.github/workflows/ci.yml: fmt, clippy (-D warnings), tests on Linux/macOS/Windows, and the wasm32 build.devops/: build, install, tag, version, wasm and wasi scripts.agents/rust-style.md.Not in v1
search,publish,yank,login/logoutTesting
cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace: 352 passed, 3 ignored (disk-full tests that needPAK_SMALL_DISK)cargo build -p pak-wasm --target wasm32-unknown-unknowndevops/wasi