Skip to content

build single crate success, but build as whole workspace always failed caused by (signal: 9, SIGKILL: kill) #2425

Closed Answered by bloodarksoul
bloodarksoul asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out.
My Linux runs on an 8-core Intel i5 CPU with 8G of memory. Rust uses all of them by default setting, which causes the issue.

To solve it, only add the below setting on .cargo/config.toml to limit resources.

[build]
jobs = 1

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bloodarksoul
Comment options

@bloodarksoul
Comment options

Answer selected by bloodarksoul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants