@@ -47,7 +47,7 @@ assumed to exist.
47
47
48
48
## The ` target_feature ` attribute
49
49
50
- The * ` target_feature ` [ attribute] * may be applied to an [ unsafe function] to
50
+ The * ` target_feature ` [ attribute] * may be applied to a function to
51
51
enable code generation of that function for specific platform architecture
52
52
features. It uses the [ _ MetaListNameValueStr_ ] syntax with a single key of
53
53
` enable ` whose value is a string of comma-separated feature names to enable.
@@ -75,6 +75,9 @@ The following is a list of the available feature names.
75
75
76
76
#### ` x86 ` or ` x86_64 `
77
77
78
+ This platform requires that ` #[target_feature] ` is only applied to [ ` unsafe `
79
+ functions] [ unsafe function ] .
80
+
78
81
Feature | Implicitly Enables | Description
79
82
------------|--------------------|-------------------
80
83
` aes ` | ` sse2 ` | [ AES] — Advanced Encryption Standard
@@ -128,6 +131,17 @@ Feature | Implicitly Enables | Description
128
131
[ `xsaveopt` ] : https://www.felixcloutier.com/x86/xsaveopt
129
132
[ `xsaves` ] : https://www.felixcloutier.com/x86/xsaves
130
133
134
+ #### ` wasm32 ` or ` wasm64 `
135
+
136
+ This platform allows ` #[target_feature] ` to be applied to both safe and
137
+ [ ` unsafe ` functions] [ unsafe function ] .
138
+
139
+ Feature | Description
140
+ ------------|-------------------
141
+ ` simd128 ` | [ WebAssembly simd proposal] [ simd128 ]
142
+
143
+ [ simd128 ] : https://github.com/webassembly/simd
144
+
131
145
### Additional information
132
146
133
147
See the [ ` target_feature ` conditional compilation option] for selectively
0 commit comments