@@ -5,6 +5,7 @@ members = [
55 " pd-vm-nostd" ,
66 " pd-vm-wasm" ,
77 " crates/rustscript" ,
8+ " crates/pd-host-schema" ,
89]
910resolver = " 2"
1011
@@ -27,6 +28,7 @@ name = "vm"
2728[features ]
2829default = [" runtime" , " cli" , " cranelift-jit" ]
2930runtime = []
31+ async = [" runtime" , " dep:tokio" ]
3032sqlite = [" runtime" , " dep:rusqlite" ]
3133edge-abi = [
3234 " dep:edge_abi" ,
@@ -62,11 +64,12 @@ cranelift-module = { version = "0.129.1", optional = true }
6264cranelift-native = { version = " 0.129.1" , optional = true }
6365pd-host-function = { path = " ./pd-host-function" , version = " 0.1.0" }
6466rusqlite = { version = " 0.32" , default-features = false , features = [" bundled" , " hooks" , " limits" ], optional = true }
67+ tokio = { version = " 1" , features = [" rt-multi-thread" , " net" , " time" , " sync" , " fs" , " io-util" , " process" ], optional = true }
6568edge_abi = { package = " pd-edge-abi" , version = " 0.1.1" , default-features = false , optional = true }
6669futures-channel = " 0.3"
6770paste = " 1"
6871regex = " 1"
69- serde = " 1"
72+ serde = { version = " 1" , features = [ " derive " ] }
7073serde_json = " 1"
7174rt-format = " 0.3.1"
7275self_cell = " 1"
@@ -79,6 +82,7 @@ windows-sys = { version = "0.59", features = ["Win32_System_Diagnostics_Debug",
7982libc = " 0.2"
8083
8184[dev-dependencies ]
85+ pd-host-schema = { path = " ./crates/pd-host-schema" , version = " 0.1.0" }
8286syn = { version = " 2" , features = [" full" ] }
8387tokio = { version = " 1" , features = [" macros" , " rt" , " time" , " sync" ] }
8488
@@ -87,5 +91,26 @@ name = "host_binding_generation_tests"
8791path = " tests/host_binding_generation_tests.rs"
8892required-features = [" cranelift-jit" ]
8993
94+ [[test ]]
95+ name = " host_sdk_tests"
96+ path = " tests/host_sdk_tests.rs"
97+ required-features = [" runtime" ]
98+
99+ [[test ]]
100+ name = " host_resource_public_api_tests"
101+ path = " tests/host_resource_public_api_tests.rs"
102+ required-features = [" runtime" ]
103+
104+ [[test ]]
105+ name = " host_resource_macro_runtime_tests"
106+ path = " tests/host_resource_macro_runtime_tests.rs"
107+ required-features = [" runtime" ]
108+
109+ [[test ]]
110+ name = " host_context_arch_tests"
111+ path = " tests/host_context_arch_tests.rs"
112+ required-features = [" runtime" ]
113+
90114[build-dependencies ]
115+ pd-host-schema = { path = " ./crates/pd-host-schema" , version = " 0.1.0" }
91116syn = { version = " 2" , features = [" full" ] }
0 commit comments