Skip to content

Commit

Permalink
make webcam functionality not default
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 8, 2024
1 parent fdc9259 commit 2363199
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ default = [
"native_sys",
"raw_mode",
"clipboard",
"webcam",
"batteries",
]
ffi = ["libffi", "libloading"]
Expand Down
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ This requires [Rust](https://www.rust-lang.org/tools/install) (>=1.75) to be ins
```

The following optional features are available but not enabled by default (enabled by passing `--features <feature>`):
- `audio`: Enables audio system functions
- `audio`: Enables audio system functions (may require `libasound2-dev libudev-dev pkg-config` on Linux)
- `webcam`: Enables webcam system functions (may require `libjpeg-dev` on Linux)

If you want audio on Linux, you may need to install some dependencies first:
```
apt install libasound2-dev libudev-dev libjpeg-dev pkg-config
```
- If you want the most recent development version of Uiua, you can install from the git repository.
```
Expand Down
5 changes: 5 additions & 0 deletions site/src/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ pub fn Install() -> impl IntoView {
<p>"On Linux, this may require installing some dependencies:"</p>
<code class="code-block">"apt install libasound2-dev libudev-dev pkg-config"</code>
</li>
<li>
<p><code>"webcam"</code>" - Enables webcam system functions."</p>
<p>"On Linux, this may require installing some dependencies:"</p>
<code class="code-block">"apt install libjpeg-dev"</code>
</li>
</ul>
<p>"If you want the most recent development version of Uiua, you can install from the git repository."</p>
<code class="code-block">"cargo install --git https://github.com/uiua-lang/uiua uiua"</code>
Expand Down

0 comments on commit 2363199

Please sign in to comment.