Ensure dependency configurations are explicit and predictable to avoid confusion and unexpected build behavior. Avoid package aliases that obscure the actual dependency being used, prefer published versions over git dependencies for stability, and be explicit about features that control critical behaviors like linking.
Ensure dependency configurations are explicit and predictable to avoid confusion and unexpected build behavior. Avoid package aliases that obscure the actual dependency being used, prefer published versions over git dependencies for stability, and be explicit about features that control critical behaviors like linking.
When specifying dependencies:
ring = { version = "1.0.0", package = "aws-lc-rs" }
can cause long-term confusionesbuild_rs = { version = "0.1.0", git = "..." }
should use a released versionlcms2 = { version = "6.1.0" }
may silently fall back to static linking; disable static-fallback
feature if dynamic linking is requiredThis prevents silent fallbacks, reduces confusion about what’s actually being used, and makes build behavior more predictable across different environments.
Enter the URL of a public GitHub repository