Skip to content

Commit

Permalink
remove libudev dependency
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Sep 19, 2024
1 parent cabce77 commit 04426a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
7 changes: 0 additions & 7 deletions .github/actions/deps-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ runs:
7z x protoc-25.3-win64.zip -o"$TMP\protobuf"
echo "$TMP\protobuf\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install libudev (Linux)
if: runner.os == 'Linux' && contains(inputs.deps, 'libudev')
shell: bash
run: |
sudo apt-get update -y
sudo apt-get install -y libudev-dev
- name: Install python3
uses: actions/setup-python@v5
if: contains(inputs.deps, 'python3')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmt-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc' 'libudev-dev')
deps: ('protoc')

- name: Cargo cache
uses: ./.github/actions/cargo-cache
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ If you want to build from source, the following prerequisites are required:
- OS specific build tools (e.g. [build-essential](https://linuxhint.com/install-build-essential-ubuntu/) on Linux, [XCode](https://apps.apple.com/us/app/xcode/id497799835?mt=12) on OSX or [MSVC](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=vs-2017) on Win)
- (Optional) OSX: install [openssl](https://www.openssl.org/), e.g. `brew install openssl`.
- (Optional) OSX: run `LIBRARY_PATH=/usr/local/opt/openssl/lib`
- (Optional) Linux: Install libudev-dev (dpkg) or libudev-devel (rpm) package.
- [Download](https://github.com/protocolbuffers/protobuf/releases) or [compile](https://github.com/protocolbuffers/protobuf) `protoc 3.21.x+` and add it to your PATH env. It is also available via package managers depending on the OS.

To build, run `cargo build` (or `cargo build -vv` to get verbose build output).
Expand Down
15 changes: 7 additions & 8 deletions docs/DEV_ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
## Running native tests

1. Install Docker or Podman.
2. Install `libudev-dev` (dpkg) or `libudev-devel` (rpm) package.
3. Install protobuf compiler, so `protoc` is available in your PATH.
4. Download ZCash params files: [Windows](https://github.com/KomodoPlatform/komodo/blob/master/zcutil/fetch-params.bat),
2. Install protobuf compiler, so `protoc` is available in your PATH.
3. Download ZCash params files: [Windows](https://github.com/KomodoPlatform/komodo/blob/master/zcutil/fetch-params.bat),
[Unix/Linux](https://github.com/KomodoPlatform/komodo/blob/master/zcutil/fetch-params.sh)
5. Create `.env.client` file with the following content
4. Create `.env.client` file with the following content
```
ALICE_PASSPHRASE=spice describe gravity federal blast come thank unfair canal monkey style afraid
```
6. Create `.env.seed` file with the following content
5. Create `.env.seed` file with the following content
```
BOB_PASSPHRASE=also shoot benefit prefer juice shell elder veteran woman mimic image kidney
```
7. MacOS specific: run script (required after each reboot)
6. MacOS specific: run script (required after each reboot)
```shell
#!/bin/bash
for ((i=2;i<256;i++))
Expand All @@ -26,7 +25,7 @@
sudo ifconfig lo0 inet6 -alias fe80::1%lo0
```
Please note that you have to run it again after each reboot
8. Linux specific:
7. Linux specific:
- for Docker users:
```
sudo groupadd docker
Expand All @@ -36,7 +35,7 @@
```
sudo ln -s $(which podman) /usr/bin/docker
```
9. Try `cargo test --all --features run-docker-tests -- --test-threads=16`.
8. Try `cargo test --all --features run-docker-tests -- --test-threads=16`.
## Running WASM tests
Expand Down

0 comments on commit 04426a9

Please sign in to comment.