dirs-rs
dirs-rs copied to clipboard
Question/Feature `Return error instead of compiler-error on non-supported platforms`
Hey,
What's your opinions on providing dummy implementation (returning None) for platforms that are not Windows, Linux or OSX?
If you are positive to this I have a branch ready to do that and can create a PR!
Hi @niklasad1, I don't have a fixed opinion on it, and would love to hear your position.
Which platforms do you have in mind? What would be the benefits? Wouldn't it be better to just fail compilation?
(Although I feel like with the deprecation of std::env::home_dir I'm now on the hook for supporting pretty much every operating system under the sun ...)