Clarifications on Rust's Relationship to Libc
Preface I'm hoping this thread will be a useful resource for others (and myself) in clearing up what the libc dependency is, is not, and what is entailed by it. Efforts to answer this myself are...
View ArticleClarifications on Rust's Relationship to Libc
You should really look into the Redox-OS project (full OS, kernel and all, written in Rust). They have had to answer all of these questions and probably are the most knowledgeable (outside the...
View ArticleClarifications on Rust's Relationship to Libc
I don't know a ton about porting rustc/LLVM to new platforms, so I hope someone more knowledgeable will answer those questions. I can try to answer some of the other ones, though: jeff-hykin: Can...
View ArticleClarifications on Rust's Relationship to Libc
Rust, the language, doesn't depend on libc. There are no-std targets. There are also targets like WASM/WASI which don't use libc in any way. If you were porting Rust's libstd to a new platform you...
View ArticleClarifications on Rust's Relationship to Libc
On all major OSes outside of Linux you have to use libc or its analog, since it's the only stable way for a program to talk with OS. You can compile Rust programs for Linux which do not link libc...
View ArticleClarifications on Rust's Relationship to Libc
newpavlov: outside of Linux you have to use libc or its analog, since it's the only stable way for a program to talk with OS Important to note that this limitation is imposed by the OS not providing...
View ArticleClarifications on Rust's Relationship to Libc
Thank you all so much for these awesome answers. I think together they cover 95% (only two minor questions at the bottom). I'll try to confirm/summarize here to make sure I'm unstanding correctly. In...
View ArticleClarifications on Rust's Relationship to Libc
Also, if anyone is reading this, but doesn't understand these answers, do ask follow up questions. I think I understand the system well enough now to answer them myself Read full topic
View ArticleClarifications on Rust's Relationship to Libc
jeff-hykin: very similar to the case of targeting WASM/WASI that @kornel mentioned Note that his statement about WASI is not entirely correct. Unfortunately (to me) the WASI target is also dependent...
View ArticleClarifications on Rust's Relationship to Libc
Thanks for mentioning this and the link. That is surpising. I'll continue the discussion on WASM over there after reading more about it Read full topic
View ArticleClarifications on Rust's Relationship to Libc
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments. Read full topic
View Article