Skip to main content

C++ Candid Library

Project description

C++ Candid Library

The C++ Candid Library of icpp

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, 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 here.

The command we use is:

icpp build-native

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

During that compilation to a native executable, we use a MockIC module, because we mock how the code would run inside a canister.

When you build a Rich Client, you will have to provide some alternative code for that MockIC module. Likely just stub it out.

Roadmap

C++ Agent

It is on our road-map to make the building of C++ Rich Clients easier by providing an actual C++ agent.

No date is available yet.

Compiler support

Currently we only support the Clang++ compiler. It is not on our road-map to support other compilers for building Rich Clients, but let us know if you need that.

icpp community

Please join us on OpenChat and let us know your needs, to help us prioritize our road-map.

Notes

(*) We currently run the QA tests in the private repository of icpp-pro. We are working on migrating this GitHub Action work-flow to the open source version icpp-free as part of our road-map.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icpp-candid-3.0.1.tar.gz (82.5 kB view hashes)

Uploaded Source

Built Distribution

icpp_candid-3.0.1-py3-none-any.whl (183.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page