Skip to content

Commit 16c4678

Browse files
bobeffyyoncho
authored andcommitted
Implement async download based on chronos
- implementation of async download based on chronos asyncproc - the PR is based on #938
1 parent 05ecb8e commit 16c4678

19 files changed

+396
-173
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Install Mercurial on macOS
2828
if: matrix.os == 'macos-latest'
2929
run: brew install mercurial
30+
- name: setup submodules
31+
run: |
32+
git submodule update --init
3033
- name: Run nim c -r tester
3134
run: |
3235
cd tests

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ src/nimblepkg/version
6262
# Test procedure artifacts
6363
*.nims
6464
/buildTests
65+
/nimble.develop
66+
nimble.paths
67+
*.paths

.gitmodules

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "nim-bearssl"]
2+
path = nim-bearssl
3+
url = https://github.com/status-im/nim-bearssl
4+
[submodule "nim-chronos"]
5+
path = nim-chronos
6+
url = https://github.com/status-im/nim-chronos
7+
[submodule "nim-stew"]
8+
path = nim-stew
9+
url = https://github.com/status-im/nim-stew
10+
[submodule "nim-http-utils"]
11+
path = nim-http-utils
12+
url = https://github.com/status-im/nim-http-utils

changelog.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This is a major release containing four new features:
1212
- Download tarballs when downloading packages from GitHub.
1313
- A setup command.
1414
- Added a `--package, -p` command line option.
15+
- Parallel downloads of the locked dependencies.
1516

1617
## 0.13.0
1718

nim-bearssl

Submodule nim-bearssl added at f4c4233

nim-chronos

Submodule nim-chronos added at f700a93

nim-http-utils

Submodule nim-http-utils added at e88e231

nim-stew

Submodule nim-stew added at 0187609

nimble.nimble

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ installExt = @["nim"]
1111

1212
# Dependencies
1313

14-
requires "nim >= 0.13.0"
14+
requires "nim >= 0.13.0", "chronos", "bearssl", "stew"
15+
1516

1617
when defined(nimdistros):
1718
import distros
@@ -22,4 +23,4 @@ when defined(nimdistros):
2223

2324
task test, "Run the Nimble tester!":
2425
withDir "tests":
25-
exec "nim c -r tester"
26+
exec "nim c -r -d:release tester"

src/nimble.nim.cfg src/nim.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
--path:"$lib/packages/docutils"
22
#--noNimblePath
3+
--threads:off
34
--path:"$nim/"
45
--path:"./vendor/nim"
6+
--path:"../nim-stew"
7+
--path:"../nim-chronos"
8+
--path:"../nim-bearssl"
9+
--path:"../nim-http-utils"
510
-d:ssl
611
-d:nimcore # Enable 'gorge' in Nim's VM. See https://github.com/nim-lang/Nim/issues/8096

0 commit comments

Comments
 (0)