diff --git a/burn-book/src/SUMMARY.md b/burn-book/src/SUMMARY.md index 7bf98af659..0c71d10a45 100644 --- a/burn-book/src/SUMMARY.md +++ b/burn-book/src/SUMMARY.md @@ -33,3 +33,4 @@ - [Custom Optimizer]() - [WebAssembly]() - [No-Std](./advanced/no-std.md) + - [Nightly](./advanced/nightly.md) diff --git a/burn-book/src/advanced/nightly.md b/burn-book/src/advanced/nightly.md new file mode 100644 index 0000000000..9b2287f03b --- /dev/null +++ b/burn-book/src/advanced/nightly.md @@ -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. \ No newline at end of file