Skip to content

Commit 706697f

Browse files
authored
Merge pull request #27 from KnpLabs/fix/rust-edition-2021
Fix/rust edition 2021
2 parents 207a7d8 + 7e793b4 commit 706697f

File tree

20 files changed

+27
-116
lines changed

20 files changed

+27
-116
lines changed

.circleci/config.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,10 @@ reference:
4444
# uid 1001 but uid 1000 is used in the containers.
4545
sudo chown -R 1000 .
4646
47-
run_unit_tests_step: &run_unit_tests_step
47+
run_tests_step: &run_tests_step
4848
run:
49-
name: Run unit tests
50-
command: make test-unit
51-
52-
run_functional_tests_step: &run_functional_tests_step
53-
run:
54-
name: Run functional tests
55-
command: make test-functional
49+
name: Run tests
50+
command: make tests
5651

5752
build_release_step: &build_release_step
5853
run:
@@ -72,8 +67,7 @@ jobs:
7267
- <<: *build_docker_image_step
7368
- <<: *restore_cache_step
7469
- <<: *chown_working_directory_step
75-
- <<: *run_unit_tests_step
76-
- <<: *run_functional_tests_step
70+
- <<: *run_tests_step
7771
- <<: *enlight_cache_step
7872
- <<: *save_cache_step
7973

.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"

Makefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ build-release:
1818
docker-compose run --rm app \
1919
cargo build --release
2020

21-
# https://manpages.debian.org/testing/cargo/cargo-test.1.en.html
22-
.PHONY: test-unit
23-
test-unit:
24-
docker-compose run --rm app \
25-
cargo test --tests $(TEST_FLAGS) \
26-
-p ci \
27-
# add the other packages to test with the -p flag
28-
29-
.PHONY: test-functional
30-
test-functional:
21+
.PHONY: tests
22+
tests:
3123
docker-compose run --rm app \
3224
cargo test --tests $(TEST_FLAGS)

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.

0 commit comments

Comments
 (0)