Target.'cfg(target_os="android") or IOS doesn't work

So target is only host not a target of the build? I totally misunderstood it...
If there a way to implement what I want, for a target of build?

In toml. it also target host or build target?