Giter Club home page Giter Club logo

Comments (12)

nevi-me avatar nevi-me commented on June 19, 2024 2

With #48 and #43, I can now compile this as a dependency on an ESP32-C3. Now I'm going to try the LED example to see if I can get it working 😃

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024 1

The simplest solution to rustix is to compile env_logger with default features disabled, I'll make a PR for that.

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

If one replaces smol = "1.3.0" with the one from https://github.com/esp-rs-compat/smol, it removes the socket2, libc and signal-hook-registry errors. So it looks like it's really only rustix that I can't find a known patch for somewhere.

from rs-matter.

kedars avatar kedars commented on June 19, 2024

I had created an example that built on ESP32 (https://github.com/kedars/matter-rs/blob/master/examples/esp-onoff-light/Cargo.toml). The crypto part was all nullified, but the build was functional. It was quite an old version of the matter-rs so, but in case it helps your investigations.

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

Thank you, I hadn't seen that. I've taken a brief look at it, it'll help me build an example once I've sorted out the deps.

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

@kedars after resolving dependency issues, building fails because of the sys module not having a target_os = "espidf"

#[cfg(target_os = "macos")]
mod sys_macos;
#[cfg(target_os = "macos")]
pub use self::sys_macos::*;

#[cfg(target_os = "linux")]
mod sys_linux;
#[cfg(target_os = "linux")]
pub use self::sys_linux::*;

#[cfg(any(target_os = "macos", target_os = "linux"))]
mod posix;
#[cfg(any(target_os = "macos", target_os = "linux"))]
pub use self::posix::*;

So I was unsure of how to proceed from there. When building with hte esp Rust target, Cargo sets target_os to espidf.

from rs-matter.

kedars avatar kedars commented on June 19, 2024

Yes, those things got introduced later on. You'll have to create the sys_espidf target, and implement the Psm and mDNS APIs. For now, you can just keep them empty?

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

That's a reasonable approach, I'll do that, thanks.

from rs-matter.

ivmarkov avatar ivmarkov commented on June 19, 2024

@kedars We should probably close this, because the two new branches compile for ESP IDF just fine.

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

Yes

from rs-matter.

ivmarkov avatar ivmarkov commented on June 19, 2024

@nevi-me Were you successful in running either of the branches on an ESP32 MCU?

from rs-matter.

nevi-me avatar nevi-me commented on June 19, 2024

@nevi-me Were you successful in running either of the branches on an ESP32 MCU?

I haven't checked yet, I'll have time properly in the weekend. I'll confirm on Matrix when I've done so.

from rs-matter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.