Skip to content

feat(integration): add Rust as a full example-based variant#269

Draft
sarahxsanders wants to merge 1 commit into
mainfrom
posthog-code/integration-rust-variant
Draft

feat(integration): add Rust as a full example-based variant#269
sarahxsanders wants to merge 1 commit into
mainfrom
posthog-code/integration-rust-variant

Conversation

@sarahxsanders

@sarahxsanders sarahxsanders commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

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: one posthog-rs client per process, env-var config, identify via a $set property, event capture, feature flags via evaluate_flags, capture_exception, and flush() + shutdown() on graceful shutdown (capture is fire-and-forget). cargo check clean.
  • config.yaml: new rust full variant (framework: rust).
  • commandments.yaml: rust block, including honest limitations (no alias / surveys / session replay).
  • skip-patterns.yaml: skip the Rust target/ dir.

Ships as a pair with the wizard detection PR PostHog/wizard#947.

@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run 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:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

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
sarahxsanders force-pushed the posthog-code/integration-rust-variant branch from c27454c to 5bc6aa6 Compare July 23, 2026 19:23
@sarahxsanders sarahxsanders changed the title feat(integration): add rust docs-only variant with wizard framework routing feat(integration): add Rust as a full example-based variant Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant