Skip to content

Commit d677f2e

Browse files
committed
restructure rust sources under src directory
Initially, the sources were splitted in many packages to speed up compilation (see #2 ). This has lead to difficulties to navigate through the source code, and created complexity in managing version bumps due to many Cargo.toml files. This commit organizes back the structure of the code under the `src` dir, and bumps rust edition from 2018 to 2021 which would avoid long re-compilations, which were the cause of the initial split.
1 parent a294b9f commit d677f2e

File tree

18 files changed

+21
-96
lines changed

18 files changed

+21
-96
lines changed

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
.cargo/
2-
ci/Cargo.lock
3-
cli/Cargo.lock
4-
git/Cargo.lock
5-
logger/Cargo.lock
6-
utils/Cargo.lock
72
target/

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ authors = ["KNP Labs"]
99
readme = "README.md"
1010
license = "MIT"
1111
license-file = "LICENSE"
12-
edition = "2018"
12+
edition = "2021"
1313

1414
[dependencies]
15-
ci = { path = "ci" }
16-
cli = { path = "cli" }
17-
git = { path = "git" }
18-
logger = { path= "logger" }
15+
log = "0.4"
16+
simple_logger = { version = "2.1.0", default-features = false }
17+
structopt = "0.3"
1918

2019
[dev-dependencies]
2120
rand = "0.7"

ci/Cargo.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

cli/Cargo.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

git/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

logger/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::path::PathBuf;
44
use std::process::Command;
55
use log::debug;
66

7-
use utils::assert_or_panic;
7+
use crate::utils::assert_or_panic;
88

99
pub fn get_current_branch(
1010
working_directory: &PathBuf,

0 commit comments

Comments
 (0)