Skip to content

Commit

Permalink
C-FEATURE: better conditional no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiwa4 authored Mar 3, 2024
1 parent e0e515b commit a5092f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ std = []

```rust
// In lib.rs
#![no_std]

#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "std")]
extern crate std;
```

Do not call the feature `use-std` or `with-std` or any creative name that is not
Expand Down

0 comments on commit a5092f8

Please sign in to comment.