print some log into a file cargo tree > dependencies.txt run cargo tree command to a text file and search for some content if terminal log is too please use following command cargo deny check > output.log 2>&1