Skip to content

Commit beb4e58

Browse files
committed
chore: no_std
1 parent e4f2534 commit beb4e58

File tree

2 files changed

+12
-4
lines changed
  • packages

2 files changed

+12
-4
lines changed

packages/const-array-string/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
// #![no_std]
2-
#![cfg_attr(not(test), no_std)]
1+
#![no_std]
2+
3+
#[cfg(any(doc, test))]
4+
extern crate std;
5+
#[cfg(any(doc, test))]
6+
use std::prelude::rust_2021::*;
37

48
use const_array_vec::ArrayVec;
59

packages/const-array-vec/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
// #![no_std]
2-
#![cfg_attr(not(test), no_std)]
1+
#![no_std]
2+
3+
#[cfg(any(doc, test))]
4+
extern crate std;
5+
#[cfg(any(doc, test))]
6+
use std::prelude::rust_2021::*;
37

48
#[derive(Clone, Copy)]
59
pub struct ArrayVec<T, const CAP: usize> {

0 commit comments

Comments
 (0)