summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* SSL certificate verify GitHub action (#13697)Federico Ceratto2020-03-204-12/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement SSL/TLS certificate checking #782 * SSL: Add nimDisableCertificateValidation Remove NIM_SSL_CERT_VALIDATION env var tests/untestable/thttpclient_ssl.nim ran successfully on Linux with libssl 1.1.1d * SSL: update integ test to skip flapping tests * Revert .travis.yml change * nimDisableCertificateValidation disable imports Prevent loading symbols that are not defined on older SSL libs * SSL: disable verification in net.nim ..when nimDisableCertificateValidation is set * Update changelog * Fix peername type * Add define check for windows * Disable test on windows * Add exprimental GitHub action CI for SSL * Test nimDisableCertificateValidation
* [RFC] 'walkDir' now has a new 'checkDir' flag, to mimic behaviour of other ↵Timothee Cour2020-03-202-14/+28
| | | | | languages (#13642) Co-authored-by: narimiran
* threadpool.nim: allow control over MaxThreadPoolSize and ↵Araq2020-03-201-3/+3
| | | | MaxDistinguishedThread; refs #10584
* Detect Ubuntu by checking release() and uname() (#13704)Hayden2020-03-201-1/+3
| | | This will improve detection of Ubuntu when running on Ubuntu on WSL. #13703
* fight the code bloat in base64.nimAraq2020-03-201-7/+16
|
* Add Base64 safe (#13672)Juan Carlos2020-03-201-9/+28
| | | | * Implement RFC-4648 Section-7 * https://github.com/nim-lang/Nim/pull/13672#issuecomment-600993466
* Remove 2 old deprecated files (#13702)Juan Carlos2020-03-202-20/+0
|
* cycle breaker (#13593)Andreas Rumpf2020-03-194-12/+244
| | | | * cycle breaking as an alternative to cycle detection
* Attempt to finish off araq cpp exceptions (#13695)cooldome2020-03-192-32/+6
| | | | | | | | | | | | | | | * config update * disable a questionable test * remove c++ exception handling IDs, new impl doesn't require it anymore * C++ based exceptions finally work * fixes bootstrapping problem in C++ mode * teach GCC it's 2020 now * more bugfixes for C++ based exception handling * apply cooldome's patch * another attempt to enable C++11 * bug fix Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix #11458 oswalkdir (#13689)Timothee Cour2020-03-191-27/+4
| | | | | * fix #11458 oswalkdir * changelog
* added a switch -d:nimEmulateOverflowChecks for broken or old GCC versions ↵Andreas Rumpf2020-03-192-2/+2
| | | | (#13692)
* add `move` to `tables` to prevent warnings when compiled with `--gc:arc` ↵Miran2020-03-191-4/+4
| | | | (#13684)
* httpcore: deprecate `==`(string, HttpCode) (#13682)alaviss2020-03-191-1/+8
| | | | | | | | | | According to [RFC7230], the reason phrase attached to the status line is optional and clients should not rely on it. This in turn causes the proc to be practically useless, as clients should only inspect the return code. Ref #13680. [RFC7230]: https://tools.ietf.org/html/rfc7230#section-3.1.2
* enable --tlsEmulation:on for --gc:arc (#13685)Andreas Rumpf2020-03-183-7/+4
| | | | * enable --tlsEmulation:on for --gc:arc * make -d:useMalloc work with --gc:arc --threads:on
* arc optimizations (#13325)Andreas Rumpf2020-03-181-8/+1
| | | | | * scope based destructors * handle 'or' and 'and' expressions properly, see the new test arc/tcontrolflow.nim * make this branch mergable, logic is disabled for now
* fixes hash(HashSet) which was wrong as it didn't respect tombstones; refs #13649Araq2020-03-181-1/+2
|
* add nnkMacroDef to RoutineNodes (#13676)Jasper Jenkins2020-03-171-1/+1
|
* rewritten goto based exception handling; much cleaner implementation;… ↵Andreas Rumpf2020-03-171-3/+3
| | | | | | (#13677) * rewritten goto based exception handling; much cleaner implementation; fixes #13668
* fixes a bug for 'dup' and 'with'; they can now handle nested statement lists ↵Araq2020-03-173-25/+22
| | | | that can result from macros
* fixes #13654Andreas Rumpf2020-03-161-1/+1
|
* fixes #13645Araq2020-03-161-16/+18
|
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + ↵Timothee Cour2020-03-137-9/+7
| | | | | | | | other fixes (#13550) * fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
* catchable defects (#13626)Andreas Rumpf2020-03-1213-33/+204
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly
* rename `lenTuple` and `lenVarargs` (#13639)Miran2020-03-122-6/+6
| | | | | | | | | | | * rename 'lenTuple' to 'tupleLen' Rationale: `lenTuple` is a tuple consisting of lengths (e.g. `(1, 5, 0)`), `tupleLen` is a length of a tuple (e.g. `tupleLen((1, 5, 0) == 3`) * rename 'lenVarargs' to 'varargsLen' The same rationale as a previous commit. Consistency.
* Fix #12676 (#13634)genotrance2020-03-121-7/+15
|
* unicode.split: Fix the splitting when a Rune separator is used [backport] ↵Kaushal Modi2020-03-121-14/+11
| | | | | | | | | | (#13629) * unicode.split: Fix the splitting when a Rune separator is used [backport] - Fixes https://github.com/nim-lang/Nim/issues/13628 - Ref https://irclogs.nim-lang.org/11-03-2020.html#20:01:34 * unicode.split: Remove the sepLen based logic.. resulted in wrong jumps
* Add more JS stuff to dom.nim (#13483)treeform2020-03-111-26/+45
| | | | | | | | | | | | | | | * Add more JS stuff to dom.nim * Make all links to docs doc comments. * Fix minor textContent * space. * Remove Selection object. * More work on docs. * Fixing links. * Made the links be "see <docs>".
* fix #13310, Deque misbehaves on VM (#13625)Miran2020-03-111-2/+15
| | | | * fix #13310, Deque misbehaves on VM * use 'when nimVM'
* fixes #13558: toDateTime buggy on 29th, 30th and 31th of each month; ↵Timothee Cour2020-03-111-13/+3
| | | | breaking change: do not use `now` to compute result, was undocumented and non-sensical (#13565)
* fixes async regressionAraq2020-03-111-1/+1
|
* fixes #13519Araq2020-03-113-3/+3
|
* add expectIdent to macros (#12778)Arne Döring2020-03-111-0/+7
| | | | | | | | | | | | | | | | * add expectIdent to macros * apply feedback * Update lib/core/macros.nim Co-Authored-By: Clyybber <darkmine956@gmail.com> * Update texpectIdent2.nim * Update texpectIdent1.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixed to jsonArrayEnd comment. (#13624)めぐみ発動機 (isVowel / GreenWing)2020-03-111-1/+1
| | | typo: start → end
* fix operators containing percent for VM usage (#13536)Arne Döring2020-03-112-59/+77
| | | | * fixes #13513 * merge tarithmetics in tarithm
* fixes #13607Araq2020-03-101-6/+4
|
* hotfix: make --useVersion:1.0 workAraq2020-03-101-1/+2
|
* fix #12508, unaligned access on sparc64 (#13594)Miran2020-03-091-1/+1
|
* fixes #13605 (#13611)Andreas Rumpf2020-03-091-4/+5
|
* Add isValidFilename (#13561)Juan Carlos2020-03-071-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add os.isValidFilename * Add os.isValidFilename * Peer Review Feedbacks https://github.com/nim-lang/Nim/pull/13561#discussion_r388013139 * Peer Review Feedbacks https://github.com/nim-lang/Nim/pull/13561#issuecomment-595259568 * Add since to const * Update the documentation comment * Update the changelog * Update lib/pure/os.nim Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com> * Update lib/pure/os.nim Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com> * Peer Review Feedbacks, Add more Tests Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Implement file streaming for httpclient's MultipartData (#12982)Zed2020-03-062-147/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `uploadFile` to POST files by streaming them * Use constant for \c\L * Formatting * Remove uploadFile * Implement MultipartData file streaming * Remove unnecessary var annotations * Call string on TaintedStrings Fixes #12789 * Move cl constant to httpcore * Fix `request` inconsistencies * Update documentaion * Clean up * Skip multipart formatting when there's 0 entries * Remove extraneous `cl` from multipart formatting * Update MultipartData `$` to match old behaviour * Update comment * Address comments
* Fix #13573 and #13574 (#13575)Andrea Ferretti2020-03-061-4/+8
| | | | | * Fix https://github.com/nim-lang/Nim/issues/13573 and https://github.com/nim-lang/Nim/issues/13574 * Restored asynchttpserver
* Revert broken asynchttpserver FutureStream additions.Dominik Picheta2020-03-061-145/+31
| | | | | | | | | | | As discussed in #13394, these changes cannot work. Reverted via ``` git revert --no-commit 5bf571f061d53d35aab727f420afd9f415987723 git revert --no-commit abd660c407d00d0c4f2129ff11bfc69badda8ece git revert --no-commit 955465e5f42b1353f69f3bd884908a7ef91ce13b git commit ```
* Removed simpleGetOrDefault (#13590)Andreas Rumpf2020-03-051-2/+4
|
* fix #13579 joinPath("/foo/", "../a") is now /a (#13586)Andreas Rumpf2020-03-052-0/+6
|
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-042-2/+4
| | | | | | | | | | | | | | * ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
* std/compilesettings implementation (#13584)Andreas Rumpf2020-03-041-0/+54
| | | | | | | | * Implement compileSetting() and compileSettingSeq() * Change from magic to vmop * better design for querySetting Co-authored-by: genotrance <dev@genotrance.com>
* Fix docgen snippet numbering (#13507)genotrance2020-03-031-1/+1
|
* Remove dead magics (#13551)Arne Döring2020-03-032-12/+12
|
* make genericParams support static[T] generic params (#13433)Timothee Cour2020-03-021-6/+28
| | | | | | * make genericParams support static[T] generic params * WrapStatic => StaticParam
* fixes #13543 and added times.isLeapDay (#13547)Timothee Cour2020-03-011-0/+13
|