Skip to content

Commit 36b2514

Browse files
committed
Note the std feature in README.md
1 parent 4fbc583 commit 36b2514

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ and this to your crate root:
2121
extern crate num_traits;
2222
```
2323

24+
## Features
25+
26+
This crate can be used without the standard library (`#![no_std]`) by disabling
27+
the default `std` feature. Use this in `Cargo.toml`:
28+
29+
```toml
30+
[dependencies.num-traits]
31+
version = "0.1"
32+
default-features = false
33+
```
34+
35+
The `Float` and `Real` traits are only available when `std` is enabled.
36+
2437
## Releases
2538

2639
Release notes are available in [RELEASES.md](RELEASES.md).

0 commit comments

Comments
 (0)