thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。
当前位置: 首页 >
来源: 作者: 次浏览
BB贝博官方网站,BB贝博网页版,BB贝博APP下载,BB贝博平台,BB贝博登录入口
thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。
版权@|备案:粤-ICP备51820964号-1|网站地图