rightkit-browser 0.3.13

Shared Chrome DevTools Protocol browser runtime for Right Suite: multi-page sessions, named profiles, real CDP input, observations with stale-ref checks.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.98.0"
name = "rightkit-browser"
version = "0.3.13"
build = false
include = [
    "src/**",
    "third-party/**",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared Chrome DevTools Protocol browser runtime for Right Suite: multi-page sessions, named profiles, real CDP input, observations with stale-ref checks."
readme = "README.md"
keywords = [
    "browser",
    "cdp",
    "chrome",
    "automation",
    "qa",
]
categories = ["development-tools::testing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bogusyogi/rightkit"

[package.metadata.rightkit]
continuous = "held-resource"

[[package.metadata.rightkit.resources]]
api = "BrowserSession"
file = "src/session.rs"
holds = [
    "child",
    "task",
    "memory",
]
scale = "one Chrome process tree (plus, on Unix, its watchdog shell) with its CDP connection, one handler pump task and one 200 ms process-watcher task; fixed per session, plus the pages it tracks. Teardown retries profile removal for up to 3 s"
release = "Drop"

[[package.metadata.rightkit.resources]]
api = "BrowserPage"
file = "src/page.rs"
holds = [
    "task",
    "memory",
]
scale = "four CDP event-pump tasks per page (console, exception, target-crash, request interception; the last starts on first use when the session network policy is unrestricted) plus one short-lived task per intercepted request that ends after its network check; console lines are capped at MAX_CONSOLE_LINES (500) and blocked-request records at 500, structured exceptions at MAX_EXCEPTIONS (200) plus a 64-slot broadcast channel; fixed per page, independent of how long the page lives"
release = "BrowserSession Drop (abort_pumps) or close_inner"

[[package.metadata.rightkit.resources]]
api = "ChromeProc"
file = "src/proc.rs"
holds = [
    "child",
    "thread",
]
scale = "one Chrome child, one stderr-drain thread that ends when Chrome closes stderr, two pipe descriptors or handles (the parent ends of the DevTools pipe pair, owned by the PipeBridge once it starts), and on Unix one /bin/sh watchdog child that exits by itself once Chrome or the host process is gone; stderr is kept as a 30-line tail of at most 300 characters per line"
release = "Drop"

[[package.metadata.rightkit.resources]]
api = "FixtureServer"
file = "src/fixture_server.rs"
holds = [
    "listener",
    "task",
]
scale = "one loopback TCP listener with one accept task and at most MAX_CONNECTIONS (128) connection tasks, each limited to CONNECTION_TIMEOUT (5 s); serves one immutable fixture bundle"
release = "Drop (aborts the accept task) or shutdown"

[[package.metadata.rightkit.resources]]
api = "PinProxy"
file = "src/proxy.rs"
holds = [
    "listener",
    "task",
    "memory",
]
scale = "one loopback proxy listener with a supervisor task and one task per connection (fixture mode caps this at MAX_FIXTURE_CONNECTIONS, 128, with 5 s header, 3 s connect and 30 s I/O timeouts; ordinary mode has no connection cap); the pinned-connection log gains one entry per proxied connection and has no cap, for the life of the session that owns it"
release = "Drop (signals shutdown and aborts the supervisor, whose JoinSet aborts every connection) or shutdown"

[[package.metadata.rightkit.resources]]
api = "PipeBridge"
file = "src/pipe_transport.rs"
holds = [
    "listener",
    "task",
]
scale = "one loopback TCP listener (dropped after the first authenticated client) and one relay task between Chrome's DevTools pipe pair and the browser connection; the listener waits at most launch_timeout, and a fixture relay is bound to its lease deadline; fixed per Chrome launch"
release = "Drop"

[[package.metadata.rightkit.resources]]
api = "FixtureSession"
file = "src/fixture.rs"
holds = [
    "task",
    "memory",
]
scale = "one lease-timer task bounded by the fixture deadline, the event-monitor tasks (EventTasks) and, on Windows, one Fetch-interception task, on top of the BrowserSession, FixtureServer and BrowserPage it owns; Test/QA only"
release = "Drop (cancels the timer, which runs cleanup_resources; EventTasks aborts its tasks)"

[[package.metadata.rightkit.resources]]
api = "capture"
file = "src/capture.rs"
holds = [
    "child",
    "task",
    "memory",
]
scale = "one BrowserSession (its own Chrome tree, handler and watcher tasks) plus one execution-context listener task per call; ends when the call returns (the task is aborted on drop, the session is stopped with a terminal report and dropped); console lines capped at MAX_CAPTURE_CONSOLE_RECORDS (500), screenshot at 32 MiB, axe result at 4 MiB; fixed per call"
release = "return of capture() (cancellation and the deadline stop the session first)"

[[package.metadata.rightkit.resources]]
api = "ProfileVault"
file = "src/vault.rs"
holds = ["memory"]
scale = "while a session owns the vault: one exclusive lock file handle, the 32-byte master key (wiped on drop) and, at open and seal, a streamed one-chunk (1 MiB) plaintext buffer; the plaintext working directory exists only between start and stop; fixed per session, independent of how long it lives"
release = "Drop (seals, wipes the plaintext tree and releases the lock) or BrowserSession::close"

[[package.metadata.rightkit.resources]]
api = "now_ms"
file = "src/design_mode.rs"
holds = ["memory"]
scale = "one fixed-size Instant in one process-wide OnceLock, initialized on the first clock read; no per-call accumulation, thread or timer"
release = "process exit"
static_note = "BASE holds exactly one Instant for the monotonic gesture clock; it is not a collection and cannot grow"

[features]
axe = []
cookie-export = ["dep:rightkit-fs"]
default = []
install = [
    "dep:rightkit-models",
    "dep:rightkit-fs",
    "dep:zip",
]
profile-vault = [
    "dep:rightkit-credentials",
    "dep:rightkit-crypto",
]
secret-fill = ["dep:rightkit-crypto"]

[lib]
name = "rightkit_browser"
path = "src/lib.rs"

[dependencies.async-tungstenite]
version = "0.35"
features = ["tokio-runtime"]
default-features = false

[dependencies.chromiumoxide]
version = "0.9"
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.getrandom]
version = "0.4"

[dependencies.rightkit-child-process]
version = "0.5.15"

[dependencies.rightkit-credentials]
version = "0.5.0"
optional = true

[dependencies.rightkit-crypto]
version = "0.1.2"
optional = true

[dependencies.rightkit-fs]
version = "0.5.0"
features = [
    "digest",
    "lock",
]
optional = true
default-features = false

[dependencies.rightkit-models]
version = "0.7.0"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
    "net",
    "io-util",
    "macros",
]

[dependencies.url]
version = "2"

[dependencies.zip]
version = "9"
features = ["deflate"]
optional = true
default-features = false

[target.'cfg(any(target_os = "macos", windows))'.dependencies.rightkit-sandbox]
version = "0.7.0"
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2"