Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run cargo expand outside the normal target directory
When crates should get expanded, then cargo is run again from within cbindgen. When cbindgen is started from a build.rs file, this means that cargo is starting another cargo run. Cargo locks the directory it is running on. If two cargos spawn by each other run with the same target directory, then they both want to accquire a lock and hence deadlock. This commit fixes the problem with running the spawned cargo at a different directory. Please note that this will always be the same directory, hence any subsequent runs will be faster (as you would exepct it to be). This is part of mozilla#347.
- Loading branch information