thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。
上一篇:孩子网上学编程,靠谱吗?
下一篇:为什么不用rust重写Nginx?
2025-06-23 23:50:16
thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。