This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```Compiling syntex v0.35.0 | |
Compiling quasi v0.12.0 | |
Compiling aster v0.18.0 | |
Compiling quasi_codegen v0.12.0 | |
Compiling serde_codegen v0.7.10 (https://github.com/serde-rs/serde?rev=8a09f05644ad286e5a18c714ec1af58ed90d1d8b#8a09f056) | |
error[E0463]: can't find crate for `syntex` | |
--> /home/vagrant/.multirust/toolchains/stable/cargo/git/checkouts/serde-1cbd136c2e06ab68/8a09f05644ad286e5a18c714ec1af58ed90d1d8b/serde_codegen/build.rs:3:5 | |
| | |
3 | extern crate syntex; | |
| ^^^^^^^^^^^^^^^^^^^^ can't find crate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Device { | |
pub data: u32 | |
} | |
impl Device { | |
pub fn new() -> Self { Device { data: 0 } } | |
pub fn async(&mut self) -> BoxFuture<(), ()> { | |
async_fn().and_then(|result| { | |
self.data = result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::marker::PhantomData; | |
use std::pin::Pin; | |
use std::task::{Context, Poll}; | |
use bincode::Error; | |
use bytes::{Bytes, BytesMut}; | |
use futures::{Sink, Stream, TryStream}; | |
use pin_utils::unsafe_pinned; | |
use serde::{Deserialize, Serialize}; | |
use tokio_serde::{Deserializer, FramedRead, FramedWrite, Serializer}; |
OlderNewer