extendr / extendr/extendr.github.io

blog: doc usage of anyhow!

Open
#72 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
10
Forks
8
Avg merge
20h 26m
Merged PRs (30d)
5

Description

Since https://github.com/extendr/extendr/pull/973 returning `anyhow::Result<>` works without any modification.

I think this is a huge quality of life improvement. We can make a patch release with these features and document it?

For example:

```rust
use anyhow::bail;
use extendr_api::prelude::*;

#[extendr]
fn can_we_anyhow() -> anyhow::Result<()> {
bail!("This is an error");
Ok(())
}
```

lets us return a nice error

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.