Skip to content

ultrabig/wsl-plugin-sample-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSL Plugin Sample in Rust

This is a Rust port of Microsoft/wsl-plugin-sample.

Usage

  1. Install Rust
  2. Install Clang
  3. Download the WSL Plugin header from Nuget
    • Unzip the .nupkg file and copy build\native\include\WslPluginApi.h to wsl-plugin-api-sys\include\WslPluginApi.h
  4. cargo build
  5. Open a Visual Studio Developer Command Prompt as administrator and sign the plugin
    cd path\to\wsl-plugin-sample-rust
    powershell .\scripts\sign-plugin.ps1 -Trust
  6. Register the plugin
    .\scripts\register.cmd
  7. Stop the wslservice to load the plugin
    .\scripts\stop-wsl.cmd
  8. Once loaded, open C:\wsl-plugin-demo.txt to see the plugin output

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published