-
- Downloads
(ml5717) Initial basic Rust+WASM CRDT with user update, user events, simple...
(ml5717) Initial basic Rust+WASM CRDT with user update, user events, simple delta broadcast generation
parents
No related branches found
No related tags found
Showing
- .gitignore 8 additions, 0 deletions.gitignore
- Cargo.toml 44 additions, 0 deletionsCargo.toml
- build.rs 10 additions, 0 deletionsbuild.rs
- schema/crdt.capnp 12 additions, 0 deletionsschema/crdt.capnp
- src/crdt.rs 462 additions, 0 deletionssrc/crdt.rs
- src/lib.rs 116 additions, 0 deletionssrc/lib.rs
- src/utils.rs 11 additions, 0 deletionssrc/utils.rs
- tests/web.rs 14 additions, 0 deletionstests/web.rs
- www/bootstrap.js 5 additions, 0 deletionswww/bootstrap.js
- www/index.html 11 additions, 0 deletionswww/index.html
- www/index.js 39 additions, 0 deletionswww/index.js
- www/package-lock.json 0 additions, 0 deletionswww/package-lock.json
- www/package.json 38 additions, 0 deletionswww/package.json
- www/webpack.config.js 14 additions, 0 deletionswww/webpack.config.js
.gitignore
0 → 100644
Cargo.toml
0 → 100644
[package] | ||
name = "drawing-crdt" | ||
version = "0.1.0" | ||
authors = ["Moritz Langenstein <ml5717@ic.ac.uk>"] | ||
edition = "2018" | ||
build = "build.rs" | ||
[build-dependencies] | ||
capnpc = "0.11.1" | ||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
[features] | ||
default = ["console_error_panic_hook"] | ||
[dependencies] | ||
wasm-bindgen = "0.2" | ||
js-sys = "0.3.33" | ||
uuid = "0.8.1" | ||
capnp = "0.11.1" | ||
serde = "1.0.104" | ||
serde_derive = "1.0.104" | ||
serde-wasm-bindgen = "0.1.3" | ||
# The `console_error_panic_hook` crate provides better debugging of panics by | ||
# logging them with `console.error`. This is great for development, but requires | ||
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for | ||
# code size when deploying. | ||
console_error_panic_hook = { version = "0.1.1", optional = true } | ||
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size | ||
# compared to the default allocator's ~10K. It is slower than the default | ||
# allocator, however. | ||
# | ||
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now. | ||
wee_alloc = { version = "0.4.2", optional = true } | ||
[dev-dependencies] | ||
wasm-bindgen-test = "0.2" | ||
[profile.release] | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "s" |
build.rs
0 → 100644
schema/crdt.capnp
0 → 100644
src/crdt.rs
0 → 100644
src/lib.rs
0 → 100644
src/utils.rs
0 → 100644
tests/web.rs
0 → 100644
www/bootstrap.js
0 → 100644
www/index.html
0 → 100644
www/index.js
0 → 100644
www/package-lock.json
0 → 100644
Source diff could not be displayed: it is too large. Options to address this: view the blob.
www/package.json
0 → 100644
www/webpack.config.js
0 → 100644
Please register or sign in to comment