How to have different dependencies depending on OS family How to have different dependencies depending on OS family unix unix

How to have different dependencies depending on OS family


As far as I read the docs here, this should now work:

[target.'cfg(unix)'.dependencies]abc-sys = "*"def = "*"[target.'cfg(windows)'.dependencies]abc-win = "*"


There currently is no way to do this. It would be nice, for sure.


# macos dependencies[target.'cfg(target_os = "macos")'.dependencies]dep1 = "*"dep2 = "*"# windows dependencies[target.'cfg(target_os = "windows")'.dependencies]dep3 = "*"dep4 = "*"# regular dependencies[dependencies] dep5 = "*"dep6 = "*"