Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's do-able, but you seem to have to go out of your way organise code or modules in sub-optimal ways to compensate in many cases.

Most of the crates which I've seen which do that kind of thing in my experience seem to use features or conditional modules, which as I've discussed above have other downsides. Others like Vek seem to just get LLVM to do the work.

I think that's a bit disingenuous: I've certainly found Rust's infrastructure in this area quite limiting and a pain point for myself.



Conditional modules are a nice solution to this problem.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: