[workspace]
members = ["cargo:."]

# Config for 'dist'
[dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.31.0"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
# Where to host releases
hosting = "github"
# Allow CI file to be in a different location (we keep it in core/.github/
# so it survives the git subtree split to the phasmcore open-source repo)
allow-dirty = ["ci"]

# ═════════════════════════════════════════════════════════════════════════════
# DO NOT set `features = ["h264-encoder"]` here, and do NOT add the encoder to
# phasm-cli's default features (see core/cli/Cargo.toml). The CLI binaries
# distributed through GitHub Releases via cargo-dist must NEVER bundle the
# pure-Rust H.264 encoder.
#
# Reason: the Via LA AVC patent pool requires a license for encoders shipped
# to end users, above a small free-tier threshold. phasm's mobile apps
# (iOS/Android) handle their own licensing posture; the open-source source
# distribution does not distribute executable encoder code. Users who want
# CLI video stego must opt in at source-build time:
#     cargo install phasm-cli --features h264-encoder
# See docs/design/h264-video-steganography.md § "Patent licensing —
# distribution plan".
# ═════════════════════════════════════════════════════════════════════════════
