less than 1 minute read

You can conditionally include dependencies in Cargo.toml based on the compile target. If a crate requires SSE2 for example, put it in this section

[target.'cfg(target_feature = "sse2")'.dependencies]
sse2_only_crate = "0.0.1"

Tags:

Categories:

Updated:

Webmentions

No webmentions were found.

Comments