# link.Wasm.Feature: Make fromCpuFeature\(\) and toCpuFeature\(\) less cute\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 68c6a88770420b897467073ec328ddc2bb3317d6

Requested commit: 68c6a88770420b897467073ec328ddc2bb3317d6

Commit: 68c6a88770420b897467073ec328ddc2bb3317d6

Tree: d47cba01cbebf77181d4da5b932695f02fd824ad

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
link.Wasm.Feature: Make fromCpuFeature() and toCpuFeature() less cute.

This is more verbose, but at least we now get a compile error instead of UB when
a new feature is added to std.Target.wasm.Feature but not to link.Wasm.Feature.

```

## Parents

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

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