Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chapter to book for nightly use #2762

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions burn-book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
- [Custom Optimizer]()
- [WebAssembly]()
- [No-Std](./advanced/no-std.md)
- [Nightly](./advanced/nightly.md)
17 changes: 17 additions & 0 deletions burn-book/src/advanced/nightly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Nightly

Burn has nightly support by default. However, one may meet this error during compilation:

```
error[E0658]: use of unstable library feature `allocator_api`
```

To solve it, the `hashbrown` crate with version higher than `0.15` needs to be involved explicitly in `Cargo.toml`:

```toml
hashbrown = { version = "0.15", features = ["nightly"] }
```

even it's not required by your code.

See [here](https://github.com/rust-lang/hashbrown/issues/564) for track the issue and [here](https://github.com/zakarumych/allocator-api2/issues/19) for the status.