Eric Zhang 4 lat temu
commit
0c868538b8
7 zmienionych plików z 46 dodań i 0 usunięć
  1. 10 0
      .editorconfig
  2. 1 0
      .gitignore
  3. 3 0
      .prettierrc
  4. 5 0
      Cargo.lock
  5. 9 0
      Cargo.toml
  6. 15 0
      README.md
  7. 3 0
      src/main.rs

+ 10 - 0
.editorconfig

@@ -0,0 +1,10 @@
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.rs]
+tab_width = 4
+
+[*.{js,jsx,ts,tsx,html,css}]
+tab_width = 2

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/target

+ 3 - 0
.prettierrc

@@ -0,0 +1,3 @@
+{
+  "proseWrap": "always"
+}

+ 5 - 0
Cargo.lock

@@ -0,0 +1,5 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+[[package]]
+name = "rustpad"
+version = "0.1.0"

+ 9 - 0
Cargo.toml

@@ -0,0 +1,9 @@
+[package]
+name = "rustpad"
+version = "0.1.0"
+authors = ["Eric Zhang <ekzhang1@gmail.com>"]
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]

+ 15 - 0
README.md

@@ -0,0 +1,15 @@
+# Rustpad
+
+**Rustpad** is an _efficient_ and _minimal_ open-source collaborative text
+editor using the operational transformation (OT) algorithm. It has a client-side
+web interface that communicates by WebSocket with a central server storing
+in-memory data structures.
+
+The backend is written in Rust, using
+[Warp](https://github.com/seanmonstar/warp) and the open source
+[operational-transform](https://github.com/spebern/operational-transform-rs)
+library, which is a port of
+[ot.js](https://github.com/Operational-Transformation/ot.js). The frontend is
+written in React and interfaces with
+[Monaco](https://github.com/microsoft/monaco-editor), the same text editor that
+powers VS Code.

+ 3 - 0
src/main.rs

@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}