Skip to content

Commit 96c931c

Browse files
committed
Make the crate no_std
Fixes #2.
1 parent 0ad443f commit 96c931c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "default-boxed"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
description = "Helper trait to help create large struct on heap directly"
55
authors = ["Xidorn Quan <[email protected]>"]
66
repository = "https://github.com/upsuper/default-boxed"
77
keywords = ["box", "allocator", "memcpy"]
8-
categories = ["memory-management"]
8+
categories = ["memory-management", "no-std"]
99
edition = "2018"
1010
license = "MIT"
1111
readme = "README.md"

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// TODO: It is possible to make this crate `no_std`, but we need to figure out how to work around
2-
// doc tests. Maybe just wait for `cfg(doctest)` to be stabilized.
3-
// #![no_std]
1+
#![cfg_attr(not(doctest), no_std)]
42

53
extern crate alloc;
64

0 commit comments

Comments
 (0)