From 2097524c851b15e89091fd3775817a06f0eeae4f Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 24 Apr 2022 17:39:21 -0700 Subject: fix a few issues preventing no-std builds from ... building this includes a `Makefile` that exercises the various crate configs. most annoyingly, several doc comments needed to grow `#[cfg(feature="fmt")]` blocks so docs continue to build with that feature enabled or disabled. carved out a way to run exhaustive tests; they should be written as `#[ignore]`, and then the makefile will run even ignored tests on the expectation that this will run the exhaustive (but slower) suite. exhaustive tests are not yet written. they'll probably involve spanning 4 byte sequences from 0 to 2^32-1. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c045d31 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +test: test-fast test-exhaustive + +test-fast: test-std test-no-std test-fmt-no-std + +test-exhaustive: + cargo test -- --ignored + cargo test --no-default-features -- --ignored + +test-std: + cargo test +test-no-std: + cargo test --no-default-features +test-fmt-no-std: + cargo test --no-default-features --features "fmt" -- cgit v1.1