thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。
作者:时间:{dede:field name='pubdate'function='strftime("%Y-%m-%d %H:%M:%S",@me)' /} 次浏览
Rust使用?多次传播错误后,怎么定位最开始发生error的地方?_山西省临汾市翼城县反递再生能源合伙企业
thiserror和anyhow不是说不能混用,但实在没啥必要,根据thiserror文档建议,bin项目用anyhow,lib项目用thiserror。
不过针对本问题来说,只是为了看error source的话,当然是color-eyre比anyhow更清晰。
。