I expect the spin build command to compile a wasm binary as it does on MacOS.
Instead I get the following error.
error: expected `world`, `interface` or `use`, found '.'
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\./wit:1:1
|
1 | ../../wit
| ^
Stack backtrace:
0: std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:131
1: std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: std::backtrace::Backtrace::create
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\backtrace.rs:331
3: std::backtrace::Backtrace::capture
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library\std\src\backtrace.rs:297
4: anyhow::error::<impl anyhow::Error>::msg
5: anyhow::__private::format_err
6: wit_parser::ast::SourceMap::rewrite_error
7: wit_parser::ast::SourceMap::parse
8: wit_parser::UnresolvedPackage::parse
9: wit_parser::UnresolvedPackage::parse_file
10: <wit_bindgen_rust_macro::Config as syn::parse::Parse>::parse::{{closure}}
11: <wit_bindgen_rust_macro::Config as syn::parse::Parse>::parse::{{closure}}
12: <wit_bindgen_rust_macro::Config as syn::parse::Parse>::parse
13: core::ops::function::FnOnce::call_once
14: syn::parse::Parser::parse
15: syn::parse::Parser::parse
16: syn::parse
17: wit_bindgen_rust_macro::generate
18: core::ops::function::Fn::call
19: proc_macro::bridge::client::HandleCounters::get
20: proc_macro::bridge::client::run_client::{{closure}}::{{closure}}::{{closure}}
21: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::size_hint
22: proc_macro::bridge::scoped_cell::ScopedCell<T>::replace
23: proc_macro::bridge::client::run_client::{{closure}}::{{closure}}
24: std::thread::local::LocalKey<T>::try_with
25: proc_macro::bridge::client::run_client::{{closure}}
26: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
27: std::panicking::try
28: hashbrown::map::make_hasher::{{closure}}
29: std::panicking::try
30: proc_macro::bridge::selfless_reify::reify_to_extern_c_fn_hrt_bridge::wrapper
31: proc_macro::bridge::client::HandleCounters::get
32: proc_macro::bridge::selfless_reify::reify_to_extern_c_fn_hrt_bridge::wrapper
33: <rustc_expand::base::MacEager>::expr
34: <rustc_expand::base::MacEager>::expr
35: <rustc_ast::ptr::P<rustc_ast::ast::Expr> as rustc_expand::expand::InvocationCollectorNode>::take_mac_call
36: <rustc_expand::proc_macro::BangProcMacro as rustc_expand::base::BangProcMacro>::expand
37: <rustc_expand::expand::MacroExpander>::fully_expand_fragment
38: <rustc_expand::expand::MacroExpander>::expand_crate
39: rustc_interface::interface::parse_check_cfg
40: rustc_interface::passes::resolver_for_lowering
41: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
42: rustc_traits::type_op::type_op_normalize_fn_sig
43: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
44: rustc_query_impl::profiling_support::alloc_self_profile_query_strings
45: rustc_driver_impl::args::arg_expand_all
46: rustc_driver_impl::args::arg_expand_all
47: rustc_driver_impl::args::arg_expand_all
48: rustc_driver_impl::args::arg_expand_all
49: rustc_driver_impl::args::arg_expand_all
50: rustc_driver_impl::args::arg_expand_all
51: std::sys::windows::thread::Thread::new
52: BaseThreadInitThunk
53: RtlUserThreadStart
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:24:5
|
24 | / wit_bindgen::generate!({
25 | | world: "platform",
26 | | path: "./wit",
27 | | });
| |______^
|
= note: this error originates in the macro `wit_bindgen::generate` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import `fermyon`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:28:13
|
28 | pub use fermyon::spin2_0_0 as v2;
| ^^^^^^^ use of undeclared crate or module `fermyon`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\conversions.rs:5:17
|
5 | use crate::wit::wasi::io::streams;
| ^^^^ could not find `wasi` in `wit`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http.rs:15:17
|
15 | use super::wit::wasi::http::types;
| ^^^^ could not find `wasi` in `wit`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http.rs:16:17
|
16 | use crate::wit::wasi::io::streams;
| ^^^^ could not find `wasi` in `wit`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\executor.rs:1:17
|
1 | use crate::wit::wasi::http::outgoing_handler;
| ^^^^ could not find `wasi` in `wit`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\executor.rs:2:17
|
2 | use crate::wit::wasi::http::types::{
| ^^^^ could not find `wasi` in `wit`
error[E0432]: unresolved import `wit::__link_section`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:36:9
|
36 | pub use wit::__link_section;
| ^^^^^^^^^^^^^^^^^^^ no `__link_section` in `wit`
error[E0433]: failed to resolve: could not find `wasi` in `wit`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\executor.rs:6:17
|
6 | use crate::wit::wasi::io::streams::{InputStream, OutputStream, StreamError};
| ^^^^ could not find `wasi` in `wit`
error[E0432]: unresolved import `crate::wit::wasi`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\executor.rs:5:17
|
5 | use crate::wit::wasi::io;
| ^^^^ could not find `wasi` in `wit`
error[E0432]: unresolved imports `super::Headers`, `super::IncomingRequest`, `super::IncomingResponse`, `super::OutgoingRequest`, `super::OutgoingResponse`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\http\conversions.rs:8:5
|
8 | Headers, IncomingRequest, IncomingResponse, Json, JsonBodyError, OutgoingRequest,
| ^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no `OutgoingRequest` in `http`
| | | |
| | | no `IncomingResponse` in `http`
| | no `IncomingRequest` in `http`
| no `Headers` in `http`
9 | OutgoingResponse, RequestBuilder,
| ^^^^^^^^^^^^^^^^ no `OutgoingResponse` in `http`
|
help: a similar name exists in the module
|
8 | Headers, IncomingResponse, IncomingResponse, Json, JsonBodyError, OutgoingRequest,
| ~~~~~~~~~~~~~~~~
help: a similar name exists in the module
|
8 | Headers, IncomingRequest, IntoResponse, Json, JsonBodyError, OutgoingRequest,
| ~~~~~~~~~~~~
help: a similar name exists in the module
|
8 | Headers, IncomingRequest, IncomingResponse, Json, JsonBodyError, IncomingRequest,
| ~~~~~~~~~~~~~~~
help: a similar name exists in the module
|
9 | IncomingResponse, RequestBuilder,
| ~~~~~~~~~~~~~~~~
error[E0416]: identifier `Nil` is bound more than once in the same pattern
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:62:23
|
62 | (Nil, Nil) => true,
| ^^^ used in a pattern more than once
error[E0531]: cannot find tuple struct or tuple variant `Status` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:63:18
|
63 | (Status(a), Status(b)) => a == b,
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Status` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:63:29
|
63 | (Status(a), Status(b)) => a == b,
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Int64` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:64:18
|
64 | (Int64(a), Int64(b)) => a == b,
| ^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Int64` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:64:28
|
64 | (Int64(a), Int64(b)) => a == b,
| ^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Binary` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:65:18
|
65 | (Binary(a), Binary(b)) => a == b,
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Binary` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:65:29
|
65 | (Binary(a), Binary(b)) => a == b,
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Status` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:79:17
|
79 | Status(s) => s.hash(state),
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Int64` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:80:17
|
80 | Int64(v) => v.hash(state),
| ^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `Binary` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\lib.rs:81:17
|
81 | Binary(v) => v.hash(state),
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:35:23
|
35 | fn decode(value: &DbValue) -> Result<Self, Error>;
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:42:23
|
42 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:51:23
|
51 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:60:23
|
60 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:69:23
|
69 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:78:23
|
78 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:87:23
|
87 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:96:23
|
96 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:105:23
|
105 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:114:23
|
114 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:125:43
|
125 | fn format_decode_err(types: &str, value: &DbValue) -> String {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:40:23
|
40 | fn decode(value: &DbValue) -> Result<Self, Error>;
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:47:23
|
47 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:56:23
|
56 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:69:23
|
69 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:78:23
|
78 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:87:23
|
87 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:96:23
|
96 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:105:23
|
105 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:114:23
|
114 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:123:23
|
123 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:135:23
|
135 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:144:23
|
144 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:153:23
|
153 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:162:23
|
162 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:171:23
|
171 | fn decode(value: &DbValue) -> Result<Self, Error> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `DbValue` in this scope
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:182:43
|
182 | fn format_decode_err(types: &str, value: &DbValue) -> String {
| ^^^^^^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:44:13
|
44 | DbValue::DbNull => Ok(None),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:53:13
|
53 | DbValue::Boolean(boolean) => Ok(*boolean),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:62:13
|
62 | DbValue::Int16(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:71:13
|
71 | DbValue::Int32(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:80:13
|
80 | DbValue::Int64(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:89:13
|
89 | DbValue::Floating32(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:98:13
|
98 | DbValue::Floating64(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:107:13
|
107 | DbValue::Binary(n) => Ok(n.to_owned()),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\pg.rs:116:13
|
116 | DbValue::Str(s) => Ok(s.to_owned()),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:49:13
|
49 | DbValue::DbNull => Ok(None),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:58:13
|
58 | DbValue::Int8(0) => Ok(false),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:59:13
|
59 | DbValue::Int8(1) => Ok(true),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:71:13
|
71 | DbValue::Int8(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:80:13
|
80 | DbValue::Int16(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:89:13
|
89 | DbValue::Int32(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:98:13
|
98 | DbValue::Int64(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:107:13
|
107 | DbValue::Uint8(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:116:13
|
116 | DbValue::Uint16(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:125:13
|
125 | DbValue::Uint32(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:137:13
|
137 | DbValue::Uint64(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:146:13
|
146 | DbValue::Floating32(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:155:13
|
155 | DbValue::Floating64(n) => Ok(*n),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:164:13
|
164 | DbValue::Binary(n) => Ok(n.to_owned()),
| ^^^^^^^ use of undeclared type `DbValue`
error[E0433]: failed to resolve: use of undeclared type `DbValue`
--> C:\Users\nigel\.cargo\git\checkouts\spin-91500438ac5656d2\4ca3a56\sdk\rust\src\mysql.rs:173:13
|
173 | DbValue::Str(s) => Ok(s.to_owned()),
| ^^^^^^^ use of undeclared type `DbValue`
Some errors have detailed explanations: E0412, E0416, E0432, E0433, E0531.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `spin-sdk` (lib) due to 72 previous errors
Error: Build command for component tkb-wasm failed with status Exited(101)
Screenshots
If applicable, add screenshots to help explain your problem.
(Remember to remove any personally-identifiable information.)
Additional context
Add any other context about the problem here.
Describe the bug
spin build
fails on Windows 11 when building anhttp-rust
app with spin v2.0.1 and v2.1.0Frequency of the bug Please check one:
Set-up information
http-rust
template isntalledTo Reproduce On Windows 11 (x64)
I expect the
spin build
command to compile a wasm binary as it does on MacOS.Instead I get the following error.
Screenshots If applicable, add screenshots to help explain your problem. (Remember to remove any personally-identifiable information.)
Additional context Add any other context about the problem here.