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

Commit

Permalink
initialize binary crate that will use hudsucker proxy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkolson committed Nov 29, 2021
1 parent 864966a commit bf23467
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ In [./crate][0] you will find the Rust code that compiles to target [`wasm32-unk

In [./extension][2] you will find the chrome extension code that uses the wasm binary produced by the Rust code in [./crate][0].

In [./proxy][5] you will find a binary rust crate that creates a mitm proxy using [hudsucker][6] for the advanzia transactions api.

The compiled wasm binary and the relevant parts of [./extension][2] are packed in a `dist` directory in the root of the repository when you execute [`build.sh`][3]. This dist directory is the artifact that will be uploaded to the Chrome Web Store and which you can load as an unpacked extension into your local Chrome.

### Build and test the extension locally
Expand All @@ -26,3 +28,5 @@ To run the tests, execute [`./test.sh`][4]. The tests in [./extension][2] requir
[2]: <./extension>
[3]: <./build.sh>
[4]: <./test.sh>
[5]: <./proxy>
[6]: <https://github.com/omjadas/hudsucker>
10 changes: 10 additions & 0 deletions proxy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "proxy"
version = "1.0.0"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hudsucker = "0.9.1"
3 changes: 3 additions & 0 deletions proxy/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit bf23467

Please sign in to comment.