Crates.io | arcs |
lib.rs | arcs |
version | 0.3.0 |
source | src |
created_at | 2020-01-08 12:42:48.843907 |
updated_at | 2020-02-28 11:30:26.737986 |
description | An extensible framework for creating 2D CAD applications using the Entity-Component-System pattern. |
homepage | |
repository | https://github.com/Michael-F-Bryan/arcs |
max_upload_size | |
id | 196569 |
size | 160,722 |
(API Docs for master
/WebAssembly Demo)
An extensible framework for creating 2D CAD applications, written in Rust and based on an Entity-Component-System architecture.
If you want a high-level understanding of how this project is implemented and the way things are designed, you may want to check out A Thought Experiment: Using the ECS Pattern Outside of Game Engines.
I've broken the direction of this project up into a handful of milestones, each containing a list of related features or concepts.
Milestone: MVP
Arc
, Point
, Line
, etc.)LineStyle
with a colour and stroke width)Layer
BoundingBox
which gets recalculated whenever
something changesrender_to_image.rs
)Milestone: Online demo
<canvas>
Viewport
panningViewport
in/outMilestone: Required by Real-World Applications (see Michael-F-Bryan/rustmatic#38)
Wish List
If you want to run the WebAssembly demo locally you'll first need a copy of the code.
$ git clone https://github.com/Michael-F-Bryan/arcs
You'll also need the wasm-pack
program. We'll use this to build the
demo.
$ cargo install --force wasm-pack
Updating crates.io index
Installing wasm-pack v0.8.1
Downloaded cc v1.0.50
...
Compiling wasm-pack v0.8.1
Finished release [optimized] target(s) in 2m 20s
Installed /home/michael/.cargo/bin/wasm-pack
Now we can build the demo.
$ cd arcs/demo
$ wasm-pack build --target web
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
Compiling arcs-demo v0.1.0 (/home/michael/Documents/arcs/demo)
Finished release [optimized] target(s) in 8.19s
:-) [WARN]: origin crate has no README
[INFO]: Installing wasm-bindgen...
[INFO]: :-) Done in 8.37s
[INFO]: :-) Your wasm pkg is ready to publish at ./pkg.
$ ls pkg
arcs_demo.d.ts arcs_demo.js arcs_demo_bg.d.ts arcs_demo_bg.wasm
package.json README.md
Now the demo is compiled, it can be served from disk.
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [10/Jan/2020 18:31:35] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Jan/2020 18:31:35] "GET /pkg/arcs_demo.js HTTP/1.1" 200 -
127.0.0.1 - - [10/Jan/2020 18:31:35] "GET /pkg/arcs_demo_bg.wasm HTTP/1.1" 200 -
This project is licensed under either of
at your option.
It is recommended to always use cargo-crev to verify the trustworthiness of each of your dependencies, including this one.
The easiest way to start contributing is to check the issue tracker and look for an easy issue to tackle. Alternatively the wishlist contains a list of features we'd like to implement, although these may require more effort or experience.
We're always keen to help mentor contributors!
The intent of this crate is to be free of soundness bugs. The developers will do their best to avoid them, and welcome help in analyzing and fixing them.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.