Skip to content

Commit effc8fa

Browse files
committed
reorg in workspace
1 parent 57bdd49 commit effc8fa

File tree

14 files changed

+73
-91
lines changed

14 files changed

+73
-91
lines changed

Cargo.lock

Lines changed: 36 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
[package]
2-
name = "rustcourse"
3-
version = "0.1.0"
4-
edition = "2024"
5-
6-
[dependencies]
7-
rand = "0.9.1"
8-
colored = "3.1.1"
1+
[workspace]
2+
resolver = "3"
3+
members = ["basics","course", "guessgame", "myutils"]

basics/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "basics"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
File renamed without changes.

course/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "course"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
basics = { path = "../basics" }
8+
myutils = { path = "../myutils" }
9+
guessgame = { path = "../guessgame" }

src/main.rs renamed to course/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mod guessgame;
2-
mod basics;
3-
use rustcourse::myutils::stuff;
4-
use rustcourse::myutils::testing;
1+
use basics;
2+
use myutils::stuff;
3+
use myutils::testing;
4+
use guessgame;
55

66
fn main() {
77
basics::basics();

guessgame/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "guessgame"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
rand = "0.9.1"
8+
colored = "3.1.1"
File renamed without changes.

myutils/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "myutils"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
File renamed without changes.

0 commit comments

Comments
 (0)