Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: Cargo.toml

Louis Beaumontbae33d0e6c4f
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index cb05cb46c..0c0649c5a 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -34,15 +34,15 @@ jobs:
matrix:
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
- args: "--target aarch64-apple-darwin --features metal"
+ args: "--target aarch64-apple-darwin --features metal,pipes"
target: aarch64-apple-darwin
- platform: "macos-latest" # for Intel based macs.
- args: "--target x86_64-apple-darwin --features metal"
+ args: "--target x86_64-apple-darwin --features metal,pipes"
target: x86_64-apple-darwin
- platform: "ubuntu-22.04" # Ubuntu x86_64
- args: "" # TODO CUDA
+ args: "--features cuda,pipes" # TODO CUDA
- platform: "windows-latest" # Windows x86_64
- args: "--target x86_64-pc-windows-msvc" # TODO CUDA? --features "openblas"
+ args: "--target x86_64-pc-windows-msvc --features pipes" # TODO CUDA? --features "openblas"
pre-build-args: "" # --openblas
# windows arm: https://github.com/ahqsoftwares/tauri-ahq-store/blob/2fbc2103c222662b3c6ee0cd71fcde664824f0ef/.github/workflows/publish.yml#L136
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index 1f53d44cd..3fe6d949c 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -60,7 +60,7 @@ jobs:
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
- cargo build --release --features metal --target ${{ matrix.target }}
+ cargo build --release --features pipes,metal --target ${{ matrix.target }}
# get the current tag or take latest (in the case of a workflow dispatch)
- name: Set version
diff --git a/Formula/screenpipe.rb b/Formula/screenpipe.rb
index 4db188d43..f2fe74b5a 100644
--- a/Formula/screenpipe.rb
+++ b/Formula/screenpipe.rb
@@ -38,7 +38,7 @@ end
# aarch64-apple-darwin
=begin
-cargo build --release --features metal --target aarch64-apple-darwin
+cargo build --release --features metal,pipes --target aarch64-apple-darwin
tar -czf screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz -C target/release screenpipe
shasum -a 256 screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz
gh release upload v${VERSION} screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz
@@ -49,7 +49,7 @@ rm screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz
=begin
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
-cargo build --release --features metal --target x86_64-apple-darwin
+cargo build --release --features metal,pipes --target x86_64-apple-darwin
tar -czf screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz -C target/release screenpipe
shasum -a 256 screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz
gh release upload v${VERSION} screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz
diff --git a/README.md b/README.md
index 635f74f26..22cce061d 100644
--- a/README.md
+++ b/README.md
@@ -162,7 +162,7 @@ Build the project, takes 5-10 minutes depending on your hardware
```bash
# necessary to use apple native OCR
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../../screenpipe-vision/bin -C link-arg=-Wl,-rpath,@loader_path/../../screenpipe-vision/lib"
-cargo build --release --no-default-features --features metal # takes 3 minuttes
+cargo build --release --features metal # takes 3 minuttes
```
Then run it
@@ -211,7 +211,7 @@ cd screenpipe
3. Build and run:
```bash
-cargo build --release --no-default-features --features cuda # remove "--features cuda" if you do not have a NVIDIA GPU
+cargo build --release --features cuda # remove "--features cuda" if you do not have a NVIDIA GPU
# then run it
./target/release/screenpipe
diff --git a/screenpipe-server/Cargo.toml b/screenpipe-server/Cargo.toml
index e2295d8d6..95d128f72 100644
--- a/screenpipe-server/Cargo.toml
+++ b/screenpipe-server/Cargo.toml
@@ -98,13 +98,8 @@ harness = false
[features]
default = []
-
-[target.'cfg(any(target_os = "macos", target_os = "linux"))'.features]
-default = ["pipes"]
-
metal = ["candle/metal", "candle-nn/metal", "candle-transformers/metal"]
cuda = ["candle/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
-
pipes = [
"screenpipe-core/pipes",
"tempfile",