Skip to content

Commit

Permalink
Fix no_std compilation error
Browse files Browse the repository at this point in the history
Added test for it as well
  • Loading branch information
Amjad50 committed Apr 14, 2024
1 parent 18aec2b commit 420d703
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@ jobs:
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
run: cargo hack --feature-powerset check

no_std:
# Check for no_std compatibility
runs-on: ubuntu-latest
name: ${{ matrix.target }}
strategy:
matrix:
target: [thumbv7m-none-eabi, aarch64-unknown-none]
steps:
- uses: actions/checkout@v4
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo check
run: cargo check --target ${{ matrix.target }} --no-default-features
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/mstange/framehop/"
exclude = ["/.github", "/.vscode", "/tests", "/fixtures", "/big-fixtures"]

[dependencies]
gimli = "0.29.0"
gimli = { version = "0.29", default-features = false, features = ["read"] }
object = { version = "0.35", optional = true }
thiserror-no-std = "2.0.2"
thiserror = { version = "1.0.0", optional = true }
Expand Down

0 comments on commit 420d703

Please sign in to comment.