fix(api) Use the sys feature when no default features is enabled.

This commit is contained in:
Ivan Enderlin
2021-07-23 13:52:02 +02:00
parent 8a5caa339a
commit 36c4f92dad
4 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
#[cfg(all(not(feature = "sys"), not(feature = "js")))]
compile_error!("At least the `sys` or the `js` feature must be enabled. Please, pick one.");
#[cfg(all(feature = "sys", feature = "js"))]
compile_error!(
"Cannot have both `sys` and `js` features enabled at the same time. Please, pick one."