no_std fixes

This commit is contained in:
Dominik Maier 2021-02-09 09:48:50 +01:00
parent 40a7301344
commit b930d86e13
2 changed files with 6 additions and 2 deletions

View File

@ -11,10 +11,12 @@ use alloc::{
};
use core::{fmt, marker::PhantomData, time::Duration};
use serde::{Deserialize, Serialize};
use std::env;
#[cfg(feature = "std")]
use std::process::Command;
use std::{
process::Command,
env,
};
#[cfg(feature = "std")]
#[cfg(unix)]
@ -846,6 +848,7 @@ where
/// A restarting state is a combination of restarter and runner, that can be used on systems without `fork`.
/// The restarter will start a new process each time the child crashes or timeouts.
#[cfg(feature = "std")]
pub fn setup_restarting_state<I, C, FT, R, SH, ST>(
mgr: &mut LlmpEventManager<I, SH, ST>,
) -> Result<Option<State<C, I, R, FT>>, AflError>

View File

@ -1,4 +1,5 @@
use core::{time, time::Duration};
use alloc::{string::String, vec::Vec};
use crate::utils::current_time;