feat(integration): add Rust as a full example-based variant - #269
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
Add a Rust integration variant anchored on a real example app (example-apps/rust): an Axum service that builds one posthog-rs client per process, configures it from the environment, identifies users via a $set property, captures events, evaluates feature flags with the current evaluate_flags snapshot API, captures exceptions, and calls flush() + shutdown() on graceful shutdown (capture is fire-and-forget). Ships a full example rather than docs-only so the wizard has a concrete shape to match. Adds rust commandments (including honest limitations: no alias/surveys/session-replay) and skips the Rust target/ build dir when flattening the example. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c27454c to
5bc6aa6
Compare
|
Full e2e run of this PR pair (wizard #947 + context-mill #269, both with main merged in) against svenstaro/miniserve. 7/7 steps, 1 legitimately skipped (no user concept, so identify correctly no-ops). Dashboard and notebook created through prod MCP. One finding: no Note: the context-mill branch as filed fails at the dashboard step — its agent prompts predate the |
The home, dashboard, and profile pages interpolated the cookie distinct id (and the error message) into HTML unescaped. Escape display values with html-escape before rendering; the raw distinct id still goes to the SDK calls. Keeps the copied-into-real-code pattern safe by default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
b836339 to
a443437
Compare

























Adds a full example-based Rust integration variant (not docs-only), anchored on a real, compiling example app at
example-apps/rust.What's here:
example-apps/rust/— Axum service: oneposthog-rsclient per process, env-var config, identify via a$setproperty, event capture, feature flags viaevaluate_flags,capture_exception, andflush()+shutdown()on graceful shutdown (capture is fire-and-forget).cargo checkclean.config.yaml: newrustfull variant (framework: rust).commandments.yaml:rustblock, including honest limitations (no alias / surveys / session replay).skip-patterns.yaml: skip the Rusttarget/dir.Ships as a pair with the wizard detection PR PostHog/wizard#947.