SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.3k stars 513 forks source link

Very high CPU usage during build, antivirus flagged target dir as malware #1113

Closed broomlytinum closed 2 years ago

broomlytinum commented 2 years ago

I went to build SeaORM as a dependency in a fresh crate with the following in my Cargo.toml:

[dependencies]
sea-orm = { version = "0.9.3", features = ["runtime-tokio-native-tls", "sqlx-postgres", "macros"] }

Compilation began to eat up my CPU, nearing 100% usage between my terminal and rust-analyzer in VSCode. Moments after I attempted a cargo clean, McAfee claimed there was a virus in my crate's target folder and requested a restart. Unfortunately I did not catch a glimpse of the filename before I restarted, so this may not be of much help if it turns out irreproducible... 😅

billy1624 commented 2 years ago

Hey @broomlytinum, welcome!! It's normal that Rust compiler use 100% CPU. I'm not sure the antivirus flag because I use Mac and don't have a antivirus app installed hahaa

tyt2y3 commented 2 years ago

Actually, I use WSL on Windows. Highly recommended.

tyt2y3 commented 2 years ago

Let me know if there is something else I can do? This might as well be moved to discussion.

broomlytinum commented 2 years ago

Thanks. Strangely, I've never had the compiler hit such high CPU usage... Anyway, I tried again now with no issue both with CPU usage or antivirus, so I have seriously no clue why that occurred. I'm hoping that it got mistakenly flagged as a result of unexpected behavior with cargo clean. At this point I have no reason to believe this relates to SeaORM. Apologies for the trouble!