File: README.md

package info (click to toggle)
rust-thiserror-core 1.0.38-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 444 kB
  • sloc: makefile: 2
file content (27 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# derive(Error) for no_std environments

This is a fork of thiserror using the nightly only, experimental error_in_core
feature in no_std environments.

## Usage

```toml
// Cargo.toml
[dependencies]
thiserror = { version = "1.0", package = "thiserror-core", default-features = false }
```

```rust
// main.rs / lib.rs
#![no_std]
#![feature(error_in_core)]
```

## Differences between thiserror and thiserror-core

Differences are kept to a minimum and changes in thiserror master will be adopted by rebasing thiserror-core.

With the default `std` feature enabled, any functional difference between thiserror and thiserror-core is considered a bug.

As soon as the matching [PR](https://github.com/dtolnay/thiserror/pull/211) is merged or equivalent changes are adopted,
this crate will be updated to re-export thiserror.