This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 27b1860
authored
fix(wasmtime): fix
* fix(wasmtime): fix `--no-default-features` with async
Currently, building `wasmtime` via:
```
$ cargo build -p wasmtime --no-default-features --features component-model-async
```
fails with:
```
error[E0432]: unresolved import `wasmtime_environ::fact`
--> crates/wasmtime/src/runtime/component/concurrent.rs:88:36
|
88 | use wasmtime_environ::{PrimaryMap, fact};
| ^^^^ no `fact` in the root
|
note: found an item that was configured out
--> /Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/crates/environ/src/lib.rs:72:9
|
72 | pub mod fact;
| ^^^^
note: the item is gated here
--> /Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/crates/environ/src/lib.rs:71:1
|
71 | #[cfg(all(feature = "component-model", feature = "compile"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
in order to avoid the need for `component-model-async` feature to enable
`wasmtime-environ/compile`, promote `START_FLAG_ASYNC_CALLEE` to
crate-level const
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* ci: test `component-model-async` with no default features
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor: move async const to `component`
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
---------
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>--no-default-features with async (#11244)1 parent 5d6590c commit 27b1860
5 files changed
Lines changed: 15 additions & 14 deletions
File tree
- .github/workflows
- crates
- environ/src
- fact
- wasmtime/src/runtime/component
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 39 | | |
47 | 40 | | |
48 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments