Skip to content

Commit

Permalink
Implement async download based on chronos
Browse files Browse the repository at this point in the history
- implementation of async download based on chronos asyncproc
- the PR is based on #938
  • Loading branch information
bobeff authored and yyoncho committed Aug 24, 2022
1 parent 05ecb8e commit ddc62e3
Show file tree
Hide file tree
Showing 18 changed files with 390 additions and 173 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Install Mercurial on macOS
if: matrix.os == 'macos-latest'
run: brew install mercurial
- name: setup submodules
run: |
git submodule update --init
- name: Run nim c -r tester
run: |
cd tests
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ src/nimblepkg/version
# Test procedure artifacts
*.nims
/buildTests
/nimble.develop
nimble.paths
*.paths
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "nim-bearssl"]
path = nim-bearssl
url = https://github.com/status-im/nim-bearssl
[submodule "nim-chronos"]
path = nim-chronos
url = https://github.com/status-im/nim-chronos
[submodule "nim-stew"]
path = nim-stew
url = https://github.com/status-im/nim-stew
1 change: 1 addition & 0 deletions changelog.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is a major release containing four new features:
- Download tarballs when downloading packages from GitHub.
- A setup command.
- Added a `--package, -p` command line option.
- Parallel downloads of the locked dependencies.

## 0.13.0

Expand Down
1 change: 1 addition & 0 deletions nim-bearssl
Submodule nim-bearssl added at f4c423
1 change: 1 addition & 0 deletions nim-chronos
Submodule nim-chronos added at f700a9
1 change: 1 addition & 0 deletions nim-stew
Submodule nim-stew added at 018760
5 changes: 3 additions & 2 deletions nimble.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ installExt = @["nim"]

# Dependencies

requires "nim >= 0.13.0"
requires "nim >= 0.13.0", "chronos", "bearssl", "stew"


when defined(nimdistros):
import distros
Expand All @@ -22,4 +23,4 @@ when defined(nimdistros):

task test, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"
exec "nim c -r -d:release tester"
4 changes: 4 additions & 0 deletions src/nimble.nim.cfg → src/nim.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
--path:"$lib/packages/docutils"
#--noNimblePath
--threads:off
--path:"$nim/"
--path:"./vendor/nim"
--path:"../nim-stew"
--path:"../nim-chronos"
--path:"../nim-bearssl"
-d:ssl
-d:nimcore # Enable 'gorge' in Nim's VM. See https://github.com/nim-lang/Nim/issues/8096
Loading

0 comments on commit ddc62e3

Please sign in to comment.