From 9604859a6d77622a22c7ca92e2ece4b70947dbed Mon Sep 17 00:00:00 2001 From: Alex Xiong Date: Wed, 3 Aug 2022 12:31:00 +0800 Subject: [PATCH] use core/alloc instead of std --- bindings/rust/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 7955931b..acfb2572 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -2,16 +2,17 @@ // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 +#![no_std] #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] +use alloc::sync::{mpsc::channel, Arc, Barrier}; use core::any::Any; use core::mem::MaybeUninit; +use core::num::Wrapping; use core::ptr; use core::sync::atomic::*; -use std::num::Wrapping; -use std::sync::{mpsc::channel, Arc, Barrier}; use zeroize::Zeroize; #[cfg(not(feature = "no-threads"))]