Skip to content

Commit

Permalink
Include dev/Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Apr 25, 2024
1 parent aaea5b4 commit 5920a58
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ keywords = [
"learning",
]
include = [
"/src/",
"/exercises/",
"/solutions/",
"/info.toml",
"/LICENSE",
# A symlink to be able to include `dev/Cargo.toml` although `dev` is excluded.
"/dev-Cargo.toml",
"/README.md",
"/solutions/",
"/src/",
"/LICENSE",
]

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions dev-Cargo.toml
2 changes: 1 addition & 1 deletion src/dev/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub fn check() -> Result<()> {
if DEBUG_PROFILE {
check_cargo_toml(
&info_file.exercises,
include_str!("../../dev/Cargo.toml"),
include_str!("../../dev-Cargo.toml"),
b"../",
)?;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/dev/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn update() -> Result<()> {
if DEBUG_PROFILE {
update_cargo_toml(
&info_file.exercises,
include_str!("../../dev/Cargo.toml"),
include_str!("../../dev-Cargo.toml"),
b"../",
"dev/Cargo.toml",
)
Expand Down
2 changes: 1 addition & 1 deletion src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn init() -> Result<()> {
.init_exercises_dir(&info_file.exercises)
.context("Failed to initialize the `rustlings/exercises` directory")?;

let current_cargo_toml = include_str!("../dev/Cargo.toml");
let current_cargo_toml = include_str!("../dev-Cargo.toml");
// Skip the first line (comment).
let newline_ind = current_cargo_toml
.as_bytes()
Expand Down

0 comments on commit 5920a58

Please sign in to comment.