Skip to content

Commit

Permalink
Move the thing that prevents no_std into rpc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Pascal Hertleif committed Feb 11, 2020
1 parent 21ca13c commit 6b9d06e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions capnp-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ mod sender_queue;
mod split;
mod task_set;
pub mod twoparty;
mod send_ext;

pub trait OutgoingMessage {
fn get_body<'a>(&'a mut self) -> ::capnp::Result<::capnp::any_pointer::Builder<'a>>;
Expand Down
1 change: 1 addition & 0 deletions capnp-rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ use crate::attach::Attach;
use crate::{broken, local, queued};
use crate::local::ResultsDoneHook;
use crate::task_set::TaskSet;
use crate::send_ext::SendExt;

pub type QuestionId = u32;
pub type AnswerId = QuestionId;
Expand Down
4 changes: 0 additions & 4 deletions capnp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ pub mod any_pointer;
pub mod any_pointer_list;
pub mod capability;
pub mod capability_list;
// #[cfg(not(feature = "std"))]
mod capability_no_std;
// #[cfg(feature = "std")]
// mod capability_std;
pub mod constant;
pub mod data;
pub mod data_list;
Expand Down

0 comments on commit 6b9d06e

Please sign in to comment.