Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (81 loc) · 4.14 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (81 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Virtual workspace root. Members: `crates/openhuman-core` (package `openhuman`,
# the core library), `crates/openhuman-embed` (library facade),
# `crates/openhuman-rpc` (JSON-RPC envelopes, client and server, and the on-disk
# session store hosts install, above the core), `crates/openhuman-tinyhumans`
# (SDK-backed backend transport + login/session ownership for hosts),
# `crates/openhuman-cli` (the `openhuman-core` binary, developer bins and the
# root integration tests), and `crates/openhuman-tui` (terminal client). `crates/openhuman-app` is deliberately excluded: it is its
# own Cargo world with its own lockfile and target directory so that root-only
# Cargo commands don't resolve GTK/WebKit/Tauri, and it must mirror this file's
# `[patch]` tables rather than inherit them. Vendored module workspaces are also
# excluded so their workspace-inherited keys continue to resolve against their
# own roots.
[workspace]
resolver = "2"
members = [
"crates/openhuman-cli",
"crates/openhuman-core",
"crates/openhuman-embed",
"crates/openhuman-rpc",
"crates/openhuman-tinyhumans",
"crates/openhuman-tui",
]
exclude = [
"vendor",
"worktrees",
"crates/openhuman-app",
"app/src-tauri-mobile",
"packages/tauri-plugin-ptt",
]
[workspace.package]
version = "0.64.12"
edition = "2021"
license = "GPL-3.0-only"
repository = "https://github.com/tinyhumansai/openhuman"
[workspace.dependencies]
openhuman-core = { path = "crates/openhuman-core", package = "openhuman" }
openhuman-rpc = { path = "crates/openhuman-rpc", default-features = false }
openhuman-embed = { path = "crates/openhuman-embed", default-features = false }
openhuman-tinyhumans = { path = "crates/openhuman-tinyhumans", default-features = false }
# Patches are workspace-root settings; Cargo ignores them in member manifests.
[patch."https://github.com/tinyhumansai/tinytools"]
# tinymcp's `tools` feature names tinytools by git rev so it can be built on its
# own. Redirect it to the copy tinyagents vendors — the one the harness and
# every host tool link — so there is exactly one `tinytools` package and one
# `Tool` trait. Without this, MCP tools would not satisfy the harness's trait.
tinytools = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools" }
tinytools-agent = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools-agent" }
[patch."https://github.com/tinyhumansai/tinyinference"]
tinyinference-core = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
tinyinference-embeddings = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
tinyinference-llm = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
tinyinference-providers = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-providers" }
tinyinference-voice = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-voice" }
[patch.crates-io]
tinyinference-core = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }
tinyinference-embeddings = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }
tinyinference-llm = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }
tinyinference-local = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-local" }
tinyinference-providers = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-providers" }
tinyinference-voice = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference-voice" }
tinyflows = { path = "vendor/tinyflows/crates/tinyflows" }
tinychannels = { path = "vendor/tinychannels" }
# Emit enough release DWARF for server-side Sentry symbolication while keeping
# shipped binaries small. The CI profile deliberately disables LTO/debug info.
[profile.release]
debug = "line-tables-only"
split-debuginfo = "packed"
lto = "thin"
codegen-units = 16
strip = "symbols"
[profile.ci]
inherits = "release"
opt-level = 1
codegen-units = 16
lto = false
incremental = false
strip = true
debug = false
[profile.dev.package."*"]
debug = false