[cmake] Move the common rust configuration to its own file
Summary: It will avoid duplicated code when building the proof-manager-cli tool.
Test Plan: Build and run the chronik tests.
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D18949