[Package]: Zed, an extremely fast Rust-based collabrative code editor that utilizes the GPU+CPU and has AI integration
#21 406 ouverte le 9 sept. 2024
Métriques du dépôt
- Stars
- (16 216 stars)
- Métriques de merge PR
- (Merge moyen 2j 12h) (131 PRs mergées en 30 j)
Description
Why is it worth to add this package?
Zed is an extremely fast, open-source code editor built in Rust, that's optimized for performance and stability. It utilizes both the CPU and GPU, making it insanely quicker than VS Code.
One of Zed’s best features is its AI integration. You can use your own local models (eg: from Ollama) or connect to AI services like OpenAI, Anthropic, Google, or GitHub Copilot. This AI integration is a game-changer for editing as zed shows code diffs(from the AI) directly in the editor, letting you approve or reject changes without the hassle of copy-pasting. Additionally, Zed is currently offering free unlimited access to Claude Sonnet 3.5 (with a 200k token context window) thanks to a partnership with Anthropic.
Zed also shines in collaboration. Its built-in "Rooms" feature makes real-time editing, voice chatting, and code sharing super easy without needing extra extensions. It’s a great tool for teams working together, keeping things simple for collaborative projects. It has a ton more features that are showcased in the home page url
Home page URL
Source code URL
https://github.com/zed-industries/zed
Packaging policy acknowledgement
-
The project is actively developed.
-
The project has existing packages and is "well known".
-
Licensed under an open source license.
-
Not available through a language package manager: pip, npm, cpan, cargo, etc.
-
Not taking up too much disk space (< 100MiB per architecture, exceptions can be made)
-
Not duplicating the functionality of existing packages.
-
Not serving hacking, malware, phishing, spamming, spying, ddos functionality.
-
I certify that I have read Termux Packaging Policy and understand that my request will be denied if it is found lacking.
Additional information
Tried to build using instructions from here https://github.com/zed-industries/zed/blob/main/docs/src/development/linux.md
What I tried(on native termux running on my aarch64 device)
git clone https://github.com/zed-industries/zed.git
cd zed
cargo run
Got this error
error: could not compile `cranelift-codegen` (lib)
Caused by:
process didn't exit successfully: `rustc --crate-name cranelift_codegen --edition=2021 /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cranelift-codegen-0.108.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=135 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=16 -C debuginfo=1 -C split-debuginfo=unpacked --warn=unused_import_braces --warn=unused_extern_crates --warn=unstable_features --warn=trivial_numeric_casts '--allow=clippy::all' -C debug-assertions=on --cfg 'feature="gimli"' --cfg 'feature="host-arch"' --cfg 'feature="std"' --cfg 'feature="trace-log"' --cfg 'feature="unwind"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("all-arch", "anyhow", "arm64", "capstone", "core", "default", "disas", "enable-serde", "gimli", "host-arch", "incremental-cache", "isle-errors", "isle-in-source-tree", "postcard", "riscv64", "s390x", "serde", "serde_derive", "sha2", "souper-harvest", "souper-ir", "std", "timing", "trace-log", "unwind", "x86"))' -C metadata=fc3341d7b4642bcb -C extra-filename=-fc3341d7b4642bcb --out-dir /data/data/com.termux/files/home/src/zed/target/debug/deps -L dependency=/data/data/com.termux/files/home/src/zed/target/debug/deps --extern bumpalo=/data/data/com.termux/files/home/src/zed/target/debug/deps/libbumpalo-517d31079c3613a9.rmeta --extern cranelift_bforest=/data/data/com.termux/files/home/src/zed/target/debug/deps/libcranelift_bforest-dad22fee75aabd5a.rmeta --extern cranelift_codegen_shared=/data/data/com.termux/files/home/src/zed/target/debug/deps/libcranelift_codegen_shared-65a2b5af969d12f0.rmeta --extern cranelift_control=/data/data/com.termux/files/home/src/zed/target/debug/deps/libcranelift_control-1d343ad485ebfc58.rmeta --extern cranelift_entity=/data/data/com.termux/files/home/src/zed/target/debug/deps/libcranelift_entity-1f20fd38a8fbb17d.rmeta --extern gimli=/data/data/com.termux/files/home/src/zed/target/debug/deps/libgimli-ccdbdb3418384650.rmeta --extern hashbrown=/data/data/com.termux/files/home/src/zed/target/debug/deps/libhashbrown-42dce89809bec3c5.rmeta --extern log=/data/data/com.termux/files/home/src/zed/target/debug/deps/liblog-ed64794818536102.rmeta --extern regalloc2=/data/data/com.termux/files/home/src/zed/target/debug/deps/libregalloc2-5148abc94001315b.rmeta --extern rustc_hash=/data/data/com.termux/files/home/src/zed/target/debug/deps/librustc_hash-0ef09fc6cb64304d.rmeta --extern smallvec=/data/data/com.termux/files/home/src/zed/target/debug/deps/libsmallvec-5a9ecabd518eac8f.rmeta --extern target_lexicon=/data/data/com.termux/files/home/src/zed/target/debug/deps/libtarget_lexicon-d9dda9d0f746cf51.rmeta --cap-lints allow -C symbol-mangling-version=v0 --cfg tokio_unstable --cfg 'feature="arm64"'` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...