diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 471f24f..76c5233 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -21,7 +21,7 @@ jobs: - macOS-latest nim-version: - - '1.6.16' + - '1.6.18' - stable - devel @@ -53,7 +53,5 @@ jobs: - name: Install Packages run: nimble install -y - # - name: server -d:chronosStrictException check - # run: nim c -d:chronosStrictException src/scorper/http/streamserver.nim - name: Test run: nimble -y --silent test \ No newline at end of file diff --git a/README.md b/README.md index 8020c9d..77c7450 100644 --- a/README.md +++ b/README.md @@ -187,18 +187,6 @@ transformed, in order to catch any exceptions and transfer them to the `Future`. > Effectively, this means that while code can be compiled with `{.push raises: [Defect]}`, the intended effect propagation and checking is **disabled** for `async` functions. -> -> To enable checking exception effects in `async` code, enable strict mode with -**`-d:chronosStrictException`**. -> -> In the strict mode, `async` functions are checked such that they only raise -`CatchableError` and thus must make sure to explicitly specify exception -effects on forward declarations, callbacks and methods using -`{.raises: [CatchableError].}` (or more strict) annotations. - -See `chronos` [#Error handling](https://github.com/status-im/nim-chronos#error-handling) for more details. - -Use `-d:chronosStrictException` to enable strict mode as explained above. ## Todos diff --git a/scorper.nimble b/scorper.nimble index a75d8ca..cee988d 100644 --- a/scorper.nimble +++ b/scorper.nimble @@ -10,7 +10,7 @@ installExt = @["nim"] # namedbin = {"scorper/http/routermacros":"routermacros" }.toTable() # Dependencies -requires "nim >= 1.6.16" # initial 1.3.1 +requires "nim >= 1.6.18" # initial 1.3.1 # requires "chronos >= 3.0.2" # initial 2.6.1 requires "chronos" requires "npeg" @@ -52,9 +52,6 @@ task bench_h,"benchmark simple responses with httpbeast": exec "nim c -r -d:release --threads:on -d:port=7777 -d:demoPath=benchmark/simple_resp.nim benchmark/benchmark_resp.nim" exec "nim c -r -d:release --threads:on -d:port=6666 -d:demoPath=benchmark/simple_resp_httpbeast.nim benchmark/benchmark_resp.nim" -task strict, "stric async exception check": - exec "nimble test -d:chronosStrictException" - # before test: # requires "asynctest >= 0.3.2 & < 0.4.0"