❯ cargo export target/benchmarks -- bench --bench=varint
Finished `bench` profile [optimized] target(s) in 0.02s
proto on main [!+?] via v1.79.0-nightly
❯ cargo bench --bench=varint -- compare target/benchmarks/varint
...
warning: `proto` (bench "varint") generated 1 warning (run `cargo fix --bench "varint"` to apply 1 suggestion)
Finished `bench` profile [optimized] target(s) in 0.02s
Running benches/varint.rs (target/release/deps/varint-16f799b99b9a0b6c)
thread 'main' panicked at /Users/andrewgazelka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tango-bench-0.5.0/src/dylib.rs:54:14:
called `Result::unwrap()` on an `Err` value: Unable to open library: target/benchmarks/varint
Caused by:
dlopen(target/benchmarks/varint, 0x0005): tried: 'target/benchmarks/varint' (no such file), '/System/Volumes/Preboot/Cryptexes/OStarget/benchmarks/varint' (no such file), '/usr/lib/target/benchmarks/varint' (no such file, not in dyld cache), 'target/benchmarks/varint' (no such file)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: bench failed, to rerun pass `-p proto --bench varint`
Note if I change to the directory the crate is in (I am using a workspace) it will work fine
Note if I change to the directory the crate is in (I am using a workspace) it will work fine