# std.crypto: Use \`featureSetHas\` to gate intrinsics · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/67fa3262b1329316cbf62e00ba3890d68a9f5f6d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 67fa3262b1329316cbf62e00ba3890d68a9f5f6d

Requested commit: 67fa3262b1329316cbf62e00ba3890d68a9f5f6d

Commit: 67fa3262b1329316cbf62e00ba3890d68a9f5f6d

Tree: 9fcf88a2020bffb24c4f9b460512d5346f14085d

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
std.crypto: Use `featureSetHas` to gate intrinsics

This also fixes a bug where the feature gating was not taking
effect at comptime due to https://github.com/ziglang/zig/issues/6768

```

## Parents

- [f9fe548e41a41e3edcff4d30f495246d0fee145b](https://git.cafe/gitcafe/zig/commit/f9fe548e41a41e3edcff4d30f495246d0fee145b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/67fa3262b1329316cbf62e00ba3890d68a9f5f6d?format=markdown)
