[feat](trx-ftx): gate FT2 support behind ft2 feature flag, disabled by default

FT2 decoder implementation, protocol constants, server decoder tasks,
background decode, and registry entry are now conditional on the ft2
feature. Lightweight types (enum variants, commands, state fields) remain
unconditional to avoid cascading cfg noise in macros and serde.

Enable with: cargo build -p trx-server --features ft2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-04-01 21:49:17 +02:00
parent 5221e3cbcc
commit 316d624c95
11 changed files with 112 additions and 22 deletions
+4
View File
@@ -7,6 +7,10 @@ name = "trx-protocol"
version.workspace = true
edition = "2021"
[features]
default = []
ft2 = []
[dependencies]
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }