| Crates.io | earthmc |
| lib.rs | earthmc |
| version | 1.1.0 |
| created_at | 2025-06-06 23:21:08.885472+00 |
| updated_at | 2025-06-07 18:28:30.722041+00 |
| description | Async client for interacting with the EarthMC API. |
| homepage | |
| repository | https://github.com/kokiriglade/earthmc |
| max_upload_size | |
| id | 1703569 |
| size | 593,191 |
earthmc is an async Rust client to interact with the
EarthMC API.
Add the following to your Cargo.toml:
[dependencies]
earthmc = "*"
Replace the * with the actual version you want to use.
Alternatively you can run:
cargo add earthmc
let client = Client::default();
Finally, for more advanced configurations you can use a ClientBuilder:
let client = ClientBuilder::default()
.world(World::Other("nostra".to_string()))
.build()
.unwrap();
Detailed usage examples are in the examples directory.
This package provides some usage examples in the examples
directory. You can run a given example using e.g.
cargo run --example query_towns