Skip to content

Commit 66a1e98

Browse files
author
Phil Cummins
committed
latest
1 parent 2dfd3d5 commit 66a1e98

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/prelink.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ use crate::{ComponentizePyConfig, ConfigContext, Library, RawComponentizePyConfi
1818

1919
static NATIVE_EXTENSION_SUFFIX: &str = ".cpython-312-wasm32-wasi.so";
2020

21+
type ConfigsMatchedWorlds<'a> =
22+
IndexMap<String, (ConfigContext<ComponentizePyConfig>, Option<&'a str>)>;
23+
2124
pub fn embedded_python_standard_library() -> Result<TempDir, io::Error> {
2225
// Untar the embedded copy of the Python standard library into a temporary directory
2326
let stdlib = tempfile::tempdir()?;
@@ -98,13 +101,7 @@ pub fn search_for_libraries_and_configs<'a>(
98101
python_path: &'a Vec<&'a str>,
99102
module_worlds: &'a [(&'a str, &'a str)],
100103
world: Option<&'a str>,
101-
) -> Result<
102-
(
103-
IndexMap<String, (ConfigContext<ComponentizePyConfig>, Option<&'a str>)>,
104-
Vec<Library>,
105-
),
106-
anyhow::Error,
107-
> {
104+
) -> Result<(ConfigsMatchedWorlds<'a>, Vec<Library>), anyhow::Error> {
108105
let mut raw_configs: Vec<crate::ConfigContext<crate::RawComponentizePyConfig>> = Vec::new();
109106
let mut library_path: Vec<(&str, Vec<std::path::PathBuf>)> =
110107
Vec::with_capacity(python_path.len());

0 commit comments

Comments
 (0)