Fix standalone compilation of iced_test subcrate

This commit is contained in:
Héctor Ramón Jiménez 2025-12-07 21:24:57 +01:00
parent 6ad39fe544
commit b11ad9ff5e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 35 additions and 4 deletions

View file

@ -83,6 +83,7 @@
//! [`typewrite`](Simulator::typewrite)—and even perform [_snapshot testing_](Simulator::snapshot)!
//!
//! [the classical counter interface]: https://book.iced.rs/architecture.html#dissecting-an-interface
pub use iced_futures as futures;
pub use iced_program as program;
pub use iced_renderer as renderer;
pub use iced_runtime as runtime;
@ -122,9 +123,9 @@ pub fn run(
program: impl program::Program + 'static,
tests_dir: impl AsRef<Path>,
) -> Result<(), Error> {
use crate::runtime::futures::futures::StreamExt;
use crate::runtime::futures::futures::channel::mpsc;
use crate::runtime::futures::futures::executor;
use crate::futures::futures::StreamExt;
use crate::futures::futures::channel::mpsc;
use crate::futures::futures::executor;
use std::ffi::OsStr;
use std::fs;

View file

@ -76,7 +76,7 @@ where
let mut renderer = {
let backend = env::var("ICED_TEST_BACKEND").ok();
iced_runtime::futures::futures::executor::block_on(Renderer::new(
crate::futures::futures::executor::block_on(Renderer::new(
default_font,
settings.default_text_size,
backend.as_deref(),