
The `async-watch` crate doesn't seem to be maintained and we noticed several panics coming from it, such as: ``` [bug] failed to observe change after notificaton. zed::reliability::init_panic_hook::{{closure}}::hea8cdcb6299fad6b+154543526 std::panicking::rust_panic_with_hook::h33b18b24045abff4+127578547 std::panicking::begin_panic_handler::{{closure}}::hf8313cc2fd0126bc+127577770 std::sys::backtrace::__rust_end_short_backtrace::h57fe07c8aea5c98a+127571385 __rustc[95feac21a9532783]::rust_begin_unwind+127576909 core::panicking::panic_fmt::hd54fb667be51beea+9433328 core::option::expect_failed::h8456634a3dada3e4+9433291 assistant_tools::edit_agent::EditAgent::apply_edit_chunks::{{closure}}::habe2e1a32b267fd4+26921553 gpui::app::async_context::AsyncApp::spawn::{{closure}}::h12f5f25757f572ea+25923441 async_task::raw::RawTask<F,T,S,M>::run::h3cca0d402690ccba+25186815 <gpui::platform::linux::x11::client::X11Client as gpui::platform::linux::platform::LinuxClient>::run::h26264aefbcfbc14b+73961666 gpui::platform::linux::platform::<impl gpui::platform::Platform for P>::run::hb12dcd4abad715b5+73562509 gpui::app::Application::run::h0f936a5f855a3f9f+150676820 zed::main::ha17f9a25fe257d35+154788471 std::sys::backtrace::__rust_begin_short_backtrace::h1edd02429370b2bd+154624579 std::rt::lang_start::{{closure}}::h3d2e300f10059b0a+154264777 std::rt::lang_start_internal::h418648f91f5be3a1+127502049 main+154806636 __libc_start_main+46051972301573 _start+12358494 ``` I didn't find an executor-agnostic watch crate that was well maintained (we already tried postage and async-watch), so decided to implement it our own version. Release Notes: - Fixed a panic that could sometimes occur when the agent performed edits.
210 lines
6 KiB
TOML
210 lines
6 KiB
TOML
[package]
|
|
description = "The fast, collaborative code editor."
|
|
edition.workspace = true
|
|
name = "zed"
|
|
version = "0.191.0"
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
authors = ["Zed Team <hi@zed.dev>"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "zed"
|
|
path = "src/zed-main.rs"
|
|
|
|
[lib]
|
|
name = "zed"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
activity_indicator.workspace = true
|
|
agent.workspace = true
|
|
agent_settings.workspace = true
|
|
anyhow.workspace = true
|
|
askpass.workspace = true
|
|
assets.workspace = true
|
|
assistant_context_editor.workspace = true
|
|
assistant_tool.workspace = true
|
|
assistant_tools.workspace = true
|
|
audio.workspace = true
|
|
auto_update.workspace = true
|
|
auto_update_ui.workspace = true
|
|
backtrace = "0.3"
|
|
breadcrumbs.workspace = true
|
|
call.workspace = true
|
|
channel.workspace = true
|
|
chrono.workspace = true
|
|
clap.workspace = true
|
|
cli.workspace = true
|
|
client.workspace = true
|
|
collab_ui.workspace = true
|
|
collections.workspace = true
|
|
command_palette.workspace = true
|
|
component.workspace = true
|
|
copilot.workspace = true
|
|
dap_adapters.workspace = true
|
|
db.workspace = true
|
|
debug_adapter_extension.workspace = true
|
|
debugger_tools.workspace = true
|
|
debugger_ui.workspace = true
|
|
diagnostics.workspace = true
|
|
editor.workspace = true
|
|
env_logger.workspace = true
|
|
extension.workspace = true
|
|
extension_host.workspace = true
|
|
extensions_ui.workspace = true
|
|
feature_flags.workspace = true
|
|
feedback.workspace = true
|
|
file_finder.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
git.workspace = true
|
|
git_hosting_providers.workspace = true
|
|
git_ui.workspace = true
|
|
go_to_line.workspace = true
|
|
gpui = { workspace = true, features = ["wayland", "x11", "font-kit"] }
|
|
gpui_tokio.workspace = true
|
|
http_client.workspace = true
|
|
image_viewer.workspace = true
|
|
indoc.workspace = true
|
|
inline_completion_button.workspace = true
|
|
inspector_ui.workspace = true
|
|
install_cli.workspace = true
|
|
jj_ui.workspace = true
|
|
journal.workspace = true
|
|
language.workspace = true
|
|
language_extension.workspace = true
|
|
language_model.workspace = true
|
|
language_models.workspace = true
|
|
language_selector.workspace = true
|
|
language_tools.workspace = true
|
|
languages = { workspace = true, features = ["load-grammars"] }
|
|
libc.workspace = true
|
|
log.workspace = true
|
|
markdown.workspace = true
|
|
markdown_preview.workspace = true
|
|
menu.workspace = true
|
|
migrator.workspace = true
|
|
mimalloc = { version = "0.1", optional = true }
|
|
nix = { workspace = true, features = ["pthread", "signal", "user"] }
|
|
node_runtime.workspace = true
|
|
notifications.workspace = true
|
|
outline.workspace = true
|
|
outline_panel.workspace = true
|
|
parking_lot.workspace = true
|
|
paths.workspace = true
|
|
picker.workspace = true
|
|
profiling.workspace = true
|
|
project.workspace = true
|
|
project_panel.workspace = true
|
|
project_symbols.workspace = true
|
|
prompt_store.workspace = true
|
|
proto.workspace = true
|
|
recent_projects.workspace = true
|
|
release_channel.workspace = true
|
|
remote.workspace = true
|
|
repl.workspace = true
|
|
reqwest_client.workspace = true
|
|
rope.workspace = true
|
|
search.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
session.workspace = true
|
|
settings.workspace = true
|
|
settings_ui.workspace = true
|
|
shellexpand.workspace = true
|
|
smol.workspace = true
|
|
snippet_provider.workspace = true
|
|
snippets_ui.workspace = true
|
|
supermaven.workspace = true
|
|
sysinfo.workspace = true
|
|
tab_switcher.workspace = true
|
|
task.workspace = true
|
|
tasks_ui.workspace = true
|
|
telemetry.workspace = true
|
|
telemetry_events.workspace = true
|
|
terminal_view.workspace = true
|
|
theme.workspace = true
|
|
theme_extension.workspace = true
|
|
theme_selector.workspace = true
|
|
time.workspace = true
|
|
title_bar.workspace = true
|
|
toolchain_selector.workspace = true
|
|
ui.workspace = true
|
|
ui_input.workspace = true
|
|
ui_prompt.workspace = true
|
|
url.workspace = true
|
|
urlencoding.workspace = true
|
|
util.workspace = true
|
|
uuid.workspace = true
|
|
vim.workspace = true
|
|
vim_mode_setting.workspace = true
|
|
watch.workspace = true
|
|
web_search.workspace = true
|
|
web_search_providers.workspace = true
|
|
welcome.workspace = true
|
|
workspace-hack.workspace = true
|
|
workspace.workspace = true
|
|
zed_actions.workspace = true
|
|
zeta.workspace = true
|
|
zlog.workspace = true
|
|
zlog_settings.workspace = true
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows.workspace = true
|
|
|
|
[target.'cfg(target_os = "windows")'.build-dependencies]
|
|
winresource = "0.1"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
|
|
ashpd.workspace = true
|
|
|
|
[dev-dependencies]
|
|
call = { workspace = true, features = ["test-support"] }
|
|
dap = { workspace = true, features = ["test-support"] }
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
image_viewer = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
terminal_view = { workspace = true, features = ["test-support"] }
|
|
tree-sitter-md.workspace = true
|
|
tree-sitter-rust.workspace = true
|
|
workspace = { workspace = true, features = ["test-support"] }
|
|
|
|
[package.metadata.bundle-dev]
|
|
icon = ["resources/app-icon-dev@2x.png", "resources/app-icon-dev.png"]
|
|
identifier = "dev.zed.Zed-Dev"
|
|
name = "Zed Dev"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-nightly]
|
|
icon = ["resources/app-icon-nightly@2x.png", "resources/app-icon-nightly.png"]
|
|
identifier = "dev.zed.Zed-Nightly"
|
|
name = "Zed Nightly"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-preview]
|
|
icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
|
identifier = "dev.zed.Zed-Preview"
|
|
name = "Zed Preview"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.bundle-stable]
|
|
icon = ["resources/app-icon@2x.png", "resources/app-icon.png"]
|
|
identifier = "dev.zed.Zed"
|
|
name = "Zed"
|
|
osx_minimum_system_version = "10.15.7"
|
|
osx_info_plist_exts = ["resources/info/*"]
|
|
osx_url_schemes = ["zed"]
|
|
|
|
[package.metadata.cargo-machete]
|
|
ignored = ["profiling", "zstd"]
|