GitHub Using Rust in Electron-Based Experimental Editor Xray


An interesting readme on the project’s GitHub page about the architecture and the use of Rust in the core application logic of Xray. They’re using Rust to improve the applications speed and exploit Rust’s superior concurrency support. The Rust crate is made accessible to Electron’s JavaScript code via N-API bindings, and then loaded in via Node’s native add-on system. They also go into a bit of detail on them using the RGASplit variant for their copy-on-write CRDT (Conflict-Free Replicated Data Type).