-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace nats-aflowt with async-nats (#98)
* replace nats-aflowt with async-nats Signed-off-by: Steve <[email protected]> * enable request with timeout Signed-off-by: Steve <[email protected]> * 'make test' runs against local docker instance Signed-off-by: Steve <[email protected]> * test against docker nats server Signed-off-by: Steve <[email protected]> * add 'gen' makefile target Signed-off-by: Steve <[email protected]> * use makefile tests in workflows Signed-off-by: Steve <[email protected]> * rust-check makefile target Signed-off-by: Steve <[email protected]> * rust-check makefile target Signed-off-by: Steve <[email protected]> * use macro for common subscriber code Signed-off-by: Steve <[email protected]> * add namespace header to generated files; update dependencies; bump weld-codegen to 0.4.4 Signed-off-by: stevelr <[email protected]> * WIP: async-nats support, upgrade dependencies Signed-off-by: stevelr <[email protected]> * merge rpc timeout fix from main Signed-off-by: stevelr <[email protected]> * add golang code generator, some minor refactoring Signed-off-by: stevelr <[email protected]> * comment-out debug logging Signed-off-by: stevelr <[email protected]> * combine writes for better readability. fix casename of struct fields Signed-off-by: stevelr <[email protected]> * fix field case Signed-off-by: stevelr <[email protected]> * complete first impl tinygo codegen Signed-off-by: stevelr <[email protected]> * sync with async-nats Signed-off-by: stevelr <[email protected]> * add rustfmt config Signed-off-by: stevelr <[email protected]> * use current wasmbus-core/model smithy Signed-off-by: stevelr <[email protected]> * fix rustfmt in rust stable Signed-off-by: stevelr <[email protected]> * fix rustfmt in rust stable Signed-off-by: stevelr <[email protected]> * fix rustfmt in rust stable Signed-off-by: stevelr <[email protected]> * refactor subscribe_rpc into rpc_client, partial tracing support Signed-off-by: stevelr <[email protected]> * refactor subscribe_rpc into rpc_client, partial tracing support (still WIP: checkpoint before merging otel) Signed-off-by: stevelr <[email protected]> * remove anats Signed-off-by: stevelr <[email protected]> * avoid warning on key field in HostBridge Signed-off-by: stevelr <[email protected]> * Upgraded async-nats to 0.15.0. Exported functions for initializing tracing with or without otel. Signed-off-by: stevelr <[email protected]> * add some cli examples Signed-off-by: stevelr <[email protected]> * uncomment cbor include Signed-off-by: stevelr <[email protected]> * wasm32 fix: don't reference tracing in provider library Signed-off-by: stevelr <[email protected]> * add logging for connection events Signed-off-by: stevelr <[email protected]> * change structured_logging_enabled to structured_logging Signed-off-by: stevelr <[email protected]> * remove unused code Signed-off-by: stevelr <[email protected]> * make comment about provider_main more verbose Signed-off-by: stevelr <[email protected]> * bump version to 0.9.0-alpha.1.1; default features does _not_ include otel Signed-off-by: stevelr <[email protected]> * add comment about otel tracing Signed-off-by: stevelr <[email protected]> * fix copy/paste error Signed-off-by: stevelr <[email protected]> * remove dead code; tidy up imports; log count when exiting listener Signed-off-by: stevelr <[email protected]> * add tokio-spawn around provider dispatch Signed-off-by: stevelr <[email protected]> * made spawn surround the entire rpc handler Signed-off-by: stevelr <[email protected]> * Helping Steve finish up some things Signed-off-by: Taylor Thomas <[email protected]> Co-authored-by: Taylor Thomas <[email protected]>
- Loading branch information
1 parent
6621944
commit 53b906f
Showing
31 changed files
with
1,411 additions
and
1,165 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
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 was deleted.
Oops, something went wrong.
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,34 +1,35 @@ | ||
# weld top-level Makefile | ||
# wasmcloud/weld top-level Makefile | ||
# | ||
# Makefiles in this repository assume you have GNU Make (version 4.x) | ||
# If you're on mac, `brew install make` | ||
# and ensure `/usr/local/opt/make/libexec/gnubin` is in your PATH before /usr/bin | ||
|
||
subdirs = codegen macros rpc-rs | ||
|
||
MODEL_OUTPUT := codegen/src/wasmbus_model.rs rpc-rs/src/wasmbus_model.rs | ||
#MODEL_SRC := examples/interface/wasmbus-core/wasmcloud-model.smithy \ | ||
# examples/interface/wasmbus-core/codegen.toml | ||
#WELD := target/debug/weld | ||
|
||
all: build | ||
|
||
build clean: | ||
cargo $@ | ||
all build release clean test update lint validate rust-check:: | ||
for dir in $(subdirs); do \ | ||
$(MAKE) -C $$dir $@ ; \ | ||
done | ||
|
||
test: | ||
# run clippy on all features and tests, and fail on warnings | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
cargo test | ||
|
||
release: | ||
cargo build --release | ||
test:: | ||
$(MAKE) check-model | ||
|
||
check-model: $(MODEL_OUTPUT) | ||
@diff $(MODEL_OUTPUT) || (echo ERROR: Model files differ && exit 1) | ||
|
||
WELD_SRC := bin/Cargo.toml bin/src/*.rs codegen/Cargo.toml codegen/templates/*.toml \ | ||
codegen/templates/*.hbs codegen/templates/rust/*.hbs | ||
target/debug/weld: $(WELD_SRC) | ||
cargo build --package weld-bin | ||
gen: | ||
$(MAKE) -C codegen release | ||
(cd codegen && target/release/codegen) | ||
(cd rpc-rs && ../codegen/target/release/codegen) | ||
|
||
#WELD_SRC := bin/Cargo.toml bin/src/*.rs codegen/Cargo.toml codegen/templates/*.toml \ | ||
# codegen/templates/*.hbs codegen/templates/rust/*.hbs | ||
#target/debug/weld: $(WELD_SRC) | ||
# cargo build --package weld-bin | ||
|
||
.PHONY: all build release clean test check-model | ||
.NOTPARALLEL: |
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,18 @@ | ||
# weld/macros/Makefile | ||
|
||
all: build | ||
|
||
build clean update: | ||
cargo $@ | ||
|
||
release: | ||
cargo build --release | ||
|
||
test:: | ||
cargo test --all-features --all-targets -- --nocapture | ||
|
||
rust-check:: | ||
cargo clippy --all-features --all-targets | ||
rustfmt --edition 2021 --check src/*.rs | ||
|
||
.PHONY: all build release clean lint validate test update rust-check |
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
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
Oops, something went wrong.