mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Only mark roc_std no_std if std feature is not present
Otherwise, you will get compile errors with the std feature.
This commit is contained in:
parent
1891df77b8
commit
782a9839ac
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
//! Provides Rust representations of Roc data structures.
|
//! Provides Rust representations of Roc data structures.
|
||||||
#![no_std]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
use arrayvec::ArrayString;
|
use arrayvec::ArrayString;
|
||||||
|
|
|
@ -18,7 +18,7 @@ use core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use core::ffi::{CStr, CString};
|
use std::ffi::{CStr, CString};
|
||||||
|
|
||||||
use crate::RocList;
|
use crate::RocList;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue