Skip to content

Commit

Permalink
fix: each version of tokio test applications now
Browse files Browse the repository at this point in the history
moved into own crate
  • Loading branch information
godzie44 committed Nov 20, 2024
1 parent c97095d commit c24271f
Show file tree
Hide file tree
Showing 14 changed files with 973 additions and 53 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/target
/examples/target
/examples/tokio_tcp/tokio_tcp_1_40/target
/examples/tokio_tcp/tokio_tcp_1_41/target
/examples/pastebin/upload
.idea
/tests/integration/__pycache__
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ build-examples:
cd examples; \
cargo build -p calc_lib; \
$(SHLIB_SO_PATH) cargo build; \
cargo build -p tokio_tcp --bin tokio_tcp_1_40 --no-default-features --features tokio_v_1_40; \
cargo build -p tokio_tcp --bin tokio_tcp_1_41 --no-default-features --features tokio_v_1_41
cargo build --manifest-path tokio_tcp/tokio_tcp_1_40/Cargo.toml; \
cargo build --manifest-path tokio_tcp/tokio_tcp_1_41/Cargo.toml; \

build-all: build build-examples

Expand Down
9 changes: 0 additions & 9 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ members = [
"shlib/printer_lib",
"panic",
"calculations",
"tokio_tcp"
]
resolver = "2"

exclude = ["tokio_tcp/tokio_tcp_1_40", "tokio_tcp/tokio_tcp_1_41"]

resolver = "2"
5 changes: 4 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,7 @@ Program that calculates some values. Useful for watchpoints testing.

### Tokio_tcp

Tokio tcp echo-server. Useful for testing `async ...` commands.
A list of tokio tcp echo-servers with different tokio versions. Useful for testing `async ...` commands.

**TODO**
This should be a single application that may compiled into binaries with different library versions. But, for now, looks like this is not possible.
29 changes: 0 additions & 29 deletions examples/tokio_tcp/Cargo.toml

This file was deleted.

Loading

0 comments on commit c24271f

Please sign in to comment.