Skip to content

Instantly share code, notes, and snippets.

View DWVoid's full-sized avatar

刘予顺 DWVoid

  • Shanghai,China
View GitHub Profile
@DWVoid
DWVoid / lib.rs
Created October 17, 2023 09:07
rust to external async runtime
extern crate alloc;
use alloc::{boxed::Box, sync::Arc};
use core::{
future::Future,
pin::Pin,
task::{Context, Poll},
};
use std::mem::ManuallyDrop;
use std::sync::Mutex;