Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.4 KB
Raw Blame
# Unlocks Tokio's unstable RuntimeMetrics API (per-worker poll counts, blocking pool stats, etc.).
# Used by feature-flags/src/tokio_monitor.rs — no other crate calls unstable APIs.
# Applies workspace-wide because Cargo doesn't support per-crate config within a workspace.
#
# NOTE: [build].rustflags is mutually exclusive with [target.*].rustflags: when a target entry
# matches, [build] is ignored for that target. The macOS aarch64 entry below therefore repeats
# --cfg tokio_unstable so it is not silently dropped for that platform.
[build]
rustflags = ["--cfg", "tokio_unstable"]

# Use lld for linking on Apple Silicon dev builds. Flox only installs lld for
# aarch64-darwin, so we scope this to match. clang's -fuse-ld=lld resolves to
# ld64.lld (Mach-O flavor) on macOS automatically.
[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))']
rustflags = ["--cfg", "tokio_unstable", "-C", "link-arg=-fuse-ld=lld"]

[env]
# Force SQLX to run in offline mode for CI. Devs can change this if they want, to live code against the DB,
# but we use it at the workspace level here to allow use of sqlx macros across all crates
SQLX_OFFLINE = "true"
# Disable CPU jitter entropy in aws-lc-sys to fix macOS build failures.
# The jitterentropy C code includes CoreServices.h which pulls in hfs_format.h,
# hitting a missing uuid_string_t type on macOS SDKs. OS entropy sources still work.
# See: https://github.com/aws/aws-lc-rs/issues/912
AWS_LC_SYS_NO_JITTER_ENTROPY = "1"