1*d4726bddSHONG Yifan# upstream_wrapper 2*d4726bddSHONG Yifan 3*d4726bddSHONG YifanWrap the binaries from the current toolchain so that 4*d4726bddSHONG Yifanthey can be easily invoked with `bazel run`: 5*d4726bddSHONG Yifan 6*d4726bddSHONG Yifan```bash 7*d4726bddSHONG Yifanbazel run @rules_rust//tools/upstream_wrapper:cargo 8*d4726bddSHONG Yifanbazel run @rules_rust//tools/upstream_wrapper:cargo -- clippy 9*d4726bddSHONG Yifanbazel run @rules_rust//tools/upstream_wrapper:cargo -- fmt 10*d4726bddSHONG Yifanbazel run @rules_rust//tools/upstream_wrapper:rustc -- main.rs 11*d4726bddSHONG Yifanbazel run @rules_rust//tools/upstream_wrapper:rustfmt 12*d4726bddSHONG Yifan``` 13*d4726bddSHONG Yifan 14*d4726bddSHONG YifanAlternatively, look at the [bazel_env example](../../examples/bazel_env/) 15*d4726bddSHONG Yifanto include them in the users path with direnv. 16