rustysky is a Rust client library for the Bluesky social network. Along with the library, this project also provides a CLI tool and examples to help users get started with the Bluesky API.
To include the rustysky library in your Rust project, add it as a dependency in your Cargo.toml:
[dependencies]
rustysky = "0.1.0" # Replace with the latest versionThen run:
cargo build
To use the rustysky library in your Rust project:
extern crate rustysky;
// Your code here...To run the rustysky_cli:
cargo run --bin rustysky_cli
To demonstrate the usage of rustysky, we've provided some examples:
-
Auth Example:
Run the auth example with:
cargo run --example auth -
No-Auth Example:
Run the no-auth example with:
cargo run --example no_auth
Unit tests are co-located with the code they test. To run only the unit tests for the library:
cargo test --lib
Integration tests are located in the tests directory. To run the integration tests:
cargo test --test bsky_agent_tests
To run both unit and integration tests together:
cargo test
## License
This project is licensed under the [MIT License](LICENSE.md).