Skip to content

Commit

Permalink
Fixing no-std support
Browse files Browse the repository at this point in the history
- made thiserror optional
  • Loading branch information
TKFRvisionOfficial authored and smessmer committed Apr 13, 2024
1 parent 58daabf commit 907642e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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
------
Expand Down

0 comments on commit 907642e

Please sign in to comment.