Skip to content

fix : build failed on mac / win#63

Merged
mcbridejc merged 2 commits intomcbridejc:mainfrom
Carbohydrate-42:zencan-client-upgrade
Apr 22, 2026
Merged

fix : build failed on mac / win#63
mcbridejc merged 2 commits intomcbridejc:mainfrom
Carbohydrate-42:zencan-client-upgrade

Conversation

@Carbohydrate-42
Copy link
Copy Markdown
Contributor

Hi, this PR enables zencan-client to compile on macOS and Windows.

Currently, the client is tied to SocketCAN, which restricts it to Linux. Since the existing abstraction is already quite clean, this PR only introduces minimal changes:

  • add conditional dependencies in Cargo.toml to avoid requiring SocketCAN on non-Linux platforms
  • slightly adjust the public API to make alternative CAN backends usable

This keeps the existing behavior on Linux unchanged, while allowing other platforms to use different CAN interfaces (e.g., USB-CAN).

Feedback is welcome!

720px-USB-CAN-A-1

@Carbohydrate-42 Carbohydrate-42 marked this pull request as draft April 16, 2026 07:26
@Carbohydrate-42 Carbohydrate-42 marked this pull request as ready for review April 16, 2026 07:26
@mcbridejc
Copy link
Copy Markdown
Owner

Thanks for this. I thought: better run the build on macos to make sure it doesn't break again! Now I just need to somehow remove, or noop the zencan-cli crate on non-linux platforms...

Carbohydrate-42 and others added 2 commits April 22, 2026 11:17
They will build, but only print error messages when run.
@mcbridejc mcbridejc force-pushed the zencan-client-upgrade branch from 30157b7 to c88bf08 Compare April 22, 2026 18:18
@mcbridejc mcbridejc merged commit 43f6c23 into mcbridejc:main Apr 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants