Does the flying-general rule apply to any pieces besides the two generals?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.
Direct answer
No, it is unique to the two generals. Two chariots, two cannons, or any other pair of pieces are perfectly free to stand on the same file with nothing between them; nothing in the rules restricts that. The prohibition exists only for the two generals, because it stands in for the idea that they threaten each other directly along a clear line.
Why newer players wonder about this
Once a player learns that facing generals is illegal, it is a reasonable next question whether the same logic extends anywhere else, two chariots staring down an open file, say. It does not. The rule is a single, specific exception written for the generals and nothing generalises it further.
What actually governs other pieces on a shared file
Ordinary attacking rules do all the work instead. Two chariots facing each other on an open file simply threaten to capture one another under the normal rules for how a chariot moves, there is no separate prohibition needed, and either side is free to leave the position exactly as it is.
Related questions
Is there a similar rule anywhere else in xiangqi?
No. This is the one rule of its kind in the entire game; every other piece pairing is governed purely by ordinary movement and check rules.
Why does it exist only for generals?
Because the generals can never actually attack each other directly under normal movement, the rule exists to represent that threat symbolically instead.