add missing feature: editable
This commit is contained in:
parent
024ed6b21e
commit
d59db9aff7
|
@ -42,7 +42,7 @@ edition = "2021"
|
||||||
> Note! This package could be safely removed due to the first one's existence.
|
> Note! This package could be safely removed due to the first one's existence.
|
||||||
|
|
||||||
3. π
|
3. π
|
||||||
```rust
|
```rust,editable
|
||||||
/* FILL in the blank with your ANSWER */
|
/* FILL in the blank with your ANSWER */
|
||||||
|
|
||||||
// Q: Whats the difference between package 1# and 2# ?
|
// Q: Whats the difference between package 1# and 2# ?
|
||||||
|
@ -58,7 +58,7 @@ In package `hello-package`, there is binary crate with the same name as the pack
|
||||||
Similar to `hello-package`, `hello-package1` also has a crate in it, however, this package doesn't contain a binary crate but a library crate, and `src/lib.rs` is the crate root.
|
Similar to `hello-package`, `hello-package1` also has a crate in it, however, this package doesn't contain a binary crate but a library crate, and `src/lib.rs` is the crate root.
|
||||||
|
|
||||||
4. π
|
4. π
|
||||||
```rust
|
```rust,editable
|
||||||
/* FILL in the blank with your ANSWER */
|
/* FILL in the blank with your ANSWER */
|
||||||
|
|
||||||
// Q: Whats the name of the library crate in package `hello-package1`?
|
// Q: Whats the name of the library crate in package `hello-package1`?
|
||||||
|
@ -67,7 +67,7 @@ Similar to `hello-package`, `hello-package1` also has a crate in it, however, th
|
||||||
|
|
||||||
|
|
||||||
5. ππ Add a library crate for `hello-package` and describe it's files tree below:
|
5. ππ Add a library crate for `hello-package` and describe it's files tree below:
|
||||||
```shell
|
```shell,editable
|
||||||
# FILL in the blanks
|
# FILL in the blanks
|
||||||
.
|
.
|
||||||
βββ Cargo.lock
|
βββ Cargo.lock
|
||||||
|
@ -81,7 +81,7 @@ After this step, there should be two crates in package `hello-package`: **a bina
|
||||||
|
|
||||||
6. πππ A package can contain at most one library crate, but it can contain as many binary crates as you would like by placing files in `src/bin` directory: **each file will be a separate binary crate with the same name as the file**.
|
6. πππ A package can contain at most one library crate, but it can contain as many binary crates as you would like by placing files in `src/bin` directory: **each file will be a separate binary crate with the same name as the file**.
|
||||||
|
|
||||||
```shell
|
```shell,editable
|
||||||
# Create a package which contains
|
# Create a package which contains
|
||||||
# 1. three binary crates: `hello-package`, `main1` and `main2`
|
# 1. three binary crates: `hello-package`, `main1` and `main2`
|
||||||
# 2. one library crate
|
# 2. one library crate
|
||||||
|
|
Loadingβ¦
Reference in New Issue