google-search

Crates.iogoogle-search
lib.rsgoogle-search
version0.1.1
created_at2025-10-17 15:36:29.444633+00
updated_at2025-10-17 15:47:24.738133+00
descriptionOpen default browser to Google search results for a given query string.
homepagehttps://gitee.com/luzhihaoTestingLab/useful-cargo-packages
repositoryhttps://gitee.com/luzhihaoTestingLab/useful-cargo-packages.git
max_upload_size
id1887807
size25,767
luzhihaoTestingLab (luzhihaoTestingLab)

documentation

https://docs.rs/google-search

README

google-search

Open default browser to Google search results for a given query string.

Usage

Add to your Cargo.toml:

[dependencies]
google-search = "0.1"

Example:

use google_search::search;

fn main() -> Result<(), String> {
    search("Trae AI IDE")?;
    Ok(())
}

Notes

  • This library opens your default web browser to https://www.google.com/search?q=....
  • Requires a desktop environment and a default browser configured.

License

MIT

Commit count: 0

cargo fmt