forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-programs: reorganize wasi content generated by wit and remove un…
…necessary deps
- Loading branch information
Showing
18 changed files
with
40 additions
and
825 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ make_vendor "wasi" " | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
" | ||
|
||
make_vendor "wasi-http" " | ||
|
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,23 @@ pub mod preview1; | |
pub mod sockets; | ||
|
||
wit_bindgen::generate!({ | ||
world: "test-command", | ||
path: "../wasi/wit", | ||
inline: " | ||
package wasmtime:test; | ||
world test { | ||
include wasi:cli/[email protected]; | ||
include wasi:config/[email protected]; | ||
include wasi:keyvalue/[email protected]; | ||
import wasi:http/[email protected]; | ||
import wasi:http/[email protected]; | ||
} | ||
", | ||
path: [ | ||
"../wasi-http/wit", | ||
"../wasi-runtime-config/wit", | ||
"../wasi-keyvalue/wit", | ||
], | ||
world: "wasmtime:test/test", | ||
generate_all, | ||
}); | ||
|
||
|
@@ -30,18 +45,3 @@ pub mod proxy { | |
}, | ||
}); | ||
} | ||
|
||
pub mod config { | ||
wit_bindgen::generate!({ | ||
path: "../wasi-runtime-config/wit", | ||
world: "wasi:config/imports", | ||
}); | ||
} | ||
|
||
pub mod keyvalue { | ||
wit_bindgen::generate!({ | ||
path: "../wasi-keyvalue/wit", | ||
world: "wasi:keyvalue/imports", | ||
type_section_suffix: "keyvalue", | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// We actually don't use this; it's just to let bindgen! find the corresponding world in wit/deps. | ||
package wasmtime:wasi-http; | ||
|
||
world bindings { | ||
include wasi:http/proxy@0.2.1; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,7 @@ pub mod bindings { | |
import wasi:cli/[email protected]; | ||
} | ||
"#, | ||
world: "wasmtime:adapter/adapter", | ||
std_feature, | ||
raw_strings, | ||
runtime_path: "crate::bindings::wit_bindgen_rt_shim", | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.