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:
Ayaz Hafiz 2023-03-25 17:09:38 -05:00
parent 1891df77b8
commit 782a9839ac
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;