Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(desktop): remove posthog-rs dependency

Richie McIlroyf17c9c3db8cd
diff --git a/Cargo.lock b/Cargo.lock
index e44be5827..411fca9b6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -711,9 +711,9 @@ dependencies = [
"bytes",
"futures-util",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"http-body-util",
- "hyper 1.7.0",
+ "hyper",
"hyper-util",
"itoa",
"matchit",
@@ -727,7 +727,7 @@ dependencies = [
"serde_path_to_error",
"serde_urlencoded",
"sha1",
- "sync_wrapper 1.0.2",
+ "sync_wrapper",
"tokio",
"tokio-tungstenite",
"tower",
@@ -746,12 +746,12 @@ dependencies = [
"bytes",
"futures-util",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"http-body-util",
"mime",
"pin-project-lite",
"rustversion",
- "sync_wrapper 1.0.2",
+ "sync_wrapper",
"tower-layer",
"tower-service",
"tracing",
@@ -1218,7 +1218,7 @@ dependencies = [
"libc",
"open",
"relative-path",
- "reqwest 0.12.24",
+ "reqwest",
"rmcp",
"rpassword",
"scap-screencapturekit",
@@ -1244,7 +1244,7 @@ dependencies = [
name = "cap-api"
version = "0.0.0"
dependencies = [
- "reqwest 0.12.24",
+ "reqwest",
"workspace-hack",
]
@@ -1494,11 +1494,10 @@ dependencies = [
"parakeet-rs",
"png 0.17.16",
"pollster",
- "posthog-rs",
"rand 0.8.5",
"regex",
"relative-path",
- "reqwest 0.12.24",
+ "reqwest",
"rodio",
"sanitize-filename",
"scap-direct3d",
@@ -1551,7 +1550,7 @@ dependencies = [
"windows 0.60.0",
"windows-core 0.61.2",
"windows-sys 0.59.0",
- "winreg 0.55.0",
+ "winreg",
"workspace-hack",
]
@@ -3393,7 +3392,7 @@ dependencies = [
"rustc_version",
"toml 0.9.7",
"vswhom",
- "winreg 0.55.0",
+ "winreg",
]
[[package]]
@@ -4464,25 +4463,6 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17e2ac29387b1aa07a1e448f7bb4f35b500787971e965b02842b900afa5c8f6f"
-[[package]]
-name = "h2"
-version = "0.3.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d"
-dependencies = [
- "bytes",
- "fnv",
- "futures-core",
- "futures-sink",
- "futures-util",
- "http 0.2.12",
- "indexmap 2.11.4",
- "slab",
- "tokio",
- "tokio-util",
- "tracing",
-]
-
[[package]]
name = "h2"
version = "0.4.12"
@@ -4650,17 +4630,6 @@ dependencies = [
"itoa",
]
-[[package]]
-name = "http-body"
-version = "0.4.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
-dependencies = [
- "bytes",
- "http 0.2.12",
- "pin-project-lite",
-]
-
[[package]]
name = "http-body"
version = "1.0.1"
@@ -4680,7 +4649,7 @@ dependencies = [
"bytes",
"futures-core",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"pin-project-lite",
]
@@ -4702,30 +4671,6 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
-[[package]]
-name = "hyper"
-version = "0.14.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7"
-dependencies = [
- "bytes",
- "futures-channel",
- "futures-core",
- "futures-util",
- "h2 0.3.27",
- "http 0.2.12",
- "http-body 0.4.6",
- "httparse",
- "httpdate",
- "itoa",
- "pin-project-lite",
- "socket2 0.5.10",
- "tokio",
- "tower-service",
- "tracing",
- "want",
-]
-
[[package]]
name = "hyper"
version = "1.7.0"
@@ -4736,9 +4681,9 @@ dependencies = [
"bytes",
"futures-channel",
"futures-core",
- "h2 0.4.12",
+ "h2",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"httparse",
"httpdate",
"itoa",
@@ -4749,20 +4694,6 @@ dependencies = [
"want",
]
-[[package]]
-name = "hyper-rustls"
-version = "0.24.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"
-dependencies = [
- "futures-util",
- "http 0.2.12",
- "hyper 0.14.32",
- "rustls 0.21.12",
- "tokio",
- "tokio-rustls 0.24.1",
-]
-
[[package]]
name = "hyper-rustls"
version = "0.27.7"
@@ -4770,14 +4701,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
dependencies = [
"http 1.3.1",
- "hyper 1.7.0",
+ "hyper",
"hyper-util",
- "rustls 0.23.31",
+ "rustls",
"rustls-pki-types",
"tokio",
- "tokio-rustls 0.26.3",
+ "tokio-rustls",
"tower-service",
- "webpki-roots 1.0.2",
+ "webpki-roots",
]
[[package]]
@@ -4788,7 +4719,7 @@ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
dependencies = [
"bytes",
"http-body-util",
- "hyper 1.7.0",
+ "hyper",
"hyper-util",
"native-tls",
"tokio",
@@ -4808,14 +4739,14 @@ dependencies = [
"futures-core",
"futures-util",
"http 1.3.1",
- "http-body 1.0.1",
- "hyper 1.7.0",
+ "http-body",
+ "hyper",
"ipnet",
"libc",
"percent-encoding",
"pin-project-lite",
"socket2 0.6.0",
- "system-configuration 0.6.1",
+ "system-configuration",
"tokio",
"tower-service",
"tracing",
@@ -7239,7 +7170,7 @@ dependencies = [
"bytes",
"http 1.3.1",
"opentelemetry",
- "reqwest 0.12.24",
+ "reqwest",
]
[[package]]
@@ -7254,7 +7185,7 @@ dependencies = [
"opentelemetry-proto",
"opentelemetry_sdk",
"prost",
- "reqwest 0.12.24",
+ "reqwest",
"thiserror 2.0.16",
"tracing",
]
@@ -7837,20 +7768,6 @@ dependencies = [
"portable-atomic",
]
-[[package]]
-name = "posthog-rs"
-version = "0.3.7"
-source = "git+https://github.com/CapSoftware/posthog-rs?rev=c7e9712be2f9a9122b1df685d5a067afa5415288#c7e9712be2f9a9122b1df685d5a067afa5415288"
-dependencies = [
- "chrono",
- "derive_builder",
- "reqwest 0.11.27",
- "semver",
- "serde",
- "serde_json",
- "uuid",
-]
-
[[package]]
name = "potential_utf"
version = "0.1.3"
@@ -8106,7 +8023,7 @@ dependencies = [
"quinn-proto",
"quinn-udp",
"rustc-hash 2.1.1",
- "rustls 0.23.31",
+ "rustls",
"socket2 0.6.0",
"thiserror 2.0.16",
"tokio",
@@ -8126,7 +8043,7 @@ dependencies = [
"rand 0.9.2",
"ring",
"rustc-hash 2.1.1",
- "rustls 0.23.31",
+ "rustls",
"rustls-pki-types",
"slab",
"thiserror 2.0.16",
@@ -8554,47 +8471,6 @@ version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51743d3e274e2b18df81c4dc6caf8a5b8e15dbe799e0dca05c7617380094e884"
-[[package]]
-name = "reqwest"
-version = "0.11.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62"
-dependencies = [
- "base64 0.21.7",
- "bytes",
- "encoding_rs",
- "futures-core",
- "futures-util",
- "h2 0.3.27",
- "http 0.2.12",
- "http-body 0.4.6",
- "hyper 0.14.32",
- "hyper-rustls 0.24.2",
- "ipnet",
- "js-sys",
- "log",
- "mime",
- "once_cell",
- "percent-encoding",
- "pin-project-lite",
- "rustls 0.21.12",
- "rustls-pemfile 1.0.4",
- "serde",
- "serde_json",
- "serde_urlencoded",
- "sync_wrapper 0.1.2",
- "system-configuration 0.5.1",
- "tokio",
- "tokio-rustls 0.24.1",
- "tower-service",
- "url",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
- "webpki-roots 0.25.4",
- "winreg 0.50.0",
-]
-
[[package]]
name = "reqwest"
version = "0.12.24"
@@ -8608,12 +8484,12 @@ dependencies = [
"futures-channel",
"futures-core",
"futures-util",
- "h2 0.4.12",
+ "h2",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"http-body-util",
- "hyper 1.7.0",
- "hyper-rustls 0.27.7",
+ "hyper",
+ "hyper-rustls",
"hyper-tls",
"hyper-util",
"js-sys",
@@ -8624,15 +8500,15 @@ dependencies = [
"percent-encoding",
"pin-project-lite",
"quinn",
- "rustls 0.23.31",
+ "rustls",
"rustls-pki-types",
"serde",
"serde_json",
"serde_urlencoded",
- "sync_wrapper 1.0.2",
+ "sync_wrapper",
"tokio",
"tokio-native-tls",
- "tokio-rustls 0.26.3",
+ "tokio-rustls",
"tokio-util",
"tower",
"tower-http",
@@ -8642,7 +8518,7 @@ dependencies = [
"wasm-bindgen-futures",
"wasm-streams",
"web-sys",
- "webpki-roots 1.0.2",
+ "webpki-roots",
]
[[package]]
@@ -8893,18 +8769,6 @@ dependencies = [
"windows-sys 0.61.2",
]
-[[package]]
-name = "rustls"
-version = "0.21.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"
-dependencies = [
- "log",
- "ring",
- "rustls-webpki 0.101.7",
- "sct",
-]
-
[[package]]
name = "rustls"
version = "0.23.31"
@@ -8914,20 +8778,11 @@ dependencies = [
"once_cell",
"ring",
"rustls-pki-types",
- "rustls-webpki 0.103.6",
+ "rustls-webpki",
"subtle",
"zeroize",
]
-[[package]]
-name = "rustls-pemfile"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c"
-dependencies = [
- "base64 0.21.7",
-]
-
[[package]]
name = "rustls-pemfile"
version = "2.2.0"
@@ -8947,16 +8802,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-name = "rustls-webpki"
-version = "0.101.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
-dependencies = [
- "ring",
- "untrusted",
-]
-
[[package]]
name = "rustls-webpki"
version = "0.103.6"
@@ -9232,16 +9077,6 @@ dependencies = [
"syn 2.0.106",
]
-[[package]]
-name = "sct"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
-dependencies = [
- "ring",
- "untrusted",
-]
-
[[package]]
name = "sctk-adwaita"
version = "0.10.1"
@@ -9361,7 +9196,7 @@ checksum = "989425268ab5c011e06400187eed6c298272f8ef913e49fcadc3fda788b45030"
dependencies = [
"httpdate",
"native-tls",
- "reqwest 0.12.24",
+ "reqwest",
"sentry-actix",
"sentry-anyhow",
"sentry-backtrace",
@@ -10306,12 +10141,6 @@ dependencies = [
"unicode-ident",
]
-[[package]]
-name = "sync_wrapper"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
-
[[package]]
name = "sync_wrapper"
version = "1.0.2"
@@ -10369,17 +10198,6 @@ dependencies = [
"windows 0.61.3",
]
-[[package]]
-name = "system-configuration"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"
-dependencies = [
- "bitflags 1.3.2",
- "core-foundation 0.9.4",
- "system-configuration-sys 0.5.0",
-]
-
[[package]]
name = "system-configuration"
version = "0.6.1"
@@ -10388,17 +10206,7 @@ checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
dependencies = [
"bitflags 2.13.1",
"core-foundation 0.9.4",
- "system-configuration-sys 0.6.0",
-]
-
-[[package]]
-name = "system-configuration-sys"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"
-dependencies = [
- "core-foundation-sys",
- "libc",
+ "system-configuration-sys",
]
[[package]]
@@ -10541,7 +10349,7 @@ dependencies = [
"percent-encoding",
"plist",
"raw-window-handle",
- "reqwest 0.12.24",
+ "reqwest",
"serde",
"serde_json",
"serde_repr",
@@ -10762,7 +10570,7 @@ dependencies = [
"data-url",
"http 1.3.1",
"regex",
- "reqwest 0.12.24",
+ "reqwest",
"schemars 0.8.22",
"serde",
"serde_json",
@@ -10958,7 +10766,7 @@ dependencies = [
"minisign-verify",
"osakit",
"percent-encoding",
- "reqwest 0.12.24",
+ "reqwest",
"semver",
"serde",
"serde_json",
@@ -11420,23 +11228,13 @@ dependencies = [
"tokio",
]
-[[package]]
-name = "tokio-rustls"
-version = "0.24.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"
-dependencies = [
- "rustls 0.21.12",
- "tokio",
-]
-
[[package]]
name = "tokio-rustls"
version = "0.26.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05f63835928ca123f1bef57abbcd23bb2ba0ac9ae1235f1e65bda0d06e7786bd"
dependencies = [
- "rustls 0.23.31",
+ "rustls",
"tokio",
]
@@ -11608,11 +11406,11 @@ dependencies = [
"base64 0.22.1",
"bytes",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"http-body-util",
"percent-encoding",
"pin-project",
- "sync_wrapper 1.0.2",
+ "sync_wrapper",
"tokio-stream",
"tower-layer",
"tower-service",
@@ -11639,7 +11437,7 @@ dependencies = [
"futures-core",
"futures-util",
"pin-project-lite",
- "sync_wrapper 1.0.2",
+ "sync_wrapper",
"tokio",
"tower-layer",
"tower-service",
@@ -11656,7 +11454,7 @@ dependencies = [
"bytes",
"futures-util",
"http 1.3.1",
- "http-body 1.0.1",
+ "http-body",
"iri-string",
"pin-project-lite",
"tower",
@@ -12086,7 +11884,7 @@ dependencies = [
"log",
"native-tls",
"percent-encoding",
- "rustls-pemfile 2.2.0",
+ "rustls-pemfile",
"rustls-pki-types",
"socks",
"ureq-proto",
@@ -12584,12 +12382,6 @@ dependencies = [
"rustls-pki-types",
]
-[[package]]
-name = "webpki-roots"
-version = "0.25.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"
-
[[package]]
name = "webpki-roots"
version = "1.0.2"
@@ -13609,16 +13401,6 @@ dependencies = [
"memchr",
]
-[[package]]
-name = "winreg"
-version = "0.50.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"
-dependencies = [
- "cfg-if",
- "windows-sys 0.48.0",
-]
-
[[package]]
name = "winreg"
version = "0.55.0"
@@ -13699,7 +13481,7 @@ dependencies = [
"regex",
"regex-automata",
"regex-syntax",
- "reqwest 0.12.24",
+ "reqwest",
"rgb",
"rustc-hash 1.1.0",
"schemars 0.8.22",
diff --git a/Cargo.toml b/Cargo.toml
index 5c9c2cab5..91e45dbbd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -119,8 +119,5 @@ cidre = { git = "https://github.com/CapSoftware/cidre", rev = "bf84b67079a8" }
wgpu-hal = { path = "vendor/wgpu-hal" }
tao = { path = "vendor/tao" }
-# https://github.com/CapSoftware/posthog-rs/commit/c7e9712be2f9a9122b1df685d5a067afa5415288
-posthog-rs = { git = "https://github.com/CapSoftware/posthog-rs", rev = "c7e9712be2f9a9122b1df685d5a067afa5415288" }
-
# https://github.com/CapSoftware/reqwest/commit/9b5ecbd5210a9510fde766015cabb724c1e70d2e
reqwest = { git = "https://github.com/CapSoftware/reqwest", rev = "9b5ecbd5210a9510fde766015cabb724c1e70d2e" }
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index c560a0287..c27e39277 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -120,7 +120,6 @@ tracing-opentelemetry = "0.32.0"
opentelemetry = "0.31.0"
opentelemetry-otlp = "0.31.0" #{ version = , features = ["http-proto", "reqwest-client"] }
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio", "trace"] }
-posthog-rs = "0.3.7"
sysinfo = "0.35"
workspace-hack = { version = "0.1", path = "../../../crates/workspace-hack" }
aho-corasick.workspace = true