5 stable releases
1.0.4 | Apr 17, 2020 |
---|---|
1.0.0 | Apr 16, 2020 |
#16 in #tax
13KB
173 lines
Get some tax info for WA state
Simple lib for getting tax data for addrs in WA State.
First goal is to be simple, with reasonable defaults.
Example
See the example program
cargo run --example get
This is what it looks like in code
// .. in an async environment..
match wataxrate::get("400 Broad St", "Seattle", "98109").await {
Ok(taxinfo) => println!("Tax rate is {}", taxinfo.rate).
Err(e) => eprintln!("Error getting tax info: {:?}", e),
}
Gotchas
- Requires
tokio
!!
lib.rs
:
This library can be used to get tax rates for addresses in WA state! Meant to be super simple.
It gets data from DOR using its XML URL interface defined here.
Dependencies
~7–12MB
~263K SLoC