Skip to content

Commit 5920a58

Browse files
committed
Include dev/Cargo.toml
1 parent aaea5b4 commit 5920a58

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

Cargo.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ keywords = [
3737
"learning",
3838
]
3939
include = [
40+
"/src/",
4041
"/exercises/",
42+
"/solutions/",
4143
"/info.toml",
42-
"/LICENSE",
44+
# A symlink to be able to include `dev/Cargo.toml` although `dev` is excluded.
45+
"/dev-Cargo.toml",
4346
"/README.md",
44-
"/solutions/",
45-
"/src/",
47+
"/LICENSE",
4648
]
4749

4850
[dependencies]

dev-Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dev/Cargo.toml

src/dev/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub fn check() -> Result<()> {
166166
if DEBUG_PROFILE {
167167
check_cargo_toml(
168168
&info_file.exercises,
169-
include_str!("../../dev/Cargo.toml"),
169+
include_str!("../../dev-Cargo.toml"),
170170
b"../",
171171
)?;
172172
} else {

src/dev/update.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn update() -> Result<()> {
2929
if DEBUG_PROFILE {
3030
update_cargo_toml(
3131
&info_file.exercises,
32-
include_str!("../../dev/Cargo.toml"),
32+
include_str!("../../dev-Cargo.toml"),
3333
b"../",
3434
"dev/Cargo.toml",
3535
)

src/init.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn init() -> Result<()> {
3131
.init_exercises_dir(&info_file.exercises)
3232
.context("Failed to initialize the `rustlings/exercises` directory")?;
3333

34-
let current_cargo_toml = include_str!("../dev/Cargo.toml");
34+
let current_cargo_toml = include_str!("../dev-Cargo.toml");
3535
// Skip the first line (comment).
3636
let newline_ind = current_cargo_toml
3737
.as_bytes()

0 commit comments

Comments
 (0)