Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb34c0d3

Browse files
Merge branch 'master' of github.com:workflow-rs/workflow-async-trait
2 parents49bf9da +0e01ebf commitb34c0d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "workflow-async-trait"
33
version ="0.1.68"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["asynchronous","no-std"]
6-
description ="Type erasure for async trait methods"
6+
description ="Type erasure for async trait methods (customized, see README.md notes)"
77
documentation ="https://docs.rs/async-trait"
88
edition ="2018"
99
keywords = ["async"]

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Async trait methods
66
[<imgalt="docs.rs"src="https://img.shields.io/badge/docs.rs-async--trait-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs"height="20">](https://docs.rs/async-trait)
77
[<imgalt="build status"src="https://img.shields.io/github/actions/workflow/status/dtolnay/async-trait/ci.yml?branch=master&style=for-the-badge"height="20">](https://github.com/dtolnay/async-trait/actions?query=branch%3Amaster)
88

9+
***
10+
This is a customized implementation of async trait that in addition to`async_trait` exports`async_trait_with_send` and`async_trait_without_send` attribute macros. This allows using`async_trait(?Send)` without the`?Send` qualifier, in-turn allowing use of`#cfg[]` conditional statements to alter between`Send` and`?Send` requirements based on features or platform architectures.
11+
***
12+
913
The initial round of stabilizations for the async/await language feature in Rust
1014
1.39 did not include support for async fn in traits. Trying to include an async
1115
fn in a trait produces the following error:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp