project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
329 stars 45 forks source link

Error building on full no_std #201

Closed sivakov512 closed 1 month ago

sivakov512 commented 3 months ago

Hi! I'm trying to make it work on esp32-c3 without std, but got this

   Compiling scopeguard v1.2.0
error[E0463]: can't find crate for `std`
  |
  = note: the `riscv32imc-unknown-none-elf` target may not support the standard library
  = note: `std` is required by `scopeguard` because it does not declare `#![no_std]`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

How to make it compile for no_std environment? Is it possible?

ivmarkov commented 2 months ago

Hi! I'm trying to make it work on esp32-c3 without std, but got this

   Compiling scopeguard v1.2.0
error[E0463]: can't find crate for `std`
  |
  = note: the `riscv32imc-unknown-none-elf` target may not support the standard library
  = note: `std` is required by `scopeguard` because it does not declare `#![no_std]`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

How to make it compile for no_std environment? Is it possible?

@sivakov512

I'm so sorry! The repo is setup in such a way, that I don't get email notifications when somebody opens an issue or a PR request, so I've missed yours.

(@kedars - would you adjust the repo settings so that I'm notified on any activities related to issues and PRs? I'll send you my email address over Matrix privately.) (UPDATE: Fixed)

As for the issue - I'll open a PR that fixes it in a few mins.

ivmarkov commented 2 months ago

This PR should take care of the issue.

ivmarkov commented 1 month ago

The PR is now merged, closing.