Skip to content

Commit bf93d9e

Browse files
committed
public iter_external_loaders
1 parent 0e7a885 commit bf93d9e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

crates/re_data_source/src/data_loader/loader_external.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub static EXTERNAL_LOADER_PATHS: Lazy<Vec<std::path::PathBuf>> = Lazy::new(|| {
4646
executables.into_iter().collect()
4747
});
4848

49-
/// Iterator over all registered external [`DataLoader`]s.
49+
/// Iterator over all registered external [`crate::DataLoader`]s.
5050
#[inline]
5151
pub fn iter_external_loaders() -> impl ExactSizeIterator<Item = std::path::PathBuf> {
5252
EXTERNAL_LOADER_PATHS.iter().cloned()
@@ -68,7 +68,7 @@ impl crate::DataLoader for ExternalDataLoader {
6868
"rerun.data_loaders.External".into()
6969
}
7070

71-
fn load_from_file(
71+
fn load_from_path(
7272
&self,
7373
store_id: re_log_types::StoreId,
7474
filepath: std::path::PathBuf,
@@ -146,7 +146,7 @@ impl crate::DataLoader for ExternalDataLoader {
146146
}
147147

148148
#[inline]
149-
fn load_from_file_contents(
149+
fn load_from_path_contents(
150150
&self,
151151
_store_id: re_log_types::StoreId,
152152
_path: std::path::PathBuf,

crates/re_data_source/src/data_loader/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,6 @@ pub use self::loader_rrd::RrdLoader;
189189
#[cfg(not(target_arch = "wasm32"))]
190190
pub(crate) use self::loader_external::EXTERNAL_LOADER_PATHS;
191191
#[cfg(not(target_arch = "wasm32"))]
192-
pub use self::loader_external::{ExternalDataLoader, EXTERNAL_DATA_LOADER_PREFIX};
192+
pub use self::loader_external::{
193+
iter_external_loaders, ExternalDataLoader, EXTERNAL_DATA_LOADER_PREFIX,
194+
};

crates/re_data_source/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pub use self::data_source::DataSource;
2121
pub use self::load_file::load_from_path_contents;
2222
pub use self::web_sockets::connect_to_ws_url;
2323

24+
#[cfg(not(target_arch = "wasm32"))]
25+
pub use self::data_loader::iter_external_loaders;
26+
2427
#[cfg(not(target_arch = "wasm32"))]
2528
pub use self::load_file::load_from_path;
2629

0 commit comments

Comments
 (0)