Add feature guards on NewKey struct usage
Building libsplinter with the `biome` feature and not the
`biome-key-management` feature causes a failed build as the compiler
can't find the `NewKey` struct.
// See the License for the specific language governing permissions and
// limitations under the License.
+#[cfg(feature = "biome-key-management")]
use super::key_management::NewKey;
#[derive(Deserialize)]
@@ -19,5 +20,6 @@ pub(crate) struct ModifyUser {
pub username: String,
pub hashed_password: String,
pub new_password: Option<String>,
+ #[cfg(feature = "biome-key-management")]
pub new_key_pairs: Vec<NewKey>,
}
