File: disable-test.diff

package info (click to toggle)
rust-pollster-macro 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 128 kB
  • sloc: makefile: 4
file content (68 lines) | stat: -rw-r--r-- 1,791 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Index: pollster-macro/Cargo.toml
===================================================================
--- pollster-macro.orig/Cargo.toml
+++ pollster-macro/Cargo.toml
@@ -44,13 +44,13 @@ name = "pollster_macro"
 path = "src/lib.rs"
 proc-macro = true
 
-[[test]]
-name = "main"
-path = "tests/main.rs"
+#[[test]]
+#name = "main"
+#path = "tests/main.rs"
 
-[[test]]
-name = "test"
-path = "tests/test.rs"
+#[[test]]
+#name = "test"
+#path = "tests/test.rs"
 
 [dependencies.proc-macro2]
 version = "1"
Index: pollster-macro/src/lib.rs
===================================================================
--- pollster-macro.orig/src/lib.rs
+++ pollster-macro/src/lib.rs
@@ -8,20 +8,6 @@ use quote::ToTokens;
 use syn::spanned::Spanned;
 use syn::{Error, Expr, ExprLit, ExprPath, ItemFn, Lit, MetaNameValue, Result};
 
-/// Uses [`pollster::block_on`] to enable `async fn main() {}`.
-///
-/// # Example
-///
-/// ```
-/// #[pollster::main]
-/// async fn main() {
-///     let my_fut = async {};
-///
-///     my_fut.await;
-/// }
-/// ```
-///
-/// [`pollster::block_on`]: https://docs.rs/pollster/0.3.0/pollster/fn.block_on.html
 #[proc_macro_attribute]
 pub fn main(
     attr: proc_macro::TokenStream,
Index: pollster-macro/README.md
===================================================================
--- pollster-macro.orig/README.md
+++ pollster-macro/README.md
@@ -10,14 +10,6 @@ https://docs.rs/pollster)
 https://github.com/zesterer/pollster)
 ![actions-badge](https://github.com/zesterer/pollster/workflows/Rust/badge.svg?branch=master)
 
-```rust
-use pollster::FutureExt as _;
-
-let my_fut = async {};
-
-let result = my_fut.block_on();
-```
-
 That's it. That's all it does. Nothing more, nothing less. No need to pull in 50 crates to evaluate a future.
 
 ## Why is this useful?