Skip to content

Commit 03ec71d

Browse files
committed
Added some basic (nonworking) tests
1 parent c360730 commit 03ec71d

File tree

25 files changed

+233
-54
lines changed

25 files changed

+233
-54
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ features = [
6060
"InputEvent",
6161
]
6262

63-
6463
[workspace]
6564
members = [
6665
"examples/counter",

examples/counter/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.1.0"
44
authors = ["David O'Connor <[email protected]>"]
55
edition = "2018"
66

7-
87
[lib]
98
crate-type = ["cdylib"]
109

examples/counter/pkg/counter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ __exports.__wbindgen_cb_drop = function(i) {
511511
return 0;
512512
};
513513

514-
__exports.__wbindgen_closure_wrapper528 = function(a, b, _ignored) {
514+
__exports.__wbindgen_closure_wrapper594 = function(a, b, _ignored) {
515515
const f = wasm.__wbg_function_table.get(2);
516516
const d = wasm.__wbg_function_table.get(3);
517517
const cb = function(arg0) {

examples/counter/pkg/counter_bg.wasm

348 Bytes
Binary file not shown.

examples/homepage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
The Seed homepage, also serving as an example. Includes
2-
simple interactions, markdown elements, basic routing, and lots of view markup.
2+
simple interactions, markdown elements, basic routing, and view markup.
33

44
# [Homepage repo](https://github.com/David-OConnor/seed-homepage)
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
[package]
22
name = "backend"
33
version = "0.1.0"
4-
authors = ["DavidOConnor <david.alan.oconnor@gmail.com>"]
4+
authors = ["Your Name <email@address.com>"]
55
edition = "2018"
66

77
[dependencies]
88
rocket = "^0.4.0-rc.1"
9-
serde = { version = "^1.0.80", features = ['derive'] }
109
serde_json = "^1.0.33"
1110

1211
rocket_cors = "^0.4.0"
1312

14-
# For experimenting with joining data structures across client and server
15-
seed = "^0.2.1"
16-
1713
shared = { path = "shared" }

examples/server_integration/frontend

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "frontend"
3+
version = "0.1.0"
4+
authors = ["Your Name <[email protected]>"]
5+
edition = "2018"
6+
7+
[lib]
8+
crate-type = ["cdylib"]
9+
10+
[dependencies]
11+
seed = "^0.2.1"
12+
wasm-bindgen = "^0.2.29"
13+
web-sys = "^0.3.6"
14+
shared = { path = "../shared"}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cargo build --target wasm32-unknown-unknown
2+
wasm-bindgen target/wasm32-unknown-unknown/debug/frontend.wasm --no-modules --out-dir ./pkg
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
cargo build --target wasm32-unknown-unknown
3+
wasm-bindgen target/wasm32-unknown-unknown/debug/frontend.wasm --no-modules --out-dir ./pkg

0 commit comments

Comments
 (0)