summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml8
l---------dev-Cargo.toml1
-rw-r--r--src/dev/check.rs2
-rw-r--r--src/dev/update.rs2
-rw-r--r--src/init.rs2
5 files changed, 9 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 78ebb9c..b3bdaed 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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]
diff --git a/dev-Cargo.toml b/dev-Cargo.toml
new file mode 120000
index 0000000..9230c2e
--- /dev/null
+++ b/dev-Cargo.toml
@@ -0,0 +1 @@
+dev/Cargo.toml \ No newline at end of file
diff --git a/src/dev/check.rs b/src/dev/check.rs
index 564aa0a..b6e6f31 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -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 {
diff --git a/src/dev/update.rs b/src/dev/update.rs
index d2f20aa..fe7622c 100644
--- a/src/dev/update.rs
+++ b/src/dev/update.rs
@@ -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",
)
diff --git a/src/init.rs b/src/init.rs
index ce239ea..8a9fb36 100644
--- a/src/init.rs
+++ b/src/init.rs
@@ -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()