While running this command /home/hw/.cargo/bin/cargo fmt --all -- --check
, make error :no such subcommand: fmt
. (I suspect other subcommand not find, too)
I try to update rustfmt and use it in other project successful. But in thrift rust subcomponent is not useable.
I am searching for a long time on net. But no use. Please help or try to give some ideas how to fix this.
OS:ubuntu 20.04
rustc/cargo 1.40.0
rustup 1.24.2
GNU Make 4.2.1
project https://github.com/apache/thrift
I also encountered this problem when trying to install Thrift. When I tried to rethink of it, I found that I didn't use ./bootstrap.sh
at first as the installation says.
After doing that, I can install Thrift successfully~