Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Allow starting signed local actors in embedded REPL host (#122)
Browse files Browse the repository at this point in the history
* implemented starting actor from local wasm standalone

initial working commit of lattice mode local actor

* refactored logic to more succinctly load actors from disk

added snippet to ctl start actor help text

cleaned up code for PR, fixed #109
  • Loading branch information
brooksmtownsend authored Apr 21, 2021
1 parent 90d34aa commit 8914a65
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 116 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wash-cli"
version = "0.4.1"
version = "0.4.2"
authors = ["wasmCloud Team"]
edition = "2018"
repository = "https://github.com/wasmcloud/wash"
Expand All @@ -10,6 +10,11 @@ readme = "README.md"
keywords = ["webassembly", "wasmcloud", "wash", "cli"]
categories = ["wasm", "command-line-utilities"]

[features]
default = ["wasm3"]
wasmtime = ["wasmcloud-host/wasmtime"]
wasm3 = ["wasmcloud-host/wasm3"]

[badges]
maintenance = { status = "actively-developed" }

Expand All @@ -33,7 +38,7 @@ nkeys = "0.1.0"
wascap = "0.6.0"
provider-archive = "0.4.0"
wasmcloud-control-interface = "0.3.0"
wasmcloud-host = "0.18.0"
wasmcloud-host = { version = "0.18.0", default-features = false }

[dev-dependencies]
test_bin = "0.3.0"
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
test: ## Run unit test suite
cargo test --no-fail-fast --verbose --bin wash -- --nocapture

test-integration: ##Run integration test suite
test-integration-wasm3: ##Run integration test suite with wasm3 engine
docker-compose -f ./tools/docker-compose.yml up --detach
cargo test --no-fail-fast --verbose --test "integration*" -- --nocapture
cargo test --no-fail-fast --verbose --test "integration*" --no-default-features --features wasm3 -- --nocapture
docker-compose -f ./tools/docker-compose.yml down

test-all: test test-integration ## Run all tests
test-integration-wasmtime: ##Run integration test suite with wasmtime engine
docker-compose -f ./tools/docker-compose.yml up --detach
cargo test --no-fail-fast --verbose --test "integration*" --no-default-features --features wasmtime -- --nocapture
docker-compose -f ./tools/docker-compose.yml down

test-all: test test-integration-wasm3 test-integration-wasmtime ## Run all tests

##@ Helpers

Expand Down
4 changes: 2 additions & 2 deletions src/ctl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ pub(crate) struct StartActorCommand {

/// Id of host, if omitted the actor will be auctioned in the lattice to find a suitable host
#[structopt(short = "h", long = "host-id", name = "host-id")]
host_id: Option<String>,
pub(crate) host_id: Option<String>,

/// Actor reference, e.g. the OCI URL for the actor
/// Actor reference, e.g. the OCI URL for the actor. This can also be a signed local wasm file when using the REPL host
#[structopt(name = "actor-ref")]
pub(crate) actor_ref: String,

Expand Down
Loading

0 comments on commit 8914a65

Please sign in to comment.