You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, the sys_common module is meant to be common to all platforms. However, sys_common::net assumes existence of a LibC, specifically for some of its types:
use libc::{c_int, c_void};
In my case, I have redefined these types within my sys implementation and just use those instead, but I thought I'd get discussion started on whether, moving forward, we're going to continue assuming every platform should have to provide a LibC, and whether we could eliminate these particular use-cases at any point?
Just for context, my goal here is to provide a libstd implementation for my OS that doesn't depend on a LibC at all.
The text was updated successfully, but these errors were encountered:
we're going to continue assuming every platform should have to provide a LibC
Most definitely not.
The types you mention are actually part of the C ABI, not actual libc. They're also defined in std::os::raw. There has been significant discussion in the past about where these type definitions should live. I'm still in favor of a ctypes crate. See #13
sys_common::net also has the problem of not really being "common" code like most other things in the sys_common module. Seems like the platform-specific bits should be in sys instead.
As far as I understand, the
sys_common
module is meant to be common to all platforms. However,sys_common::net
assumes existence of a LibC, specifically for some of its types:In my case, I have redefined these types within my
sys
implementation and just use those instead, but I thought I'd get discussion started on whether, moving forward, we're going to continue assuming every platform should have to provide a LibC, and whether we could eliminate these particular use-cases at any point?Just for context, my goal here is to provide a
libstd
implementation for my OS that doesn't depend on a LibC at all.The text was updated successfully, but these errors were encountered: