Initial commit

This commit is contained in:
Eric Zhang 2021-05-31 11:53:19 -05:00
commit 0c868538b8
7 changed files with 46 additions and 0 deletions

10
.editorconfig Normal file
View File

@ -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
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

3
.prettierrc Normal file
View File

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

5
Cargo.lock generated Normal file
View File

@ -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
Cargo.toml Normal file
View File

@ -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
README.md Normal file
View File

@ -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
src/main.rs Normal file
View File

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