Commit Graph

28 Commits

Author SHA1 Message Date
Miran dbc4a95df6
update ci.yml and be more explicit in .nimble (#55)
* update ci.yml and be more explicit in .nimble

* test both amd64 and arm64 macos
2024-06-26 02:12:29 +00:00
tersec b932ab0b7c
test refc in CI in Nim 2.0 and later (#47) 2024-02-14 02:06:39 +00:00
tersec f63bffa391
avoid use-after-free in ARC and ORC (#44)
* avoid use-after-free in ARC and ORC

* clarify UAF explanation
2023-06-21 21:58:47 +00:00
tersec 422971502b
Remove Nim 1.2 and 1.4 support (#42) 2023-06-20 12:38:26 +00:00
Jacek Sieka 583974782f
remove chronos dependency (#38)
* remove chronos dependency

The `chronos` backend currently does not work as it relies on nesting
`waitFor` calls, which is not supported by chronos itself - as such,
this PR disables the backend in testing and prints a recommendation to
users to avoid it until the problem has been resolved.

faststreams used without `async` continues to work as normal, which also
is the most common way to use it - the dependency on chronos in the
nimble file is unattractive from a user perspective since it also leads
to the the downloading of bearssl and other deps.

Hopefully, by the time the chronos backend can be used, we can also
specify conditional dependencies in nimble files.

* run chronos tests in CI
2023-05-23 15:35:22 +03:00
Jacek Sieka 5ec974ed1a
Normalise nimble (#36)
* normalise nimble file, ci / deprecation fixes

* other deprecations
2022-11-23 16:27:20 +01:00
Jacek Sieka 5f9fd4e5c5
reduce test dependencies (#34) 2022-09-10 07:25:22 +02:00
Miran 682b9c6541
switch CI to the supported versions of ubuntu and macos (#33)
* switch CI to the supported versions of ubuntu and macos

See:
- https://github.com/actions/runner-images/issues/6002
- https://github.com/actions/runner-images/issues/5583

* fix for `nnkArgList` style
2022-08-26 13:43:06 +03:00
Zahary Karadjov 49e2c52eb5 Instead of detecting nim-workspace, detect nimbus-build-system 2022-04-12 19:36:09 +03:00
Zahary Karadjov 0c1ca20b45 Nimble lock file 2022-04-12 19:24:02 +03:00
Jacek Sieka cf9074b2f4
add test for runways 2022-04-04 13:12:59 +02:00
Ștefan Talpalaru 371e60b17c
CI: test with multiple Nim versions (#23)
* CI: test with multiple Nim versions

* fix readIntoExImpl() when premature EOF is triggered on some Windows versions
* also fix some unrelated pointer math
2022-01-05 23:22:53 +01:00
Zahary Karadjov c653d05f27
Follow https://nim-lang.org/docs/asyncdispatch.html\#multiple-async-backend-support precisely 2021-12-08 16:59:12 +02:00
Jacek Sieka 1f62235d4f Enable --styleCheck:usages 2021-12-07 00:32:45 +02:00
Jacek Sieka 3a0ab42573
Don't import/export chronos by default (#20)
Chronos support is optional and should not have to be imported in order
to use faststreams for non-async use cases, as doing so pollutes the
global namespace and slows down compilation.

`async` support must now explicitly be enabled with
-d:async_backend=chronos|asyncdispatch
2021-08-20 14:10:26 +03:00
Ștefan Talpalaru 5eb7fd0c90 move to unittest2
to fix a clash with testutils
2021-05-28 08:29:18 +03:00
jangko 9f7f5ac370
add github action script 2021-01-07 12:18:00 +07:00
Zahary Karadjov bf930b6f1b
Implement readInto and read(n) 2020-05-03 04:35:34 +03:00
Zahary Karadjov b24300bd3f
Address review comments; Add documentation; Shared buffering mechanism for input and output streams 2020-05-01 19:12:58 +03:00
Zahary Karadjov f3d1c8883f
Address some review comments; Apply the same destructor fix to the output stream 2020-04-17 00:22:35 +03:00
Zahary Karadjov 69fc4e24ee
Initial work on pipelines 2020-04-14 16:34:39 +03:00
Zahary Karadjov 8a3cf6778d
Support Nim 1.2 2020-03-24 16:29:57 +02:00
Jacek Sieka 5135173f60
std_shims -> stew 2019-07-07 11:44:59 +02:00
Ștefan Talpalaru f0d909b0a6
*.nimble: don't use imports 2019-03-25 17:37:59 +01:00
Ștefan Talpalaru acd5a6063c
assert() -> doAssert()
Also fixed a test and added the other to the Nimble task.
2019-03-14 04:19:41 +01:00
Zahary Karadjov 7903f1680f More comprehensive OutputStream; Basic support for stream cursors 2019-03-11 11:36:32 +02:00
Ștefan Talpalaru cca110adf2
add "--threads:on" to tests
and a "test" task for Nimble and the test binary to .gitignore
2019-01-09 23:21:31 +01:00
Zahary Karadjov cb54254b77 Initial version (extracted from nim-serialization) 2018-12-17 23:49:42 +02:00