Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bp3d-os"
version = "2.0.0"
version = "2.1.0"
authors = ["Yuri Edward <[email protected]>"]
edition = "2021"
description = "Operating System tools designed for BlockProject3D"
Expand Down
4 changes: 4 additions & 0 deletions core/src/module/loader/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ impl ModuleLoader {
self.paths.push(path.as_ref().into());
}

pub(super) fn _remove_search_path(&mut self, path: impl AsRef<Path>) {
self.paths.retain(|p| p != path.as_ref());
}

pub(super) fn _add_public_dependency<'a>(
&mut self,
name: &str,
Expand Down
11 changes: 11 additions & 0 deletions core/src/module/loader/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ impl<'a> Lock<'a> {
self.lock._add_search_path(path);
}

/// Removes the given path to the path search list.
///
/// # Arguments
///
/// * `path`: the path to remove.
///
/// returns: ()
pub fn remove_search_path(&mut self, path: impl AsRef<Path>) {
self.lock._remove_search_path(path);
}

/// Adds a public facing API dependency to the list of dependency for version checks.
///
/// This is used to check if there are any ABI incompatibilities between dependency versions
Expand Down
4 changes: 2 additions & 2 deletions module_test/test_mod/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ publish = false
crate-type = ["rlib", "cdylib"]

[build-dependencies]
bp3d-os-build = { version = "1.0.0", path = "../../build" }
bp3d-os-build = { version = "1.1.0", path = "../../build" }

[dependencies]
bp3d-os = { version = "2.0.0", path = "../../core", features = ["module"] }
bp3d-os = { version = "2.1.0", path = "../../core", features = ["module"] }
bp3d-debug = "1.0.0"
2 changes: 1 addition & 1 deletion module_test/testbin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ edition = "2024"
publish = false

[dependencies]
bp3d-os = { version = "2.0.0", path = "../../core", features = ["module"] }
bp3d-os = { version = "2.1.0", path = "../../core", features = ["module"] }