-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from erikziyunchi/jmwample/re-org
Reorganize
- Loading branch information
Showing
76 changed files
with
4,335 additions
and
640 deletions.
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
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,4 +1,5 @@ | ||
*/target | ||
/target | ||
target | ||
.DS_Store | ||
.vscode | ||
.vscode | ||
Cargo.lock |
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,44 +1,13 @@ | ||
[package] | ||
name = "W-A-T-E-R" | ||
version = "0.1.0" | ||
author = "cerikccc@gmail.com" | ||
edition = "2021" | ||
|
||
[lib] | ||
# crate-type = ["cdylib"] | ||
name = "water" | ||
path = "src/lib.rs" | ||
|
||
[[bin]] | ||
name = "water_cli" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
anyhow = "1.0.7" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3.17" | ||
clap = { version="4.2.1", features = ["derive"] } | ||
wasmtime = "12.0.1" | ||
wasmtime-wasi = "12.0.1" | ||
wasi-common = "12.0.1" | ||
wasmtime-wasi-threads = "12.0.1" | ||
futures = "0.3" | ||
cap-std = "2.0.0" | ||
libc = "0.2.147" | ||
serde = { version = "1.0", features = ["derive"] } | ||
url = { version = "2.2.2", features = ["serde"] } | ||
toml = "0.7.6" | ||
once_cell = "1.13.0" | ||
[workspace] | ||
members = ["crates/*", "examples/water_bins/*", "examples/clients/*"] | ||
# exclude = ["crates/foo", "path/to/other"] | ||
default-members = ["crates/*"] | ||
resolver="2" | ||
|
||
bitflags = "2.4.0" | ||
|
||
bincode = "1.3" | ||
|
||
rustls = "0.20.6" | ||
rustls-pemfile = "1.0.0" | ||
zeroize = { version = "1.5.4", features = ["alloc"] } | ||
|
||
# test & benchmark dependency | ||
[dev-dependencies] | ||
rand = "0.8" | ||
pprof = { version = "0.11.1", features = ["flamegraph", "protobuf-codec", "prost-codec"] } | ||
[workspace.package] | ||
authors = ["cerikccc@gmail.com", "gaukas", "jmwample", "ewust"] | ||
description = "Water WebAssembly Transport Executor for rust" | ||
edition = "2021" | ||
# documentation = "https://example.com/bar" |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "water" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
description.workspace = true | ||
edition.workspace = true | ||
|
||
[lib] | ||
# crate-type = ["cdylib"] | ||
name = "water" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
anyhow = "1.0.7" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3.17" | ||
wasmtime = "12.0.1" | ||
wasmtime-wasi = "12.0.1" | ||
wasi-common = "12.0.1" | ||
wasmtime-wasi-threads = "12.0.1" | ||
futures = "0.3" | ||
cap-std = "2.0.0" | ||
libc = "0.2.147" | ||
serde = { version = "1.0", features = ["derive"] } | ||
url = { version = "2.2.2", features = ["serde"] } | ||
toml = "0.7.6" | ||
once_cell = "1.13.0" | ||
bitflags = "2.4.0" | ||
bincode = "1.3" | ||
rustls = "0.20.6" | ||
rustls-pemfile = "1.0.0" | ||
zeroize = { version = "1.5.4", features = ["alloc"] } |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pub mod wasm_shared_config; | ||
|
||
pub struct WATERConfig { | ||
pub filepath: String, | ||
pub entry_fn: String, | ||
pub config_wasm: String, | ||
pub client_type: u32, | ||
pub debug: bool, | ||
} | ||
|
||
impl WATERConfig { | ||
pub fn init( | ||
filepath: String, | ||
entry_fn: String, | ||
config_wasm: String, | ||
client_type: u32, | ||
debug: bool, | ||
) -> Result<Self, anyhow::Error> { | ||
Ok(WATERConfig { | ||
filepath, | ||
entry_fn, | ||
config_wasm, | ||
client_type, | ||
debug, | ||
}) | ||
} | ||
} |
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extern crate anyhow; | ||
extern crate cap_std; | ||
extern crate serde; | ||
extern crate tracing; | ||
extern crate wasi_common; | ||
extern crate wasmtime; | ||
extern crate wasmtime_wasi; | ||
extern crate wasmtime_wasi_threads; | ||
|
||
pub mod config; | ||
pub mod errors; | ||
pub mod globals; | ||
pub mod runtime; | ||
pub mod utils; |
Oops, something went wrong.