feat: add tools-discovery-bin feature to Tauri integration

- Updated the Tauri command in both discover-tools.js and tauri-integration.js to include the new '--features tools-discovery-bin' option for enhanced tool discovery.
- Bumped OpenHuman version to 0.49.5 in Cargo.lock to reflect dependency updates.
- Added required features for openhuman-tools-discovery, openhuman-core, and openhuman-cli in Cargo.toml to support the new functionality.
This commit is contained in:
Steven Enamakel
2026-03-26 17:52:52 -07:00
parent 11fa90c325
commit c704249b9d
4 changed files with 11 additions and 1 deletions
@@ -211,6 +211,8 @@ async function discoverToolsFromTauri() {
join(PROJECT_ROOT, 'src-tauri', 'Cargo.toml'),
'--bin',
'openhuman-tools-discovery',
'--features',
'tools-discovery-bin',
];
console.log('🔧 Attempting to run tools discovery via Cargo...');
@@ -28,6 +28,8 @@ export function getTauriCommand() {
join(PROJECT_ROOT, 'src-tauri', 'Cargo.toml'),
'--bin',
'openhuman-tools-discovery',
'--features',
'tools-discovery-bin',
],
};
}
+1 -1
View File
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "OpenHuman"
version = "0.49.4"
version = "0.49.5"
dependencies = [
"aes-gcm",
"android_logger",
+6
View File
@@ -22,14 +22,17 @@ path = "src/main.rs"
[[bin]]
name = "openhuman-tools-discovery"
path = "src/bin/openhuman-tools-discovery.rs"
required-features = ["tools-discovery-bin"]
[[bin]]
name = "openhuman-core"
path = "src/bin/openhuman-core.rs"
required-features = ["openhuman-core-bin"]
[[bin]]
name = "openhuman-cli"
path = "src/bin/openhuman-cli.rs"
required-features = ["openhuman-cli-bin"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
@@ -184,6 +187,9 @@ tempfile = "3"
custom-protocol = ["tauri/custom-protocol"]
sandbox-landlock = ["dep:landlock"]
sandbox-bubblewrap = []
tools-discovery-bin = []
openhuman-core-bin = []
openhuman-cli-bin = []
# OpenHuman feature flags
hardware = ["dep:nusb", "dep:tokio-serial"]