From 907642e85412b7b7fbe0e40d415b16d06990b41a Mon Sep 17 00:00:00 2001 From: TKFRvisionOfficial <52245132+TKFRvisionOfficial@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:00:02 +0200 Subject: [PATCH] Fixing no-std support - made thiserror optional --- Cargo.toml | 5 +++-- ChangeLog.txt | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c0c26c5..1a0580d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,11 +16,12 @@ version = "4.0.1" [dependencies] doc-comment = "^0.3" paste = "^1.0" -thiserror = "^1.0.29" +thiserror = { version = "^1.0.29", optional = true } [dev-dependencies] rand = "^0.8" [features] default = ["std"] -std = [] +# TODO Once we're rust 1.60+ only, we should write "dep:thiserror" instead of "thiserror" +std = ["thiserror"] diff --git a/ChangeLog.txt b/ChangeLog.txt index 1d39c81..7717891 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,7 @@ 4.0.2 (unreleased) ------ - Add CI jobs checking this crate for SemVer-breaking API changes +- Fix no-std support and add a cI job testing for it (https://github.com/smessmer/binary-layout/pull/25 and https://github.com/smessmer/binary-layout/pull/28 ) 4.0.1 ------