{
  "id": 20232015,
  "title": "Rust: My secret weapon for code reuse in desktops, mobile, and web",
  "url": "https://urgent.news/2026/11/15/rust-my-secret-weapon-for-code-reuse-in-desktops-mobile-and-web",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-15T22:54:52.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/the_real_tunc/rust-my-secret-weapon-for-code-reuse-in-desktops-mobile-and-web-20m0"
  },
  "original_language": "en",
  "account": "A novel approach to code reuse on desktop, mobile, and web platforms hinges on Rust, a programming language that enables sharing core components across diverse applications. Tunc, an independent alternative to Google Docs, exemplifies this method by leveraging Tunc WebSocket communications for real-time co-editing features within its native Hub interface and web-based browser version. The Rust codebase underpins the Tunc Doc document editing service and its desktop and mobile applications, ensuring consistent editing rules for all users.\n\nTunc Hub's shared Rust logic operates efficiently in web browsers through WebAssembly, an intermediary that translates Rust into a language understandable by web browsers. This compatibility allows the same editing features to function seamlessly across platforms, from web-based Tunc Doc editing to desktop and mobile applications.\n\nHowever, managing stale state and conflicts remains a challenge. Large agent changes necessitate a more deliberate approach, often requiring storage of changes until the next save or reopening, rather than immediate delivery. Despite these complexities, the Rust programming language and its library maintainers have paved the way for this innovative reuse strategy. Their efforts have democratized the development process, enabling different applications to harness the same underlying codebase and sharing the benefits of real-time communications and data resilience. A demonstration of this service is available for the public to explore at https://tuncdoc.com/.",
  "summary": "My own independent alternative to Google Docs reuses Tunc WebSocket communications to deliver co-editing features in native Hub and the browser. Tunc Rust code rebases anchored changes and reports explicit conflicts. The same editing rules support people and agents contributing to a draft. WebAssembly runs shared Rust logic in the browser, with adapters for its APIs. It means that much of the…",
  "key_points": [
    "Rust enables code reuse across desktop, mobile, and web platforms",
    "Tunc uses Rust for real-time co-editing in its Hub interface and web version",
    "WebAssembly allows Rust logic to function in web browsers seamlessly"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}