Skip to content

error-stack: error building service with error-stack dependency #1512

Answered by indietyp
AlexCzar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You're encountering this error because you currently have a target/ folder with packages compiled for nightly-2022-11-01 instead of 1.63. This might be because your default toolchain is nightly, while shuttle expects 1.63. You should be able to fix this by simply running cargo clean before deploying via shuttle ☺️

Tip: You can pin the version of your binary/library by including a rust-toolchain.toml with the following contents:

[toolchain]
channel = "1.63"
components = ["clippy", "rustfmt"]

This will ensure that cargo commands will (regardless of the default system toolchain) run on 1.63, and you won't get that error again in the future.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexCzar
Comment options

Answer selected by Alfred-Mountfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/libs > error-stack Affects the `error-stack` crate (library) area/libs Relates to first-party libraries/crates/packages (area)
2 participants