Skip to content

Commit b7b6d05

Browse files
committed
docs: trim feature-flag guidance in build.md
Removes the feature-vs-build-mode framing, keeping the concrete verification steps (cargo tree, CI mise task) for excluding a dependency via a feature flag. Signed-off-by: politerealism <burdcat17@gmail.com>
1 parent d671004 commit b7b6d05

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎architecture/build.md‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ HTTP/TLS support behind explicit build features, so default system-Z3 builds do
5858
not reintroduce bundled Mozilla roots. Release builds that need bundled Z3
5959
continue to opt in with `bundled-z3`.
6060

61-
A feature opt-in adds a capability; removing a feature to disable something is a
62-
build mode, not the absence of a feature flag. Document it as such rather than
63-
creating a mirror feature just to name the absence. When a feature is meant to
64-
exclude a dependency, verify the crate is physically absent from the dependency
65-
graph — not just disabled at the call site. Use `cargo tree -e features -p
66-
<crate>` to confirm the excluded crate does not appear through a transitive path.
67-
A common source of leaks is crates that enable `rustls-tls` or similar features
68-
by default in their own `[features]` table. Verify the exclusion holds in CI with
69-
a `mise` task that builds without the feature and checks `cargo tree` output; a
70-
compile-time guard alone does not catch a transitive re-introduction.
61+
When a feature is meant to exclude a dependency, verify the crate is
62+
physically absent from the dependency graph — not just disabled at the call
63+
site. Use `cargo tree -e features -p <crate>` to confirm the excluded crate
64+
does not appear through a transitive path. A common source of leaks is crates
65+
that enable `rustls-tls` or similar features by default in their own
66+
`[features]` table. Verify the exclusion holds in CI with a `mise` task that
67+
builds without the feature and checks `cargo tree` output; a compile-time
68+
guard alone does not catch a transitive re-introduction.
7169

7270
## Linux Runtime Environments
7371

0 commit comments

Comments
 (0)