feat(integration): add Rust as a full example-based variant#269
Draft
sarahxsanders wants to merge 1 commit into
Draft
feat(integration): add Rust as a full example-based variant#269sarahxsanders wants to merge 1 commit into
sarahxsanders wants to merge 1 commit into
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>
sarahxsanders
force-pushed
the
posthog-code/integration-rust-variant
branch
from
July 23, 2026 19:23
c27454c to
5bc6aa6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.