Document standard library organization #5792
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
docs
standard library
This issue involves writing Zig code for the standard library.
Milestone
Even though I've used the standard library a fair amount, I'm still unsure of where to find things when I need them and where to add things when I make contributions. I've searched for a document that describes where things go but haven't found one, and I've also encountered differences in opinion about where things are meant to go.
I'd like to see documentation that explains the purpose for each module in the standard library. Things like:
std.c
: external symbol declarations forlibc
std.os.windows.bits
: constant/struct type declarations used throughout the windows APIstd.os.windows
: wraps the windows APIs to make them more zig friendlystd.os.windows.kernel32
: external symbol declarations forkernel32.dll
std.fs.file
: platform-independent API for managing filesSince this information changes, it's probably best to put it somewhere inside the
zig
repository. Maybe it should be put instd.zig
as apart of the documentation comments that are rendered into the standard library docs.The text was updated successfully, but these errors were encountered: