feat(agentcompany-rust): scaffold native shell and runtime bridge
This commit is contained in:
1 parent
34814b4dfd
commit
2cddf89717
40 files changed
+11300
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
[package]
|
||||
name = "agentcompany_app"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
version.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "agentcompany"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
app_ui.workspace = true
|
||||
parking_lot.workspace = true
|
||||
storage.workspace = true
|
||||
support.workspace = true
|
||||
@@ -0,0 +1,13 @@
|
||||
use anyhow::Result;
|
||||
use parking_lot::Mutex;
|
||||
use std::sync::Arc;
|
||||
use storage::ProfileStore;
|
||||
use support::paths::resolve_profile_dir;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let profile_dir = resolve_profile_dir()?;
|
||||
let store = Arc::new(Mutex::new(ProfileStore::open(&profile_dir)?));
|
||||
let snapshot = store.lock().snapshot()?;
|
||||
app_ui::launch(store, snapshot);
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user