Skip to content

Commit

Permalink
Add #![no_std]
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 24, 2016
1 parent c2064cc commit 2baa28b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enum_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ assert_eq!(from_troll(&troll_number), Ok(number));
```
*/

#![no_std]
extern crate core as std;
use std::fmt;

#[doc(hidden)]
Expand Down
2 changes: 2 additions & 0 deletions newtype_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ macro_rules! Newtype\2 {
```
*/

#![no_std]

mod std_unstable;

#[doc(hidden)]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Third, each derivation macro is expected to result in zero or more items, not in
Finally, `@impl` is merely a trick to pack multiple, different functions into a single macro. The sequence has no special meaning; it is simply *distinct* from the usual invocation syntax.
*/

#![no_std]

#[doc(hidden)]
#[macro_export]
macro_rules! custom_derive {
Expand Down

0 comments on commit 2baa28b

Please sign in to comment.