SDK docs

Install & integrate on any platform. One Rust core, native everywhere.

C / C++ (cr_sdk.dll) — also C#, Go, Python
#include "cr_sdk.h"
CrClient* cr = cr_client_new("cashraven.io", 9000, "<devKey>", "user-123");
char buf[512]; cr_consent_text(CR_CONSENT_TITLE, buf, sizeof buf);   // show consent
cr_client_opt_in(cr);          // only after the user accepts
cr_client_start(cr);
// REQUIRED: cr_client_opt_out(cr) on an opt-out control
  • • The consent screen is built into the SDK — render consentText(); sharing starts only after the user agrees.
  • • Add an opt-out control (optOut()). Required for compliance approval.
  • • Device is protected automatically: per-device data/CPU/RAM/heat caps + local-network/sensitive-port blocking.
AGENTS.md — integrate with your AI agent

Each SDK ships an AGENTS.md. Drop it into your repo so your LLM coding agent (Claude, Cursor…) integrates the SDK correctly on the first try — it encodes the consent rule, the opt-out requirement, and the exact lifecycle.

Brand the consent screen

You can style the consent screen and add your own copy, so it feels native to your app. The required legal wording (intro, data-use, safety, age + legal links) is fixed and always shown. Custom text is reviewed by our compliance team.

  • Colors — background, text, accent, muted (#rrggbb).
  • Your app name + an optional extra message (additive) and custom button labels.
  • • Android/Swift: CrShare.createWithBranding(…, colors, custom) then render resolvedConsent(). C ABI: cr_client_new_branded(…) + cr_client_resolved_consent().