captchaforge 0.2.40

Captcha detection and solving for Firefox and BiDi-driven browsers. Detection, vendor solver scaffolding, trusted cross-origin click delivery into nested OOPIFs, and stealth personas are implemented and tested; broad live-vendor solve rates are not yet benchmarked.
Documentation
[package]
name = "captchaforge"
version = "0.2.40"
edition = "2021"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
authors = ["Santh Project <contact@santh.dev>"]
description = "Captcha detection and solving for Firefox and BiDi-driven browsers. Detection, vendor solver scaffolding, trusted cross-origin click delivery into nested OOPIFs, and stealth personas are implemented and tested; broad live-vendor solve rates are not yet benchmarked."
repository = "https://github.com/santhreal/captchaforge"
readme = "README.md"
keywords = ["captcha", "headless-browser", "turnstile", "recaptcha"]
categories = ["web-programming", "authentication"]

[dependencies]
captchaforge-rules = { path = "rules-crate", version = "0.0.1" }
anyhow = "1"
async-trait = "0.1"
guise = { path = "../../libs/runtime/guise", version = "0.1.2", default-features = false, features = ["browser", "http-headers", "human", "rotation"] }
runtime-foxdriver = { path = "../../libs/runtime/foxdriver", version = "0.1.0" }
erroracle = { path = "../../libs/scanner/erroracle", version = "0.2.1" }
# runtime_headless removed, migrated to rustenium (Firefox + BiDi)
rustenium = "1.1.10"
rustenium-core = "1.1.1"
rustenium-bidi-definitions = "0.1.1"
# runtime-foxdriver is the canonical Firefox BiDi runtime; captchaforge re-exports it.
scanclient = { path = "../../libs/scanner/scanclient", version = "0.2.1" }
base64 = "0.22"
rand = "0.8"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
tracing = "0.1"
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "rustls-tls"] }
toml = "0.8"
url = "2"
futures-util = "0.3"
bytes = "1"
tempfile = "3"
sha2 = "0.10"
thiserror = "1"
dirs = "6"
ort = { version = "2.0.0-rc.12", optional = true, features = ["cuda", "tensorrt"] }
image = { version = "0.25", optional = true }
ndarray = { version = "0.16", optional = true }

# guise v0.1.0, canonical browser-persona substrate. captchaforge's
# generic stealth primitives (behavior, behavioral-style mouse +
# keystroke, mouse_traces, mouse_sampler, stealth, stealth_profiles)
# were lifted to guise::browser::captcha_origin::*. The captcha-
# specific code (solver/, detect/, frame_graph, mobile_webview,
# fingerprint_lru) stays here.


# runtime-foxdriver: canonical Firefox launch and BiDi type boundary.
# CaptchaForge re-exports its BiDi client types from this dependency
# so callers keep a stable `captchaforge::Page` path without
# this crate declaring a second direct browser client dependency.

[lints.rust]
unsafe_code = "forbid"

[features]
default = []
tls-impersonate = ["guise/tls-impersonate"]
vision = ["dep:ort", "dep:image", "dep:ndarray"]

# Declare this crate as its own workspace root so it doesn't get
# pulled into the parent Santh workspace at /media/.../SanthData/Santh.
# Once captchaforge moves to its own GitHub repo this section is
# unnecessary, but keeps the in-tree extraction self-contained today.
[dev-dependencies]
proptest = "1.5"
insta = { version = "1.41", features = ["json", "redactions"] }
scraper = "0.20"
criterion = { version = "0.5", features = ["html_reports"] }
which = "7"

[[bench]]
name = "hot_path"
harness = false

[workspace]
members = ["bench", "cli", "challenge", "rules-crate"]
# Bindings live outside the default workspace so their distinct
# toolchain quirks (pyo3's PYO3_PYTHON env, napi's build.rs,
# wasm-pack target) don't pollute the main `cargo build --workspace`.
exclude = ["bindings/python", "bindings/node", "bindings/wasm"]

# cargo-binstall metadata: lets `cargo binstall captchaforge` pull
# the pre-built binary from the GitHub Release matching the version
# in this Cargo.toml. See .github/workflows/release.yml for the
# producer side.
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/captchaforge-v{ version }-{ target }.{ archive-format }"
bin-dir = "captchaforge-v{ version }-{ target }/{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"