bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
662 stars 426 forks source link

Example of local path crate dependency? #2961

Open sthornington opened 5 hours ago

sthornington commented 5 hours ago

Does anyone have a working example of a cargo crate dependency in a crate_universe which is referred to by path on disk? Or any way to depend upon a local copy of a crate that you are actively working on?

I am having terrible trouble actively iterating on crates that I depend upon alongside a Bazel workspace that uses them...

timbess commented 4 hours ago

@sthornington I had to symlink external directories into the workspace to get it to work for me.

sthornington commented 4 hours ago

But they are still crates and lacking BUILD files? I haven't even been able to get this working... cargo-bazel gives some sort of splicing error. What version of rules_rust are you on?