@@ -31,11 +31,11 @@ cfg_if! {
31
31
mod wasm_js;
32
32
pub use wasm_js:: * ;
33
33
} else {
34
- compile_error!(
34
+ compile_error!( concat! (
35
35
"The \" wasm_js\" backend requires the `wasm_js` feature \
36
36
for `getrandom`. For more information see: \
37
- https://docs.rs/getrandom/#webassembly-support"
38
- ) ;
37
+ https://docs.rs/getrandom/" , env! ( "CARGO_PKG_VERSION" ) , "/ #webassembly-support"
38
+ ) ) ;
39
39
}
40
40
}
41
41
} else if #[ cfg( all( target_os = "linux" , target_env = "" ) ) ] {
@@ -165,17 +165,17 @@ cfg_if! {
165
165
mod rdrand;
166
166
pub use rdrand:: * ;
167
167
} else if #[ cfg( all( target_arch = "wasm32" , any( target_os = "unknown" , target_os = "none" ) ) ) ] {
168
- compile_error!(
168
+ compile_error!( concat! (
169
169
"The wasm32-unknown-unknown targets are not supported by default; \
170
170
you may need to enable the \" wasm_js\" configuration flag. Note \
171
171
that enabling the `wasm_js` feature flag alone is insufficient. \
172
172
For more information see: \
173
- https://docs.rs/getrandom/#webassembly-support"
174
- ) ;
173
+ https://docs.rs/getrandom/" , env! ( "CARGO_PKG_VERSION" ) , "/ #webassembly-support"
174
+ ) ) ;
175
175
} else {
176
- compile_error!(
176
+ compile_error!( concat! (
177
177
"target is not supported. You may need to define a custom backend see: \
178
- https://docs.rs/getrandom/#custom-backend"
179
- ) ;
178
+ https://docs.rs/getrandom/" , env! ( "CARGO_PKG_VERSION" ) , "/ #custom-backend"
179
+ ) ) ;
180
180
}
181
181
}
0 commit comments