41 Commits

Author SHA1 Message Date
Thibaut Vandervelden
42dd475d30 Add code coverage using llvm-cov and codecov.io
Signed-off-by: Thibaut Vandervelden <thvdveld@vub.be>
2023-04-17 13:28:00 +02:00
Thibaut Vandervelden
68a67fa2d5 use shell script for CI tasks 2023-04-16 11:34:43 +02:00
Thibaut Vandervelden
d235b3a164 add more tests in CI 2022-11-29 15:25:33 +01:00
Thibaut Vandervelden
50842508bb add icmp tests for 6LoWPAN (also with frags) 2022-11-14 16:24:38 +01:00
Gopa Kumar
c53e6682fb Fix medium-ip not compiling complaining of needing EthernetAddress 2022-11-06 22:00:10 +01:00
Dario Nieuwenhuis
9d86fb9c90 Bump MSRV to 1.65 2022-11-06 21:39:04 +01:00
Nicholas Cyprus
0b17cba608 Bump MSRV to 1.61 2022-10-12 18:44:04 +00:00
Alex Crawford
8153a76433 Pin clippy to minimum supported Rust version
The rationale is the same as discussed in 0b0f96e:

> It can be rather surprising when new lints pop up when a new stable
> toolchain is released. Let's pin this check to a specific version to
> avoid those surprises.

In deciding which version of clippy to use, I went with the MSRV since
that's what's been done historically. The other option was to read
from the repo a version number specifically for clippy, but I was
afraid that adding one more version number to juggle would increase
the odds that it would be forgotten and fall out of sync.

Note that this approach uses rustup to install the toolchain
dynamically rather than making use of an action. The advantage of this
method is that it allows a single pull request to contain the version
bump and suggested code changes (this is due to the fact that
actions-rs/clippy-check requires a GitHub API token with write
permission, but a token of this type is only available when triggering
on `pull_request_target` which runs the action using the configuration
from the base of the pull request rather than the merge commit). The
disadvantage of this approach is that the toolchain setup can no
longer be cached by the underlying layering mechanism used by GitHub
actions (unlikely to significantly affect this project).
2022-08-11 12:27:40 -07:00
Alex
188a179f8f Limit the permissions of the clippy action
actions-rs/clippy-check only requires read/write access to the
"checks" scope. When the "permissions" object is present, all of the
scopes default to "none".
2022-08-08 14:13:13 -07:00
Dario Nieuwenhuis
f3e2a8adff Cleanup CI.
The GHA ubuntu images already have rustup, so actions-rs/toolchain is not required anymore.
2022-08-06 00:11:32 +02:00
Johannes Draaijer
f6f334cdc8 Set DEFMT_LOG in check workflow to ensure that all print statements
are "actually" compiled
2022-08-05 13:38:20 +02:00
Johannes Draaijer
4b76a38157 Bump Minimum Supported Rust Version from 1.56 to 1.60 2022-08-02 16:47:31 +02:00
Dario Nieuwenhuis
14a7f49232 dns: add to CI 2022-05-19 21:36:13 +02:00
Dario Nieuwenhuis
8256c3ce8c Update docs. 2021-12-11 00:36:37 +01:00
Dario Nieuwenhuis
3644b94b82 rand: use simple PRNG owned by Interface, sockets access it through Context. 2021-11-30 18:36:17 +01:00
Dario Nieuwenhuis
92676b9b67 Fix build when enabling only medium-ip 2021-11-26 20:14:35 +01:00
Emil Fresk
7f5747aecd Support defmt version 0.3 with new MSRV 2021-11-16 08:32:27 +01:00
Dario Nieuwenhuis
c1fe08a80b ci: do not run tests on master push
bors already tests the *result* of merging PRs into master, and then
pushes the *exact same commit* to master on success, so it's guaranteed
to pass CI. No point in running everything again.

This'll make other CI runs faster, since we have so many jobs that we're
always running against the GHA limit of 10 concurrent jobs.
2021-10-21 01:53:56 +02:00
Dario Nieuwenhuis
d5b2c75f08 Add medium-ieee802154 to CI.
Not adding to `defmt` because it doesn't build yet.
2021-10-21 01:38:19 +02:00
Dario Nieuwenhuis
5dbfc42aab Fix wrong matrix bot path 2021-10-20 15:35:32 +02:00
Dario Nieuwenhuis
67c3b3b7b1 Add rand module.
On `std` targets, `OsRng` is used by default. The user can supply a custom impl
by enabling the `rand-custom-impl` Cargo feature and using the `rand_custom_impl!()` macro.
Specifying a custom impl is mandatory when `std` is not enabled.
2021-10-11 20:53:04 +02:00
Emil Gardström
e6105161b0 make bors checks much simpler 2021-10-05 21:50:50 +02:00
Dario Nieuwenhuis
22400fe20c Fix fuzz on latest nightly.
See https://github.com/rust-fuzz/cargo-fuzz/issues/276
2021-09-26 22:09:48 +02:00
Dario Nieuwenhuis
51ca2b7566 Add bors 2021-09-16 19:39:23 +02:00
Thibaut Vandervelden
c94f669497 Update MSV of Rust 2021-09-10 14:41:03 +02:00
Dario Nieuwenhuis
c73d3d1b4a Bump MSRV to 1.46 2021-08-18 15:19:38 +02:00
Dario Nieuwenhuis
7ad5fe78cc Fix typo in rustfmt ci 2021-06-28 20:22:18 +02:00
Dario Nieuwenhuis
3abc8cf72e Enforce rustfmt in CI 2021-06-28 20:13:06 +02:00
Dario Nieuwenhuis
8a225837e2 Add Context struct. 2021-06-17 03:20:58 +02:00
Dario Nieuwenhuis
db27892392 Test with defmt-trace 2021-05-28 18:49:07 +02:00
Dario Nieuwenhuis
4f1e7b668d Document MSRV with the defmt exception, don't test defmt with 1.40 2021-04-01 02:15:35 +02:00
Dario Nieuwenhuis
2644f89345 Add test with defmt feature. 2021-04-01 01:42:17 +02:00
Dario Nieuwenhuis
b869449b31 Add support for TUN interfaces. 2021-03-31 17:05:09 +02:00
Dario Nieuwenhuis
4d8729088d Add medium-ip, medium-ethernet feature flags. 2021-03-31 17:05:09 +02:00
Dario Nieuwenhuis
b3b871e152 Fix build when with no socket features 2021-02-01 16:45:32 +01:00
Niclas Hoyer
633e7c2591 Use #[non_exhaustive] instead of manual variant 2021-01-09 02:06:00 +01:00
Alex Crawford
0b0f96e65a Pin clippy check to 1.49.0
It can be rather surprising when new lints pop up when a new stable
toolchain is released. Let's pin this check to a specific version to
avoid those surprises.
2021-01-04 10:42:26 -08:00
Alex Crawford
732cddb17d Enable clippy on tests and examples
Might as well run the lints on our tests and examples. When I first
started doing this cleanup, I thought this was the default, but I must
have run `cargo clippy --all-targets` at some point in there.
2021-01-04 10:39:33 -08:00
Alex Crawford
cd2f2a45bb Enforce that there are no warnings in clippy check 2020-12-28 23:31:17 -08:00
Dario Nieuwenhuis
23bb12a856 Async/await waker support. 2020-12-27 17:31:49 +01:00
Adam Greig
aafc5e79ca Add Github Actions for CI 2020-12-22 13:11:35 +00:00