Skip to content

Commit

Permalink
docs: remove the obsolete instruction
Browse files Browse the repository at this point in the history
The `alloc` feature became stable.
  • Loading branch information
toku-sa-n committed Apr 1, 2021
1 parent 9d2ee6f commit 016677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ It's as simple as three steps:
- **Build method suppression**: You can use `#[builder(build_fn(skip))]` to disable auto-implementation of the build method and provide your own.
- **Custom build method error types**: You can use `#[builder(build_fn(error = "path::to::Error"))]` to have your builder return an error type of your choosing. By default, the macro will emit an error type alongside the builder.
- **Builder derivations**: You can use `#[builder(derive(Trait1, Trait2, ...))]` to have the builder derive additonal traits. All builders derive `Default` and `Clone`, so you should not declare those in this attribute.
- **no_std support**: Just add `#[builder(no_std)]` to your struct and add `#![feature(alloc)] extern crate alloc` to your crate. The latter requires the _nightly_ toolchain.
- **no_std support**: Just add `#[builder(no_std)]` to your struct and add `extern crate alloc` to your crate.

For more information and examples please take a look at our [documentation][doc].

Expand Down

0 comments on commit 016677c

Please sign in to comment.