Skip to content

Commit

Permalink
docs: remove the obsolete instruction (#202)
Browse files Browse the repository at this point in the history
The `alloc` feature became stable.
  • Loading branch information
toku-sa-n committed Apr 20, 2021
1 parent 57179c6 commit 0b5c1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion derive_builder/README.md
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 0b5c1ac

Please sign in to comment.