stdweb
stdweb copied to clipboard
I have compilation errors, will be gratefull of any comment.
Environment:
Ubuntu 17.10, cargo 1.33.0-nightly (2cf1f5dda 2018-12-11), cargo-web 0.6.23, stdweb 0.4.12
Errors:
Installing /home/dude/.cargo/bin/cargo-web
warning: default-features = [".."]
was found in [features]. Did you mean to use default = [".."]
?
Compiling stdweb-internal-macros v0.2.4
error[E0603]: struct Error
is private
--> /home/dude/.cargo/registry/src/github.com-1ecc6299db9ec823/stdweb-internal-macros-0.2.4/src/macro_js_raw.rs:43:34
|
43 | return Err( syn::Error::new_spanned( ident, format!( "unexpected ident '{}'", ident_str ) ) );
| ^^^^^
error[E0603]: struct Error
is private
--> /home/dude/.cargo/registry/src/github.com-1ecc6299db9ec823/stdweb-internal-macros-0.2.4/src/attr_hack.rs:38:23
|
38 | Err( syn::Error::new_spanned( ident, format!( "unexpected ident '{}'", ident_str ) ) )
| ^^^^^
error[E0599]: no function or associated item named new_spanned
found for type syn::parse::Error
in the current scope
--> /home/dude/.cargo/registry/src/github.com-1ecc6299db9ec823/stdweb-internal-macros-0.2.4/src/macro_js_raw.rs:43:29
|
43 | return Err( syn::Error::new_spanned( ident, format!( "unexpected ident '{}'", ident_str ) ) );
| ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in syn::parse::Error
error[E0599]: no function or associated item named new_spanned
found for type syn::parse::Error
in the current scope
--> /home/dude/.cargo/registry/src/github.com-1ecc6299db9ec823/stdweb-internal-macros-0.2.4/src/attr_hack.rs:38:18
|
38 | Err( syn::Error::new_spanned( ident, format!( "unexpected ident '{}'", ident_str ) ) )
| ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in syn::parse::Error
error: aborting due to 4 previous errors
Some errors occurred: E0599, E0603.
For more information about an error, try rustc --explain E0599
.
error: Could not compile stdweb-internal-macros
.
To learn more, run the command again with --verbose.
Further info: The compilation was okay until I upgraded cargo-web to 0.6.23.
@godadada You most likely didn't delete your Cargo.lock
. (: