Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[workspace]
members = ["general/echo/kmdf/driver/*"]
members = ["general/echo/kmdf/driver/*","general/echo/kmdf/exe"]
resolver = "2"

[workspace.package]
edition = "2021"
publish = false
repository = "https://github.com/microsoft/windows-rust-driver-samples"
license = "MIT OR Apache-2.0"

[profile.dev]
panic = "abort"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ If build is successful, this will stamp the INF and create a CAT file placed wit

### Usage

The echo driver can be tested by using the [echo executable](https://github.com/microsoft/Windows-driver-samples/tree/main/general/echo/kmdf/exe)
The echo driver can be tested by using the [included sample app](./general/echo/kmdf/exe).

* Echoapp.exe --- Send single write and read request synchronously
* cargo run --bin echoapp
* Send single write and read request synchronously

* Echoapp.exe -Async --- Send 100 reads and writes asynchronously
* cargo run --bin echoapp -- -Async
* Send 100 reads and writes asynchronously

Exit the app anytime by pressing Ctrl-C

Expand Down
28 changes: 28 additions & 0 deletions general/echo/kmdf/exe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "echoapp"
version = "0.1.0"
description = "Test app for kmdf echo-2 sample driver"
keywords = ["windows", "kmdf", "driver", "wdk", "sample"]
rust-version = "1.72.1"
license.workspace = true
edition.workspace = true
publish.workspace = true

[dependencies.once_cell]
version = "1.18.0"

[dependencies.uuid]
version = "1.5.0"
features = ["macro-diagnostics"]

[dependencies.windows-sys]
version = "0.48.0"
features = [
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_Storage_FileSystem",
"Win32_Foundation",
"Win32_Security",
"Win32_System_IO",
"Win32_System_WindowsProgramming",
"Win32_System_Threading",
]
4 changes: 4 additions & 0 deletions general/echo/kmdf/exe/Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Test apps do not need the driver signing process so skip the workspace signing setup
[tasks.sign]
clear = true
Comment thread
sfudally marked this conversation as resolved.
dependencies = ["build"]
Loading