misc: vmm: drop extern crate, use modern rust

This commit is part of a series of similar commits.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2025-09-05 09:21:43 +02:00
committed by Rob Bradford
parent 2157f1a1f2
commit 67fc9d990e
17 changed files with 35 additions and 12 deletions

View File

@@ -73,6 +73,8 @@ mod fds_helper {
use std::fs::File;
use std::os::fd::{IntoRawFd, RawFd};
use log::{debug, error, warn};
use crate::api::http::HttpError;
/// Abstraction over configuration types received via the HTTP API that
@@ -172,7 +174,7 @@ mod fds_helper {
if fds_amount > 0 {
let new_fds = fds.drain(..fds_amount).collect::<Vec<_>>();
log::debug!(
debug!(
"Attaching network FDs received via UNIX domain socket to device: id={:?}, fds={new_fds:?}",
cfg.id()
);

View File

@@ -15,6 +15,7 @@ use std::sync::mpsc::Sender;
use std::thread;
use hypervisor::HypervisorType;
use log::error;
use micro_http::{
Body, HttpServer, MediaType, Method, Request, Response, ServerError, StatusCode, Version,
};