Enhance the --version output to include the git build hash and the current Soroban protocol version supported.
Context
Critical for bug reporting and ensuring compatibility between the tool and the network.
Implementation Guidelines
Key Files: crates/cli/src/main.rs.
- Use a build script (
build.rs) to inject the git hash.
- Pull the protocol version from the Core constants.
Expectations
What done looks like: prism --version prints "prism 0.1.0 (build: a1b2c3d) | Soroban Protocol: 22".
For any question, reach me on Discord: emry_ss
Enhance the
--versionoutput to include the git build hash and the current Soroban protocol version supported.Context
Critical for bug reporting and ensuring compatibility between the tool and the network.
Implementation Guidelines
Key Files:
crates/cli/src/main.rs.build.rs) to inject the git hash.Expectations
What done looks like:
prism --versionprints "prism 0.1.0 (build: a1b2c3d) | Soroban Protocol: 22".For any question, reach me on Discord: emry_ss