Skip to content

Commit 6b9d06e

Browse files
author
Pascal Hertleif
committed
Move the thing that prevents no_std into rpc
So, [currently][1], `async` fns/closures prevent crates from building in a no_std environment. Since the only occurrence is this single `send` method, I've moved it to the rpc crate. [1]: rust-lang/rust#56974
1 parent 21ca13c commit 6b9d06e

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

capnp-rpc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ mod sender_queue;
112112
mod split;
113113
mod task_set;
114114
pub mod twoparty;
115+
mod send_ext;
115116

116117
pub trait OutgoingMessage {
117118
fn get_body<'a>(&'a mut self) -> ::capnp::Result<::capnp::any_pointer::Builder<'a>>;

capnp-rpc/src/rpc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ use crate::attach::Attach;
4444
use crate::{broken, local, queued};
4545
use crate::local::ResultsDoneHook;
4646
use crate::task_set::TaskSet;
47+
use crate::send_ext::SendExt;
4748

4849
pub type QuestionId = u32;
4950
pub type AnswerId = QuestionId;

capnp/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ pub mod any_pointer;
3939
pub mod any_pointer_list;
4040
pub mod capability;
4141
pub mod capability_list;
42-
// #[cfg(not(feature = "std"))]
43-
mod capability_no_std;
44-
// #[cfg(feature = "std")]
45-
// mod capability_std;
4642
pub mod constant;
4743
pub mod data;
4844
pub mod data_list;

0 commit comments

Comments
 (0)