libcore-drone

Crates.iolibcore-drone
lib.rslibcore-drone
version0.11.1
sourcesrc
created_at2019-09-20 15:40:15.724015
updated_at2020-05-11 12:18:06.936747
descriptionA libcore wrapper to enable async/await for Drone apps.
homepagehttps://www.drone-os.com/
repositoryhttps://github.com/drone-os/libcore-drone
max_upload_size
id166233
size18,701
Valentine Valyaeff (valff)

documentation

README

crates.io maintenance

libcore-drone

DEPRECATED This crate became obsolete starting from Drone 0.12 since ("Use generator resume arguments in the async/await lowering")[https://github.com/rust-lang/rust/pull/69033] was merged.

A libcore wrapper to enable native async/await syntax for Drone applications.

Usage

Place the following to the Cargo.toml:

[dependencies]
core = { package = "libcore-drone", version = "0.11.1" }

Description

This crate re-exports contents of [core] and defines two new functions with the following paths:

  • core::future::from_generator
  • core::future::poll_with_tls_context

These two functions are absent from original libcore, but defined in libstd. This is the reason for the following errors when you attempt to use .await in no_std context:

error[E0433]: failed to resolve: could not find `poll_with_tls_context` in `future`
error[E0433]: failed to resolve: could not find `from_generator` in `future`

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 8

cargo fmt