-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,14 @@ name = "domafic" | |
version = "0.1.0" | ||
authors = ["Taylor Cramer <[email protected]>"] | ||
|
||
license = "MIT/Apache-2.0" | ||
repository = "https://github.com/cramertj/domafic-rs" | ||
documentation = "https://docs.rs/domafic/0" | ||
|
||
description = "A library for building safe, high-performance, universal web applications" | ||
|
||
keywords = ["web", "ui", "javascript", "framework", "template"] | ||
|
||
[dependencies] | ||
either_n = { version = "0.2.0", optional = true } | ||
libc = { version = "0.2.16", optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# domafic-rs | ||
# Domafic - Safe, high-performance, universal web applications | ||
|
||
[](https://travis-ci.org/cramertj/domafic-rs) | ||
[](https://crates.io/crates/domafic) | ||
|
||
[Documentation](https://docs.rs/domafic) | ||
|
||
## Installing Emscripten | ||
Using Domafic in the browser requires Emscripten. | ||
To get started with Emscripten, follow the steps detailed | ||
[here.](https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten) | ||
|
||
## Running the Examples | ||
To try the examples in a browser, start by compiling the example to asm.js: | ||
`cargo build --example todo_mvc --target=asmjs-unknown-emscripten` | ||
If this is your first time compiling with Emscripten, this may take a while. | ||
Once the example is built, open up `index_debug.html` (for debug builds) or | ||
`index_release.html` (for release builds) and make sure the script `src` is | ||
set to point at the example you want to run. From there it's as simple as | ||
opening up your browser and trying it out! |