| Crates.io | dexrs |
| lib.rs | dexrs |
| version | 0.1.1 |
| created_at | 2025-04-09 19:47:26.472504+00 |
| updated_at | 2025-04-23 19:17:03.535386+00 |
| description | Rust library for fetching Dexcom glucose values |
| homepage | |
| repository | https://github.com/makors/dexrs |
| max_upload_size | |
| id | 1627251 |
| size | 65,267 |
Rust library for interacting with the Dexcom Share API
[!WARNING]
dexrsis most definitely still a work in progress. If you notice a bug, please open an issue or PR.
dexrs can be installed through Cargo:
cargo add dexrs
You can use dexrs by implementing the code below. See /examples for more examples.
use dexrs::dexcom::client::DexcomClient;
use std::env;
pub fn main() {
let client = DexcomClient::new(env::var("DEXCOM_USERNAME").unwrap(), env::var("DEXCOM_PASSWORD").unwrap(), false).unwrap();
let values = client.get_glucose_readings(None, None).unwrap();
for v in values {
println!("MG/DL: {}, Trend: {}, Time: {}", v.mg_dl, v.trend.arrow, v.datetime);
}
}
If you wish to contribute improvements, bug fixes, or even new features, feel free to open a PR. Everyone is welcome to contribute.
Everything is licensed under MIT. See LICENSE for more.