cameron-martin / bazel-lsp

A language server implementation for Bazel
Apache License 2.0
36 stars 1 forks source link

Set version from Cargo.toml #40

Closed cameron-martin closed 3 weeks ago

cameron-martin commented 3 weeks ago

This uses a genrule to read the Cargo.toml and set CARGO_PKG_VERSION. This is picked up by clap to set the version when asked via --version.

Fixes #39