2 stable releases
1.0.2 | Jan 15, 2024 |
---|---|
1.0.1 | Jan 14, 2024 |
#238 in #list
28 downloads per month
25KB
573 lines
leblad
A rust library providing a list of Algerian administrative areas with many useful APIs, based on dzcode-io/leblad.
Usage
cargo add leblad
Example
use leblad::get_wilaya_list;
fn main() {
let wilayas = get_wilaya_list();
assert_eq!(wilayas[0].name, "Adrar");
}
lib.rs
:
leblad
Leblad is a library that provides an easy API to get all the information you need for Algerian administrative areas.
Example
use leblad::get_wilaya_list;
let wilayas = get_wilaya_list();
assert_eq!(wilayas[0].name, "Adrar");
No runtime deps
~0–2MB
~25K SLoC