From e2d25fe021be87bd31571f44d9bd56d0324420e1 Mon Sep 17 00:00:00 2001 From: Damir S Date: Mon, 18 Apr 2022 18:00:56 +0300 Subject: [PATCH] include stdlib by default on package new (#50) Signed-off-by: sahithiacn --- language/tools/move-cli/README.md | 10 +++++----- language/tools/move-cli/src/package/cli.rs | 13 ++++++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/language/tools/move-cli/README.md b/language/tools/move-cli/README.md index 3cbaf18454..a003272610 100644 --- a/language/tools/move-cli/README.md +++ b/language/tools/move-cli/README.md @@ -16,7 +16,7 @@ $ cargo install --path move/language/tools/move-cli ``` or ```shell -$ cargo install --git https://github.com/diem/move move-cli --branch main +$ cargo install --git https://github.com/move-language/move move-cli --branch main ``` This will install the `move` binary in your Cargo binary directory. On @@ -73,11 +73,11 @@ $ move package prove -p # Verify the specifications in the package at + fmt::Display>( let mut w = std::fs::File::create(creation_path.join(SourcePackageLayout::Manifest.path()))?; writeln!( &mut w, - "[package]\nname = \"{}\"\nversion = \"0.0.0\"", - name - )?; + "[package] +name = \"{}\" +version = \"0.0.0\" + +[dependencies] +MoveStdlib = {{ git = \"https://github.com/move-language/move.git\", subdir = \"language/move-stdlib\", rev = \"main\" }} + +[addresses] +Std = \"0x1\" +", name)?; Ok(()) }