Skip to content

refactor: Rename icp to icp-project - #772

Open
adamspofford-dfinity wants to merge 2 commits into
spofford/factor-appfrom
spofford/rename-icp-project
Open

refactor: Rename icp to icp-project#772
adamspofford-dfinity wants to merge 2 commits into
spofford/factor-appfrom
spofford/rename-icp-project

Conversation

@adamspofford-dfinity

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLIGive Feedback 💬

Now that the app half has left, the crate holds only what a project is and
what can be done to one, so `icp` is no longer the name for it — and `icp`
was already the name of the binary, which made `icp::render::plain` in a
tracing target mean the CLI rather than the library.

Mechanical: the directory, the package name, the dependency entries and
every `icp::` path become `icp-project` / `icp_project::`. Tracing targets
named in test assertions are left alone, since those still name the
binary.

The checked-in guidance is brought up to date with the two crates: the
workspace listing, the paths in `architecture.md`, the mock-helper note in
`testing.md` (which now explains the `test-util` feature), and a new
section describing the app/project boundary — which side a thing belongs
on, the four seams that cross it, and why their errors are the one
sanctioned exception to the per-action error-variant rule.
The convention the seam errors actually follow is `#[snafu(transparent)]`,
not a `{source}` display: restating the cause as the wrapper's own message
while still reporting it as a source prints it twice in every chain.

Says so, and says plainly that this is where `transparent` is allowed over a
boxed foreign error, since the rule below otherwise reserves it for this
repo's own error types.
@adamspofford-dfinity
adamspofford-dfinity requested a review from a team as a code owner September 11, 2026 15:05
@adamspofford-dfinity
adamspofford-dfinity added this pull request to stack #777 September 11, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant