Skip to content

Add prism --version with build hash and protocol version #21

Description

@Emrys02

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

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions