rust-lang / rust-lang/libc

Missing all CAN related constants on MacOS

Open
#3,959 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-API-request
Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
69

Description

Likely similar to https://github.com/rust-lang/libc/issues/3626 -- but I have no access to CAN constants when working on a Mac

Is this a weird request? I am not expecting to be able to run this code on a Mac but the compiler is yelling at me saying that AF_CAN and friends do not exist 😥

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Rust libc bindings and the missing AF_CAN constants, but no repository file or test. Start by comparing the linked libc issue 3626 and tracing where platform constants are declared. Done means the relevant CAN constants are exposed for compilation on macOS without implying CAN runtime support there.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.