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
221 changes: 221 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ members = [
"crates/floatile-ui-schema",
"crates/floatile-cli",
"plugins/clock-wasm",
"plugins/ai-balance-wasm",
"plugins/evil-wasm",
]

Expand Down Expand Up @@ -45,7 +46,10 @@ thiserror = "2"
toml = "0.8"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "macros", "sync"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "macros", "sync", "net"] }
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream"] }
url = "2"
futures-util = "0.3"
slint = { version = "1.17", features = ["backend-winit", "unstable-winit-030"] }
winit = "0.30"
x11rb = { version = "0.13", default-features = false, features = ["randr", "shape"] }
Expand Down
9 changes: 9 additions & 0 deletions crates/floatile-cli/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ pub fn build_project(project_dir: &Path, out: &Path) -> Result<Manifest, BuildEr
// 2. 宿主运行 build_ftui 生成 widget.ftui。
let ftui_output = Command::new("cargo")
.current_dir(project_dir)
// Author projects conventionally use the same `build_ftui` binary name. Cargo places
// host binaries directly under the target profile directory, so concurrent builds of
// different plugins can otherwise overwrite/run each other's executable on Windows.
.env(
"CARGO_TARGET_DIR",
meta.target_dir
.join("floatile-host")
.join(&meta.package_name),
)
.args([
"run",
"--quiet",
Expand Down
Loading