mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Swaps the `arrayvec` dependency for `heapless`, as the `heapless` library allows changing the type used for the `len` field, which `arrayvec` hard-codes to `usize`. This means that, for all the `ArrayVec`s in Zed, we can save 7 bytes on 64 bit platforms by just storing the length as a `u8`. I have not benchmarked this change locally, as I don't know what benchmarking tools are in this project. As a small bit of context, I wrote the PR to `heapless` to add this `LenT` generic after seeing a PR on the `arrayvec` crate that seems to be dead now. Once I saw some of Zed's blog posts about the `rope` crate and noticed the usage of `arrayvec`, I thought this might be a welcome change. Release Notes: - N/A --------- Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
140 lines
3.8 KiB
TOML
140 lines
3.8 KiB
TOML
[package]
|
|
name = "agent_ui"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/agent_ui.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = [
|
|
"assistant_text_thread/test-support",
|
|
"acp_thread/test-support",
|
|
"eval_utils",
|
|
"gpui/test-support",
|
|
"language/test-support",
|
|
"reqwest_client",
|
|
"workspace/test-support",
|
|
"agent/test-support",
|
|
]
|
|
unit-eval = []
|
|
|
|
[dependencies]
|
|
acp_thread.workspace = true
|
|
action_log.workspace = true
|
|
agent-client-protocol.workspace = true
|
|
agent.workspace = true
|
|
agent_servers.workspace = true
|
|
agent_settings.workspace = true
|
|
ai_onboarding.workspace = true
|
|
anyhow.workspace = true
|
|
heapless.workspace = true
|
|
assistant_text_thread.workspace = true
|
|
assistant_slash_command.workspace = true
|
|
assistant_slash_commands.workspace = true
|
|
audio.workspace = true
|
|
base64.workspace = true
|
|
buffer_diff.workspace = true
|
|
chrono.workspace = true
|
|
client.workspace = true
|
|
cloud_api_types.workspace = true
|
|
cloud_llm_client.workspace = true
|
|
collections.workspace = true
|
|
command_palette_hooks.workspace = true
|
|
component.workspace = true
|
|
context_server.workspace = true
|
|
db.workspace = true
|
|
editor.workspace = true
|
|
eval_utils = { workspace = true, optional = true }
|
|
extension.workspace = true
|
|
extension_host.workspace = true
|
|
feature_flags.workspace = true
|
|
file_icons.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
git.workspace = true
|
|
fuzzy.workspace = true
|
|
gpui.workspace = true
|
|
gpui_tokio.workspace = true
|
|
html_to_markdown.workspace = true
|
|
http_client.workspace = true
|
|
indoc.workspace = true
|
|
itertools.workspace = true
|
|
jsonschema.workspace = true
|
|
language.workspace = true
|
|
language_model.workspace = true
|
|
language_models.workspace = true
|
|
log.workspace = true
|
|
lsp.workspace = true
|
|
markdown.workspace = true
|
|
menu.workspace = true
|
|
multi_buffer.workspace = true
|
|
notifications.workspace = true
|
|
ordered-float.workspace = true
|
|
parking_lot.workspace = true
|
|
paths.workspace = true
|
|
picker.workspace = true
|
|
postage.workspace = true
|
|
project.workspace = true
|
|
prompt_store.workspace = true
|
|
proto.workspace = true
|
|
rand.workspace = true
|
|
release_channel.workspace = true
|
|
rope.workspace = true
|
|
rules_library.workspace = true
|
|
schemars.workspace = true
|
|
search.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
serde_json_lenient.workspace = true
|
|
settings.workspace = true
|
|
smol.workspace = true
|
|
streaming_diff.workspace = true
|
|
task.workspace = true
|
|
telemetry.workspace = true
|
|
terminal.workspace = true
|
|
terminal_view.workspace = true
|
|
text.workspace = true
|
|
theme.workspace = true
|
|
time.workspace = true
|
|
time_format.workspace = true
|
|
ui.workspace = true
|
|
ui_input.workspace = true
|
|
url.workspace = true
|
|
util.workspace = true
|
|
uuid.workspace = true
|
|
watch.workspace = true
|
|
workspace.workspace = true
|
|
zed_actions.workspace = true
|
|
image.workspace = true
|
|
async-fs.workspace = true
|
|
reqwest_client = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
acp_thread = { workspace = true, features = ["test-support"] }
|
|
agent = { workspace = true, features = ["test-support"] }
|
|
assistant_text_thread = { workspace = true, features = ["test-support"] }
|
|
buffer_diff = { workspace = true, features = ["test-support"] }
|
|
|
|
db = { workspace = true, features = ["test-support"] }
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
eval_utils.workspace = true
|
|
gpui = { workspace = true, "features" = ["test-support"] }
|
|
indoc.workspace = true
|
|
language = { workspace = true, "features" = ["test-support"] }
|
|
languages = { workspace = true, features = ["test-support"] }
|
|
language_model = { workspace = true, "features" = ["test-support"] }
|
|
pretty_assertions.workspace = true
|
|
project = { workspace = true, features = ["test-support"] }
|
|
|
|
semver.workspace = true
|
|
reqwest_client.workspace = true
|
|
|
|
tree-sitter-md.workspace = true
|
|
unindent.workspace = true
|