Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

C++ Candid Library

The C++ Candid Library of icpp-pro

  • API Reference
  • It 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.
  • The C++ Candid Library is extensively tested in our QA Canister.
  • Want to contribute? See Contributing.

How to use

C++ Smart Contracts

To write a C++ smart contract that runs in a Canister, you do not use icpp-candid directly, but you install icpp-pro, which is a full-blown C++ Canister Development Kit.

Simply install & Get Started !

C++ Rich Clients

If you want to use the C++ Candid Library in your Rich Client, you need to include it in your application and then compile it to a native executable.

We already do this ourselves as part of icpp-pro to enable interactive debugging with VS Code, as described in debugging with VS Code.

The command we use is:

icpp build-native

Which uses the Clang++ compiler to create a native debug executable named mockic.exe

Contributing

icpp-candid is developed and released together with icpp-pro, cloned inside it as icpp-pro/icpp-candid/. Set up with icpp-pro's Contributors Guide; the tests and fuzzers of this library live in icpp-pro.

  • 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:
    • a local CodeRabbit review of the branch against main (coderabbit review --base main --agent);
    • a code review and a security review of the branch. This library decodes untrusted messages, so the security review matters for every change;
    • icpp-pro's make all-static and the tests of the affected canisters pass, with icpp-pro's nested icpp-candid/ checkout on your branch.
  • CodeRabbit on GitHub also reviews every push to a pull request. Each of its findings gets a fix, or a reply saying why not.
  • The pull request lists each review's findings and what was done about them.
  • A release gets two deeper reviews on top, as described in icpp-pro's release guide.

Support

For support, kindly create a GitHub Issue as outlined in the Support documentation page.

Metadata

Release files for icpp-candid 7.2.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icpp-candid 7.2.0rc1
File Size Uploaded Provenance Actions
icpp_candid-7.2.0rc1.tar.gz 130.0 kB With provenance Details for icpp_candid-7.2.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icpp-candid 7.2.0rc1
File Interpreter ABI Platform Actions
icpp_candid-7.2.0rc1-py3-none-any.whl Python 3 none any Details for icpp_candid-7.2.0rc1-py3-none-any.whl

Total release size: 369.3 kB

Release files / icpp_candid-7.2.0rc1.tar.gz

Download URL icpp_candid-7.2.0rc1.tar.gz
Size 130.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ae63aa649ba1b38194fdf2bc3e6fd4bfc3efd4ac02084a2e213fa97ef0b8e650
BLAKE2b-256 checksum
How to use checksums
b78694394c6bc80745ceb7c6762d6e89bbbc56cadf1f9c643dade2afa78cab1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / icpp_candid-7.2.0rc1-py3-none-any.whl

Download URL icpp_candid-7.2.0rc1-py3-none-any.whl
Size 239.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0eb40153b9103cf8721bbf4044345d00f4e29036a5a242e4030273799322cd12
BLAKE2b-256 checksum
How to use checksums
0415b305b8a7b307cf8c5ec75ea5ccc4457edd2ff25ef0a509f7007e3f17d39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for icpp-candid 7.2.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for icpp_candid-7.2.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page