Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions rust-native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
[package]
name = "rustwright"
version = "0.1.0-alpha.4"
version = "0.1.1"
edition = "2021"
publish = false
description = "Idiomatic native Rust API for the Rustwright Chromium CDP engine (a Rust rewrite of Playwright)."
license = "MIT"
repository = "https://github.com/Skyvern-AI/rustwright"
homepage = "https://github.com/Skyvern-AI/rustwright"
readme = "README.md"
keywords = ["browser", "automation", "cdp", "chromium", "playwright"]
categories = ["web-programming"]

[dependencies]
rustwright_core = { package = "rustwright-core", path = "..", default-features = false }
rustwright_core = { package = "rustwright-core", path = "..", version = "0.1.1", default-features = false }
serde = { version = "=1.0.188", features = ["derive"] }
serde_json = "=1.0.107"
29 changes: 29 additions & 0 deletions rust-native/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# rustwright

Idiomatic **native Rust API** for the [Rustwright](https://github.com/Skyvern-AI/rustwright)
Chromium CDP engine — a Rust rewrite of Playwright that drives Chromium from an
in-process async CDP client (no Node driver subprocess).

This crate is a thin, ergonomic wrapper over `rustwright-core`. It runs the engine
in-process; there is no separate binding library to load.

```rust
use rustwright::{chromium, LaunchOptions};

fn main() -> Result<(), Box<dyn std::error::Error>> {
let browser = chromium().launch(LaunchOptions::default())?;
let page = browser.new_page()?;
page.goto("https://example.com", None)?;
println!("{}", page.title(None)?);
browser.close()?;
Ok(())
}
```

Alpha; Chromium-only. See the [main project](https://github.com/Skyvern-AI/rustwright)
for the full API surface, the shared binding contract, and the other language
bindings (Python, Node, Go, Java, C#/.NET, Ruby, PHP).

## License

[MIT](https://github.com/Skyvern-AI/rustwright/blob/main/LICENSE)
Loading