Skip to content
icppWorldPublic

About

C++ Canister Development Kit

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

icpp-pro icpp-pro

C++ Canister Development Kit

icpp-pro is a cdk to develop C++ smart contracts for the Internet Computer.

Its Candid library is 100% compliant with the Candid Interface Specification (spec 0.1.8, dfinity/candid@572c80a), within its limits: it decodes every message of the spec, and encodes every value, recursive types included, to the bytes of the reference implementation. All 472 asserts of the official suite pass, and all 1190 with the Candid tests of the Rust and Motoko CDKs. See Candid compliance.

In the wild

Check out these real world on-chain AI examples build with icpp-pro:


Installation

pip install icpp-pro

Documentation

See the icpp-pro documentation.

Source Code

The source code is open source and available at:

Contributing

  • Set up with the Contributors Guide. The Feature Guide describes how a change is planned, tested and released.
  • Work on a branch and open a pull request into main. Every pull request needs a manual approval from the maintainer before it merges.
  • Before each push to a pull request:
    • on a larger change (over ~200 lines), /simplify first;
    • /code-review and /security-review of the branch, each repeated until a round leaves nothing to address. Pass each round the findings already decided, so it does not redo them; when a round only reverses an earlier one, record the choice and stop;
    • make all-static and the tests of the affected canisters pass.
  • CI runs the full test suite on every icpp-pro push that changes code, and siblings-verify (icpp-docs and icpp-demos against the branch) on every icpp-pro push that changes its source, scripts or build files. icpp-candid has no CI of its own: for an icpp-candid change, push its branch first, then icpp-pro's branch of the same name. A workflow that this push did not start (its paths did not change), or that started before the icpp-candid branch existed, you start on icpp-pro's branch by hand, without ref overrides, and watch it; it cancels the earlier run of that workflow on that branch. The workflows are cicd-ubuntu, cicd-mac, cicd-wheel-test and siblings-verify: id=$(gh workflow run <workflow>.yml -R icppWorld/icpp-pro --ref <branch> | grep -o 'runs/[0-9]*' | cut -d/ -f2); sleep 10; gh run watch --interval 60 -R icppWorld/icpp-pro $id. Until they pass, the icpp-candid pull request has not been tested.
  • The required checks (all-ubuntu, all-mac) count only from runs a push starts; a run started by hand does not satisfy them. A push that changes no code path starts none, so give each such push to a pull request a one-line change to .github/trigger.txt.
  • Nothing heavier than the affected canisters runs on a laptop, except the upgrade gate (make upgrade-test).
  • CodeRabbit on GitHub reviews each pull request when it opens. Each of its findings gets a fix, or a reply saying why not. Ask it for a re-review (@coderabbitai review) only after a code fix of a real finding. It does not block a merge: when it is rate-limited or slow, the pull request merges on the clean reviews above, and says so.
  • The pull request lists each review's findings and what was done about them.
  • A change to CLAUDE.md or to the skills in .claude/skills/ also gets a prompt audit (/claude-api prompt-audit).
  • A release gets two deeper reviews on top: see the release guide.

Community

Please join our C++ community on OpenChat

About

C++ Canister Development Kit

Resources

Stars

10 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages