target_dir of cargo doesn't seem to be used. #1154
Description
According to this pull request #793, RLS should use cargo target_dir
config and join it with rls
. However, this doesn't work, I have a .cargo/config
in my project, cargo correctly use my custom target_dir, but RLS seem to ignore it and build into target/rls
. Maybe this feature only work for cargo config that are more global ? (in the home for exemple).
Also, I found that the behavior of target-dir
is ambigus, in one way we could suppose that it's only for the root directory target
by default. But it's seem to be for the full path target/rls
. That confuse with the pull request that claim use default from cargo.
Maybe, it would be better to split this into two variables (target-dir-cargo
, target-dir
), or maybe use a totally different directory target
for cargo and just rls
for RLS ? Currently, I think the behavior is a little odd, and also not documented.
I ask this cause this trouble me when using ide-rust rust-lang/atom-ide-rust#110.