Skip to content

Commit

Permalink
Subxt Metadata: #[no_std] compatibility (#1401)
Browse files Browse the repository at this point in the history
* no-std tests and porting of subxt-metadata

* update pipeline

* fix generate custom metadata test

* fix cargo run command

* adjust pipeline

* remove prelude from subxt-metadata

* revert autoformatting of Cargo.toml

* remove alloc::format! again, still causes linker errors

* add no-std-build for thumbv7em-none-eabi target

* remove std feature flag

* remove libc and add small readme with test instructions

* change ci for nightly no std
  • Loading branch information
tadeohepperle committed Feb 15, 2024
1 parent db00212 commit fda9a5f
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 110 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ jobs:
profile: minimal
toolchain: nightly
override: true
target: thumbv7em-none-eabi

- name: Add the `thumbv7em-none-eabi` target
run: |
rustup target add `thumbv7em-none-eabi`
- name: Install the gcc-arm-none-eabi linker
run: sudo apt install gcc-arm-none-eabi

- name: Rust Cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
Expand All @@ -448,8 +448,7 @@ jobs:
# We can only make sure that they compile to ARM thumb ISA.
# Running the binary and inspecting the output would require an actual machine with matching ISA or some sort of emulator.
- name: Compile `no-std-tests` crate to `thumbv7em-none-eabi` target.
run: |
cargo build --target thumbv7em-none-eabi
run: cargo build --target thumbv7em-none-eabi
working-directory: testing/no-std-tests

- if: "failure()"
Expand Down
Loading

0 comments on commit fda9a5f

Please sign in to comment.