antoniusnaumann / cargo-swift

A cargo plugin to easily build Swift packages from Rust code
https://crates.io/crates/cargo-swift
Apache License 2.0
173 stars 22 forks source link

Locate target dir instead of enforcing it #27

Closed antoniusnaumann closed 11 months ago

antoniusnaumann commented 11 months ago

Currently, cargo swift enforces the target directory to be located in the crates top-level directory, which may be undesirable for crates that are part of a workspace. This behavior was introduced as a quick fix to #24.

Instead, cargo swift should locate the target directory. This is possible by invoking cargo metadata --no-deps --format-version 1