Skip to content

Commit bd70f2a

Browse files
damirkabors-diem
authored andcommitted
include stdlib by default on package new (#50)
Signed-off-by: sahithiacn <[email protected]> Closes: #297
1 parent 0a4b28a commit bd70f2a

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

language/tools/move-cli/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ cargo install --path move/language/tools/move-cli
1616
```
1717
or
1818
```shell
19-
$ cargo install --git https://github.com/diem/move move-cli --branch main
19+
$ cargo install --git https://github.com/move-language/move move-cli --branch main
2020
```
2121

2222
This will install the `move` binary in your Cargo binary directory. On
@@ -73,11 +73,11 @@ $ move package prove -p <path> # Verify the specifications in the package at <pa
7373
```
7474

7575
In order to run the Move Prover [additional tools need to be
76-
installed](https://github.com/diem/move/blob/main/language/move-prover/doc/user/install.md).
76+
installed](https://github.com/move-language/move/blob/main/language/move-prover/doc/user/install.md).
7777
Information on the Move Prover and its configuration options can be found
78-
[here](https://github.com/diem/move/blob/main/language/move-prover/doc/user/prover-guide.md)
78+
[here](https://github.com/move-language/move/blob/main/language/move-prover/doc/user/prover-guide.md)
7979
and
80-
[here](https://github.com/diem/move/blob/main/language/move-prover/doc/user/spec-lang.md).
80+
[here](https://github.com/move-language/move/blob/main/language/move-prover/doc/user/spec-lang.md).
8181

8282
You can also run unit tests in a package using the `test` command
8383

@@ -128,7 +128,7 @@ directory:
128128
Std = "0x1" # Specify and assign 0x1 to the named address "Std"
129129

130130
[dependencies]
131-
MoveNursery = { git = "https://github.com/diem/move.git", subdir = "language/move-stdlib/nursery", rev = "d45f20a" }
131+
MoveNursery = { git = "https://github.com/move-language/move.git", subdir = "language/move-stdlib/nursery", rev = "d45f20a" }
132132
# ^ ^ ^ ^
133133
# Git dependency Git clone URL Subdir under git repo (optional) Git revision to use
134134
```

language/tools/move-cli/src/package/cli.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,15 @@ pub fn create_move_package<S: AsRef<str> + fmt::Display>(
593593
let mut w = std::fs::File::create(creation_path.join(SourcePackageLayout::Manifest.path()))?;
594594
writeln!(
595595
&mut w,
596-
"[package]\nname = \"{}\"\nversion = \"0.0.0\"",
597-
name
598-
)?;
596+
"[package]
597+
name = \"{}\"
598+
version = \"0.0.0\"
599+
600+
[dependencies]
601+
MoveStdlib = {{ git = \"https://github.com/move-language/move.git\", subdir = \"language/move-stdlib\", rev = \"main\" }}
602+
603+
[addresses]
604+
Std = \"0x1\"
605+
", name)?;
599606
Ok(())
600607
}

0 commit comments

Comments
 (0)