Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge branch 'add-homebrew-install-readme' of https://github.com/subs…
Browse files Browse the repository at this point in the history
…pace/pulsar into add-homebrew-install-readme
  • Loading branch information
abhi3700 committed Feb 1, 2024
2 parents 1d80e4e + dcebf98 commit d96437a
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ In some instances, you may want to move the farming process to the background. T
### Example with `tmux`

```sh
$ tmux -S farming
tmux -S farming
```

This will create a new `tmux` session using a socket file named `farming`.

Once the tmux session is created, you can go ahead and run the farming process.

```sh
$ ./pulsar farm
./pulsar farm
```

Once it's running, you can detach the process by pressing `CTRL+b d` (read more about [detaching a sessions](https://linuxhint.com/detach-session-tmux/))
Expand All @@ -56,7 +56,7 @@ That's it, you should be back to your terminal, with _subspace farming_ running
To re-attach to your session, use tmux:

```sh
$ tmux -S farming attach
tmux -S farming attach
```

If you ever want to delete/kill your farming session, enter the command:
Expand Down Expand Up @@ -107,30 +107,11 @@ sudo apt-get install llvm clang cmake

#### macOS

1. Install via Homebrew:

```bash
brew install llvm@15 clang cmake
```

2. Add `llvm` to your `~/.zshrc` or `~/.bashrc`:

```bash
export PATH="/opt/homebrew/opt/llvm@15/bin:$PATH"
```

3. Activate the changes:

```bash
source ~/.zshrc
# or
source ~/.bashrc
```

4. Verify that `llvm` is installed:
Install via Homebrew:

```bash
llvm-config --version
brew tap subspace/homebrew-pulsar
brew install pulsar
```

### Build from Source
Expand All @@ -140,7 +121,7 @@ Ensure the [pre-requisites](#pre-requisites).
And then run:

```sh
$ cargo build
cargo build
```

> Use `--release` flag for a release build and optimized binary - `./target/release/pulsar`
Expand All @@ -152,15 +133,15 @@ $ cargo build
After ensuring the [pre-requisites](#pre-requisites), just build using cargo:

```sh
$ cargo build --release
cargo build --release
```

This would generate an optimized binary.

And then, you can install the binary (optimized) to your system:

```sh
$ cargo install --path .
cargo install --path .
```

The binary gets added to `~/.cargo/bin`, which is included in the PATH environment variable by default during installation of Rust tools. So you can run it immediately from the shell.
Expand Down

0 comments on commit d96437a

Please sign in to comment.