When I add the dependencies libc
and foreign_type
then I can't do anything. These dependencies are freezing my computer while doing cargo check
via neovim and I have to force a shutdown. Are these dependencies so huge? What can I do to prevent this freeze.
These dependecies increased my target/debug
directory to multiple GB.
After doing a cargo check
manually I got the following note: note: import resolution is stuck, try simplifying macro imports
because of using foreign_type!
bjorn3
April 3, 2024, 7:38am
2
There doesn't seem to be any foreign_type crate on crates.io . Where did you get it from?
Sorry, foreign-types
here
I get this error of cargo check
after removing foreign-types
and libc
Caused by:
process didn't exit successfully: `/home/isumis/.rustup/toolchains/
stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name isumis --edition=2021
src/main.rs --error-format=json --json=diagnostic-rendered-
ansi,artifacts,future-incompat --diagnostic-width=80 --crate-type bin
--emit=dep-info,metadata -C embed-
bitcode=no -C debuginfo=2 -C metadata=f86cb908d3a8f096 -C
extra-filename=-f86cb908d3a8f096 --out-
dir /home/isumis/Dokumente/dev/whiz/target/debug/deps -C
incremental=/home/isumis/Dokumente
/dev/whiz/target/debug/incremental -L
dependency=/home/isumis/Dokumente/dev/whiz/target/debug/deps
--extern actix_web=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libactix_web-
7546737678b758e4.rmeta
--extern actix_web_grants=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libactix_web_grants-
b9ee2feacaa8e725.rmeta --extern actix_web_httpauth=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libactix_web_httpauth-c1f0b20aa5def1c3.rmeta --extern argon2=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/libargon2-de13990ea0acd45e.rmeta --extern base64=/home/isumis
/Dokumente/dev/whiz/target/debug/deps/libbase64-8d9a7036f38d10b8.rmeta --extern cfonts=/home
/isumis/Dokumente/dev/whiz/target/debug/deps/libcfonts-93b0341a065ef5a8.rmeta --extern
dotenv=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libdotenv-406a837e628ad521.rmeta
--extern futures=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libfutures-
0c9764d289d0e347.rmeta --extern ipgeolocate=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libipgeolocate-2329c87632ee11f9.rmeta --extern isocountry=/home/isumis/Dokumente/dev/whiz
/target/debug/deps/libisocountry-5208198634e09c15.rmeta --extern jsonwebtoken=/home/isumis
/Dokumente/dev/whiz/target/debug/deps/libjsonwebtoken-16b548fe0c93e70f.rmeta --extern log=/home
/isumis/Dokumente/dev/whiz/target/debug/deps/liblog-27c90f2c142d5c7e.rmeta --extern log4rs=/home
/isumis/Dokumente/dev/whiz/target/debug/deps/liblog4rs-24f272a5be7d4419.rmeta --extern
once_cell=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libonce_cell-af411b88694c94bb.rmeta
--extern paho_mqtt=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libpaho_mqtt-
598d2c33f1849590.rmeta --extern passwords=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libpasswords-2c79d2b0055e434c.rmeta --extern public_ip=/home/isumis/Dokumente/dev/whiz
/target/debug/deps/libpublic_ip-258d3daa352c745b.rmeta --extern r2d2=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/libr2d2-30c35c0a3f4cfb04.rmeta --extern rand=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/librand-8e1af4f5cebd64f9.rmeta --extern redis=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/libredis-4d170ccc3758ed06.rmeta --extern regex=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/libregex-71c5066eef27e6d7.rmeta --extern sea_orm=/home/isumis
/Dokumente/dev/whiz/target/debug/deps/libsea_orm-3970bf94e08b86ff.rmeta --extern serde=/home
/isumis/Dokumente/dev/whiz/target/debug/deps/libserde-1b4082b21e34f90b.rmeta --extern
serde_json=/home/isumis/Dokumente/dev/whiz/target/debug/deps/libserde_json-
9a0cecec5d901902.rmeta --extern tracert=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libtracert-1d81416c8b25f416.rmeta --extern ureq=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libureq-74d112ac90dd56f4.rmeta --extern utoipa=/home/isumis/Dokumente/dev/whiz/target/debug
/deps/libutoipa-cd3369ed8fadee78.rmeta --extern utoipa_swagger_ui=/home/isumis/Dokumente
/dev/whiz/target/debug/deps/libutoipa_swagger_ui-f3d2a4f83fd4efe1.rmeta --extern uuid=/home/isumis
/Dokumente/dev/whiz/target/debug/deps/libuuid-3f6fd975f1624169.rmeta --extern whois_rust=/home
/isumis/Dokumente/dev/whiz/target/debug/deps/libwhois_rust-5483e406a7dc1c1e.rmeta -L native=/home
/isumis/Dokumente/dev/whiz/target/debug/build/zstd-sys-029d3d2ba854c477/out -L native=/home/isumis
/Dokumente/dev/whiz/target/debug/build/ring-a585748cf455faaf/out -L /usr/lib -L native=/home/isumis
/Dokumente/dev/whiz/target/debug/build/paho-mqtt-sys-5ff9526d9db8b15b/out/lib -L native=/home
/isumis/Dokumente/dev/whiz/target/debug/build/ring-e127c01aa7557539/out` (signal: 9, SIGKILL: kill)
After deleting ipgeolocate
it works well
Can you give the whole dependencies section of Cargo.toml
?
I already fixed it. It seems that ipgeolocate
caused the issue
system
Closed
July 2, 2024, 10:09am
7
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.