upodesh 0.4.0

A Rust library for generating Bengali word suggestions based on a given input string.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use peak_alloc::PeakAlloc;
use upodesh::avro::Suggest;

#[global_allocator]
static PEAK_ALLOC: PeakAlloc = PeakAlloc;

fn main() {
    let _suggest = Suggest::new();

    let current_mem = PEAK_ALLOC.current_usage_as_mb();
    println!("This program currently uses {} MB of RAM.", current_mem);
    let peak_mem = PEAK_ALLOC.peak_usage_as_mb();
    println!("The max amount that was used {} MB.", peak_mem);
}