-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move-ide] Move analyzer versioning (#17929)
## Description We would like to use the same versioning scheme we use for Sui binaries (particularly for `sui` binary) for the `move-analyzer` as well. Both `sui` and `move-analyzer` binaries "bundle" the move compiler and being able to tell which version you are using is very useful (and really necessary to avoid discrepancies in the compilation process between the IDE and CLI). It's apparently not possible to have to `move-analyzer` binaries in the repo (one in `crates` and one in `external-crates`) so I renamed the one in `external-crates` as it's the one in `crates` that is intended to be externally used from now on. ## Test plan All existing tests must pass
- Loading branch information
Showing
10 changed files
with
493 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "sui-move-lsp" | ||
version.workspace = true | ||
authors = ["Mysten Labs <[email protected]>"] | ||
license = "Apache-2.0" | ||
publish = false | ||
edition = "2021" | ||
|
||
[dependencies] | ||
clap = { version = "4.1.4", features = ["derive"] } | ||
tokio = { workspace = true, features = ["full"] } | ||
|
||
bin-version.workspace = true | ||
move-analyzer.workspace = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use clap::*; | ||
use move_analyzer::analyzer; | ||
|
||
// Define the `GIT_REVISION` and `VERSION` consts | ||
bin_version::bin_version!(); | ||
|
||
#[derive(Parser)] | ||
#[clap( | ||
name = env!("CARGO_BIN_NAME"), | ||
rename_all = "kebab-case", | ||
author, | ||
version = VERSION, | ||
)] | ||
struct App {} | ||
|
||
fn main() { | ||
App::parse(); | ||
analyzer::run(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.