Replies: 5 comments 12 replies
-
Disabling default features should mean that |
Beta Was this translation helpful? Give feedback.
-
Another question, is the 30 seconds for the initial build or later, after you change only your crate's code? |
Beta Was this translation helpful? Give feedback.
-
Here is my build time:
Cargo.toml:
Code main.rs:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I think there's also other questions here like what actually is taking the time to compile. Consider running |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a simple use case. I call a python function from Rust. Building my rust code takes up to 30 seconds. Is there anything I could do to speed up the build? I even disabled all default features, but it does not help (
default-features = false
).I noticed the initial build also includes
pyo3-macros
, which takes forever to compile. I certainly do not use any Py macros. Perhaps, it's causing the compilation slowness? Just an idea ...Beta Was this translation helpful? Give feedback.
All reactions