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 = "*"
# 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 = "*"